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

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

Issue 2451493002: Refcount all the IFX_ stream classes all the time. (Closed)
Patch Set: Clean up cast expression Created 4 years 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/android/cfpf_skiafontmgr.cpp ('k') | core/fxge/ge/cfx_font.cpp » ('j') | 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_FX_FONT_H_ 7 #ifndef CORE_FXGE_FX_FONT_H_
8 #define CORE_FXGE_FX_FONT_H_ 8 #define CORE_FXGE_FX_FONT_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 int weight, 104 int weight,
105 int italic_angle, 105 int italic_angle,
106 int CharsetCP, 106 int CharsetCP,
107 bool bVertical); 107 bool bVertical);
108 108
109 bool LoadEmbedded(const uint8_t* data, uint32_t size); 109 bool LoadEmbedded(const uint8_t* data, uint32_t size);
110 FXFT_Face GetFace() const { return m_Face; } 110 FXFT_Face GetFace() const { return m_Face; }
111 CFX_SubstFont* GetSubstFont() const { return m_pSubstFont.get(); } 111 CFX_SubstFont* GetSubstFont() const { return m_pSubstFont.get(); }
112 112
113 #ifdef PDF_ENABLE_XFA 113 #ifdef PDF_ENABLE_XFA
114 bool LoadFile(IFX_SeekableReadStream* pFile, 114 bool LoadFile(const CFX_RetainPtr<IFX_SeekableReadStream>& pFile,
115 int nFaceIndex = 0, 115 int nFaceIndex = 0,
116 int* pFaceCount = nullptr); 116 int* pFaceCount = nullptr);
117 117
118 bool LoadClone(const CFX_Font* pFont); 118 bool LoadClone(const CFX_Font* pFont);
119 void SetFace(FXFT_Face face); 119 void SetFace(FXFT_Face face);
120 void SetSubstFont(std::unique_ptr<CFX_SubstFont> subst) { 120 void SetSubstFont(std::unique_ptr<CFX_SubstFont> subst) {
121 m_pSubstFont = std::move(subst); 121 m_pSubstFont = std::move(subst);
122 } 122 }
123 #endif // PDF_ENABLE_XFA 123 #endif // PDF_ENABLE_XFA
124 124
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 FX_FLOAT retinaScaleX = 1.0f, 241 FX_FLOAT retinaScaleX = 1.0f,
242 FX_FLOAT retinaScaleY = 1.0f); 242 FX_FLOAT retinaScaleY = 1.0f);
243 243
244 CFX_ByteString GetNameFromTT(const uint8_t* name_table, 244 CFX_ByteString GetNameFromTT(const uint8_t* name_table,
245 uint32_t name_table_size, 245 uint32_t name_table_size,
246 uint32_t name); 246 uint32_t name);
247 247
248 int PDF_GetStandardFontName(CFX_ByteString* name); 248 int PDF_GetStandardFontName(CFX_ByteString* name);
249 249
250 #endif // CORE_FXGE_FX_FONT_H_ 250 #endif // CORE_FXGE_FX_FONT_H_
OLDNEW
« no previous file with comments | « core/fxge/android/cfpf_skiafontmgr.cpp ('k') | core/fxge/ge/cfx_font.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698