summaryrefslogtreecommitdiff
path: root/core/include/fxge/fx_font.h
diff options
context:
space:
mode:
authorJun Fang <jun_fang@foxitsoftware.com>2016-01-19 17:13:50 -0800
committerJun Fang <jun_fang@foxitsoftware.com>2016-01-19 17:13:50 -0800
commitfe73e7849b8b4ce49408d2f52f3fc29b370b82b5 (patch)
tree26ecf7336fc611060911bd66d09720da9247c3ec /core/include/fxge/fx_font.h
parent752395430376536487352815e6107c32dac7d69e (diff)
downloadpdfium-fe73e7849b8b4ce49408d2f52f3fc29b370b82b5.tar.xz
Fix an assertion failure in CXFA_FWLTheme::Initialize()
BUG=pdfium:350 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1608593003 .
Diffstat (limited to 'core/include/fxge/fx_font.h')
-rw-r--r--core/include/fxge/fx_font.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/include/fxge/fx_font.h b/core/include/fxge/fx_font.h
index 954824e728..f2db4a1dc0 100644
--- a/core/include/fxge/fx_font.h
+++ b/core/include/fxge/fx_font.h
@@ -325,6 +325,8 @@ class CFX_FontMapper {
int italic_angle);
#endif // PDF_ENABLE_XFA
FX_BOOL IsBuiltinFace(const FXFT_Face face) const;
+ int GetFaceSize() const { return m_FaceArray.GetSize(); }
+ CFX_ByteString GetFaceName(int index) const { return m_FaceArray[index]; }
private:
static const size_t MM_FACE_COUNT = 2;