summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_font.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-13 17:55:36 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-13 17:55:36 +0000
commitc6fd4d7dddd83d111e98a1ddc46bc7aa80e05933 (patch)
tree46e6a0c566d08edc0aceb4ccf4c76ea984cb407f /core/fxge/cfx_font.h
parentdae73f540c2aac24d94794f63a2142b1a9c91574 (diff)
downloadpdfium-c6fd4d7dddd83d111e98a1ddc46bc7aa80e05933.tar.xz
Guard some non-windows only code in cfx_font with ifdefs.
The callers are all in blocks controlled by the same ifdef. Change-Id: I2bf1dfd8725eefcfab5b05460fc31b0e7e08c75e Reviewed-on: https://pdfium-review.googlesource.com/35090 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxge/cfx_font.h')
-rw-r--r--core/fxge/cfx_font.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fxge/cfx_font.h b/core/fxge/cfx_font.h
index a5a0057c16..0d858ea5c4 100644
--- a/core/fxge/cfx_font.h
+++ b/core/fxge/cfx_font.h
@@ -50,8 +50,10 @@ class CFX_Font {
#ifdef PDF_ENABLE_XFA
bool LoadFile(const RetainPtr<IFX_SeekableReadStream>& pFile, int nFaceIndex);
+#if _FX_PLATFORM_ != _FX_PLATFORM_WINDOWS_
void SetFace(FXFT_Face face);
void SetSubstFont(std::unique_ptr<CFX_SubstFont> subst);
+#endif // _FX_PLATFORM_ != _FX_PLATFORM_WINDOWS_
#endif // PDF_ENABLE_XFA
const CFX_GlyphBitmap* LoadGlyphBitmap(uint32_t glyph_index,