Index: pdf/pdfium/pdfium_engine.cc |
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc |
index 20e84d9211b24c10fca038d77a0652d6603b03e8..5287a2961b8a927f486b3b399113baecee35820d 100644 |
--- a/pdf/pdfium/pdfium_engine.cc |
+++ b/pdf/pdfium/pdfium_engine.cc |
@@ -206,7 +206,11 @@ void* MapFont(struct _FPDF_SYSFONTINFO*, int weight, int italic, |
// MS Mincho in Shift_JIS encoding. |
{"\x82\x6C\x82\x72\x96\xBE\x92\xA9", |
"MS Mincho", false, false}, |
-}; |
+ }; |
+ |
+ // Similar logic exists in PDFium's CFX_FolderFontInfo::FindFont(). |
+ if (charset == FXFONT_ANSI_CHARSET && (pitch_family & FXFONT_FF_FIXEDPITCH)) |
+ face = "Courier New"; |
// Map from the standard PDF fonts to TrueType font names. |
size_t i; |