Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: xfa/fgas/font/cfgas_gefont.h

Issue 2524493002: Clean up CFGAS_GEFont (Closed)
Patch Set: Rebase? Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fgas/font/cfgas_fontmgr.cpp ('k') | xfa/fgas/font/cfgas_gefont.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fgas/font/cfgas_gefont.h
diff --git a/xfa/fgas/font/fgas_gefont.h b/xfa/fgas/font/cfgas_gefont.h
similarity index 94%
rename from xfa/fgas/font/fgas_gefont.h
rename to xfa/fgas/font/cfgas_gefont.h
index afe628fc6659d31921d6fbd7c33734ee35c0964d..acad51af7905d3dd5563fad3c2775ab8ab1ed221 100644
--- a/xfa/fgas/font/fgas_gefont.h
+++ b/xfa/fgas/font/cfgas_gefont.h
@@ -4,8 +4,8 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef XFA_FGAS_FONT_FGAS_GEFONT_H_
-#define XFA_FGAS_FONT_FGAS_GEFONT_H_
+#ifndef XFA_FGAS_FONT_CFGAS_GEFONT_H_
+#define XFA_FGAS_FONT_CFGAS_GEFONT_H_
#include <map>
#include <memory>
@@ -43,7 +43,6 @@ class CFGAS_GEFont {
void Release();
CFGAS_GEFont* Retain();
CFGAS_GEFont* Derive(uint32_t dwFontStyles, uint16_t wCodePage = 0);
- void GetFamilyName(CFX_WideString& wsFamily) const;
uint32_t GetFontStyles() const;
bool GetCharWidth(FX_WCHAR wUnicode, int32_t& iWidth, bool bCharCode);
int32_t GetGlyphIndex(FX_WCHAR wUnicode, bool bCharCode = false);
@@ -51,8 +50,6 @@ class CFGAS_GEFont {
int32_t GetDescent() const;
bool GetCharBBox(FX_WCHAR wUnicode, CFX_Rect& bbox, bool bCharCode = false);
bool GetBBox(CFX_Rect& bbox);
- int32_t GetItalicAngle() const;
- void Reset();
CFGAS_GEFont* GetSubstFont(int32_t iGlyphIndex) const;
CFX_Font* GetDevFont() const { return m_pFont; }
void SetFontProvider(CXFA_PDFFontMgr* pProvider) { m_pProvider = pProvider; }
@@ -63,7 +60,7 @@ class CFGAS_GEFont {
}
#endif
- protected:
+ private:
explicit CFGAS_GEFont(CFGAS_FontMgr* pFontMgr);
CFGAS_GEFont(CFGAS_GEFont* src, uint32_t dwFontStyles);
@@ -89,6 +86,7 @@ class CFGAS_GEFont {
bool bRecursive,
CFGAS_GEFont** ppFont,
bool bCharCode = false);
+ CFX_WideString GetFamilyName() const;
#if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
bool m_bUseLogFontStyle;
@@ -112,4 +110,4 @@ class CFGAS_GEFont {
std::map<FX_WCHAR, CFGAS_GEFont*> m_FontMapper;
};
-#endif // XFA_FGAS_FONT_FGAS_GEFONT_H_
+#endif // XFA_FGAS_FONT_CFGAS_GEFONT_H_
« no previous file with comments | « xfa/fgas/font/cfgas_fontmgr.cpp ('k') | xfa/fgas/font/cfgas_gefont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698