diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-11-25 15:52:28 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-11-25 15:52:28 -0800 |
commit | a2c42ce6150c4072613a6fc9fa0dc064dbf0a15d (patch) | |
tree | b1705df8ed8c9f2f8db5095fbb6e19548493eacd /core/src/fxge/ge/fx_ge_fontmap.cpp | |
parent | 214947de80a9be2ddb134b1962affc82e20563c9 (diff) | |
download | pdfium-a2c42ce6150c4072613a6fc9fa0dc064dbf0a15d.tar.xz |
Manual fixups to PDF_ENABLE_XFA in core/
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1477663003 .
Diffstat (limited to 'core/src/fxge/ge/fx_ge_fontmap.cpp')
-rw-r--r-- | core/src/fxge/ge/fx_ge_fontmap.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/src/fxge/ge/fx_ge_fontmap.cpp b/core/src/fxge/ge/fx_ge_fontmap.cpp index 6b0d7bf7e8..73f89c4c05 100644 --- a/core/src/fxge/ge/fx_ge_fontmap.cpp +++ b/core/src/fxge/ge/fx_ge_fontmap.cpp @@ -1087,7 +1087,7 @@ FXFT_Face CFX_FontMapper::FindSubstFont(const CFX_ByteString& name, if (flags & FXFONT_EXACTMATCH) { return NULL; } -#endif +#endif // PDF_ENABLE_XFA if (bCJK) { if (italic_angle != 0) { bItalic = TRUE; @@ -1296,7 +1296,8 @@ FX_BOOL CFX_FontMapper::IsBuiltinFace(const FXFT_Face face) const { } return FALSE; } -#endif +#endif // PDF_ENABLE_XFA + extern "C" { unsigned long _FTStreamRead(FXFT_Stream stream, unsigned long offset, @@ -1518,6 +1519,7 @@ void* CFX_FolderFontInfo::MapFont(int weight, int& iExact) { return NULL; } + #ifdef PDF_ENABLE_XFA void* CFX_FolderFontInfo::MapFontByUnicode(FX_DWORD dwUnicode, int weight, @@ -1525,7 +1527,8 @@ void* CFX_FolderFontInfo::MapFontByUnicode(FX_DWORD dwUnicode, int pitch_family) { return NULL; } -#endif +#endif // PDF_ENABLE_XFA + void* CFX_FolderFontInfo::GetFont(const FX_CHAR* face) { auto it = m_FontList.find(face); return it != m_FontList.end() ? it->second : nullptr; |