diff options
author | npm <npm@chromium.org> | 2016-10-12 11:38:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-12 11:38:10 -0700 |
commit | 7cc6a32693a07210e036a8d7131232231ec0fdb3 (patch) | |
tree | f47071fbf2c4bfa234b79436a357ffe5e0d37a46 /core/fpdfapi/font/cpdf_type1font.h | |
parent | 8bc9b8b2ddeb3ffa904d8f35039550c55706ba86 (diff) | |
download | pdfium-7cc6a32693a07210e036a8d7131232231ec0fdb3.tar.xz |
Reduce code duplication in CPDF_Type1Font::LoadGlyphMap
Added methods SetExtGID and CalcExtGID for this purpose.
Changed protected to private: no one inherits CPDF_Type1Font.
Review-Url: https://codereview.chromium.org/2412483006
Diffstat (limited to 'core/fpdfapi/font/cpdf_type1font.h')
-rw-r--r-- | core/fpdfapi/font/cpdf_type1font.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/fpdfapi/font/cpdf_type1font.h b/core/fpdfapi/font/cpdf_type1font.h index 4dc5ea0917..f5f378561d 100644 --- a/core/fpdfapi/font/cpdf_type1font.h +++ b/core/fpdfapi/font/cpdf_type1font.h @@ -22,13 +22,18 @@ class CPDF_Type1Font : public CPDF_SimpleFont { int GetBase14Font() const { return m_Base14Font; } - protected: + private: // CPDF_Font: bool Load() override; // CPDF_SimpleFont: void LoadGlyphMap() override; +#if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ + void SetExtGID(const FX_CHAR* name, int charcode); + void CalcExtGID(int charcode); +#endif + int m_Base14Font; }; |