From 6aac8a822ef227b80173f23ea3169b28a6712bba Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 8 Jun 2016 14:17:24 -0700 Subject: Remove even more const casting from core. Make the return types/arguments match reality. Review-Url: https://codereview.chromium.org/2053483002 --- core/fxge/include/fx_font.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/fxge') 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); -- cgit v1.2.3