summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2018-08-17 19:54:23 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-17 19:54:23 +0000
commit1b2b76d634ba3716ee43a553cd952927a7d262a2 (patch)
treedc7faab94ae4a2caaad83c2b027819634cf48037 /core
parente13a068f29061b9c6d24189bc4dc87a9111cdb1b (diff)
downloadpdfium-1b2b76d634ba3716ee43a553cd952927a7d262a2.tar.xz
Add FPDFText_GetFontInfo
Bug: pdfium:929 Change-Id: I9da03a1e317cff69ec4c76b69289cfa753b6bb77 Reviewed-on: https://pdfium-review.googlesource.com/40531 Reviewed-by: Lei Zhang <thestig@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/fpdfapi/font/cpdf_font.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/fpdfapi/font/cpdf_font.h b/core/fpdfapi/font/cpdf_font.h
index 53e5b7b697..3a91926e19 100644
--- a/core/fpdfapi/font/cpdf_font.h
+++ b/core/fpdfapi/font/cpdf_font.h
@@ -80,6 +80,7 @@ class CPDF_Font {
uint32_t GetStringWidth(const ByteStringView& pString);
uint32_t FallbackFontFromCharcode(uint32_t charcode);
int FallbackGlyphFromCharcode(int fallbackFont, uint32_t charcode);
+ int GetFontFlags() const { return m_Flags; }
virtual uint32_t GetCharWidthF(uint32_t charcode) = 0;
virtual FX_RECT GetCharBBox(uint32_t charcode) = 0;