summaryrefslogtreecommitdiff
path: root/core/fxge/include
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-06-08 14:17:24 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-08 14:17:24 -0700
commit6aac8a822ef227b80173f23ea3169b28a6712bba (patch)
treecbc58444ac269f977e935740aee2dafab9c9c6ee /core/fxge/include
parentc1835615f386d8e6e30df89b6517ebf605335a0e (diff)
downloadpdfium-6aac8a822ef227b80173f23ea3169b28a6712bba.tar.xz
Remove even more const casting from core.
Make the return types/arguments match reality. Review-Url: https://codereview.chromium.org/2053483002
Diffstat (limited to 'core/fxge/include')
-rw-r--r--core/fxge/include/fx_font.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/fxge/include/fx_font.h b/core/fxge/include/fx_font.h
index 13143d518b..b38ecaed33 100644
--- a/core/fxge/include/fx_font.h
+++ b/core/fxge/include/fx_font.h
@@ -77,8 +77,10 @@ class CFX_Font {
int italic_angle,
int CharsetCP,
FX_BOOL bVertical = FALSE);
+
FX_BOOL LoadEmbedded(const uint8_t* data, uint32_t size);
FXFT_Face GetFace() const { return m_Face; }
+ CFX_SubstFont* GetSubstFont() const { return m_pSubstFont; }
#ifdef PDF_ENABLE_XFA
FX_BOOL LoadFile(IFX_FileRead* pFile,
@@ -86,11 +88,8 @@ class CFX_Font {
int* pFaceCount = nullptr);
FX_BOOL LoadClone(const CFX_Font* pFont);
- CFX_SubstFont* GetSubstFont() const { return m_pSubstFont; }
void SetFace(FXFT_Face face) { m_Face = face; }
void SetSubstFont(CFX_SubstFont* subst) { m_pSubstFont = subst; }
-#else // PDF_ENABLE_XFA
- const CFX_SubstFont* GetSubstFont() const { return m_pSubstFont; }
#endif // PDF_ENABLE_XFA
CFX_PathData* LoadGlyphPath(uint32_t glyph_index, int dest_width = 0);