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

Side by Side Diff: core/fxge/include/fx_font.h

Issue 2323793003: Refactor CPDF_Document (Closed)
Patch Set: Comments Created 4 years, 3 months 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 unified diff | Download patch
« no previous file with comments | « core/fxge/ge/cfx_font.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_FXGE_INCLUDE_FX_FONT_H_ 7 #ifndef CORE_FXGE_INCLUDE_FX_FONT_H_
8 #define CORE_FXGE_INCLUDE_FX_FONT_H_ 8 #define CORE_FXGE_INCLUDE_FX_FONT_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 void SetSubstFont(std::unique_ptr<CFX_SubstFont> subst) { 110 void SetSubstFont(std::unique_ptr<CFX_SubstFont> subst) {
111 m_pSubstFont = std::move(subst); 111 m_pSubstFont = std::move(subst);
112 } 112 }
113 #endif // PDF_ENABLE_XFA 113 #endif // PDF_ENABLE_XFA
114 114
115 CFX_PathData* LoadGlyphPath(uint32_t glyph_index, int dest_width = 0); 115 CFX_PathData* LoadGlyphPath(uint32_t glyph_index, int dest_width = 0);
116 int GetGlyphWidth(uint32_t glyph_index); 116 int GetGlyphWidth(uint32_t glyph_index);
117 int GetAscent() const; 117 int GetAscent() const;
118 int GetDescent() const; 118 int GetDescent() const;
119 FX_BOOL GetGlyphBBox(uint32_t glyph_index, FX_RECT& bbox); 119 FX_BOOL GetGlyphBBox(uint32_t glyph_index, FX_RECT& bbox);
120 FX_BOOL IsItalic() const; 120 bool IsItalic() const;
121 FX_BOOL IsBold() const; 121 bool IsBold() const;
122 FX_BOOL IsFixedWidth() const; 122 bool IsFixedWidth() const;
123 FX_BOOL IsVertical() const { return m_bVertical; } 123 FX_BOOL IsVertical() const { return m_bVertical; }
124 CFX_ByteString GetPsName() const; 124 CFX_ByteString GetPsName() const;
125 CFX_ByteString GetFamilyName() const; 125 CFX_ByteString GetFamilyName() const;
126 CFX_ByteString GetFaceName() const; 126 CFX_ByteString GetFaceName() const;
127 FX_BOOL IsTTFont() const; 127 FX_BOOL IsTTFont() const;
128 FX_BOOL GetBBox(FX_RECT& bbox); 128 FX_BOOL GetBBox(FX_RECT& bbox);
129 int GetHeight() const; 129 int GetHeight() const;
130 int GetULPos() const; 130 int GetULPos() const;
131 int GetULthickness() const; 131 int GetULthickness() const;
132 int GetMaxAdvanceWidth() const; 132 int GetMaxAdvanceWidth() const;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 FX_FLOAT retinaScaleX = 1.0f, 215 FX_FLOAT retinaScaleX = 1.0f,
216 FX_FLOAT retinaScaleY = 1.0f); 216 FX_FLOAT retinaScaleY = 1.0f);
217 217
218 CFX_ByteString GetNameFromTT(const uint8_t* name_table, 218 CFX_ByteString GetNameFromTT(const uint8_t* name_table,
219 uint32_t name_table_size, 219 uint32_t name_table_size,
220 uint32_t name); 220 uint32_t name);
221 221
222 int PDF_GetStandardFontName(CFX_ByteString* name); 222 int PDF_GetStandardFontName(CFX_ByteString* name);
223 223
224 #endif // CORE_FXGE_INCLUDE_FX_FONT_H_ 224 #endif // CORE_FXGE_INCLUDE_FX_FONT_H_
OLDNEW
« no previous file with comments | « core/fxge/ge/cfx_font.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698