summaryrefslogtreecommitdiff
path: root/core/fpdfapi/font/cpdf_font.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-08-13 19:28:39 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-13 19:28:39 +0000
commit1a99f200c59a89fe297ac79658d2fe11b13b1553 (patch)
tree12202f250b102a1a7a7d3fb1bea087f91df67439 /core/fpdfapi/font/cpdf_font.cpp
parentb850c987d141c5578535faba64d14782dbfc13da (diff)
downloadpdfium-1a99f200c59a89fe297ac79658d2fe11b13b1553.tar.xz
Mark CPDF_Font::GlyphFromCharCodeExt() and friends Mac only.
Change-Id: I4906351a6e21fb8480670a6daf15bd7cb9e441c5 Reviewed-on: https://pdfium-review.googlesource.com/39911 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Nicolás Peña Moreno <npm@chromium.org>
Diffstat (limited to 'core/fpdfapi/font/cpdf_font.cpp')
-rw-r--r--core/fpdfapi/font/cpdf_font.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fpdfapi/font/cpdf_font.cpp b/core/fpdfapi/font/cpdf_font.cpp
index f75f696035..f2aa4da052 100644
--- a/core/fpdfapi/font/cpdf_font.cpp
+++ b/core/fpdfapi/font/cpdf_font.cpp
@@ -112,9 +112,11 @@ size_t CPDF_Font::CountChar(const ByteStringView& pString) const {
return pString.GetLength();
}
+#if _FX_PLATFORM_ == _FX_PLATFORM_APPLE_
int CPDF_Font::GlyphFromCharCodeExt(uint32_t charcode) {
return GlyphFromCharCode(charcode, nullptr);
}
+#endif
bool CPDF_Font::IsVertWriting() const {
const CPDF_CIDFont* pCIDFont = AsCIDFont();