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

Side by Side Diff: core/fpdfapi/fpdf_font/include/cpdf_font.h

Issue 2364643003: Make CPDF_Font::Create() return a std::unique_ptr. (Closed)
Patch Set: Stray file Created 4 years, 2 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/fpdfapi/fpdf_font/fpdf_font.cpp ('k') | core/fpdfapi/fpdf_page/fpdf_page_doc.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_ 7 #ifndef CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_
8 #define CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_ 8 #define CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 20 matching lines...) Expand all
31 class CPDF_Document; 31 class CPDF_Document;
32 class CPDF_Object; 32 class CPDF_Object;
33 class CPDF_StreamAcc; 33 class CPDF_StreamAcc;
34 class CPDF_TrueTypeFont; 34 class CPDF_TrueTypeFont;
35 class CPDF_Type1Font; 35 class CPDF_Type1Font;
36 class CPDF_Type3Font; 36 class CPDF_Type3Font;
37 class CPDF_ToUnicodeMap; 37 class CPDF_ToUnicodeMap;
38 38
39 class CPDF_Font { 39 class CPDF_Font {
40 public: 40 public:
41 static CPDF_Font* CreateFontF(CPDF_Document* pDoc, 41 static std::unique_ptr<CPDF_Font> Create(CPDF_Document* pDoc,
42 CPDF_Dictionary* pFontDict); 42 CPDF_Dictionary* pFontDict);
43 static CPDF_Font* GetStockFont(CPDF_Document* pDoc, 43 static CPDF_Font* GetStockFont(CPDF_Document* pDoc,
44 const CFX_ByteStringC& fontname); 44 const CFX_ByteStringC& fontname);
45 static const uint32_t kInvalidCharCode = static_cast<uint32_t>(-1); 45 static const uint32_t kInvalidCharCode = static_cast<uint32_t>(-1);
46 46
47 virtual ~CPDF_Font(); 47 virtual ~CPDF_Font();
48 48
49 virtual bool IsType1Font() const; 49 virtual bool IsType1Font() const;
50 virtual bool IsTrueTypeFont() const; 50 virtual bool IsTrueTypeFont() const;
51 virtual bool IsType3Font() const; 51 virtual bool IsType3Font() const;
52 virtual bool IsCIDFont() const; 52 virtual bool IsCIDFont() const;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 mutable FX_BOOL m_bToUnicodeLoaded; 124 mutable FX_BOOL m_bToUnicodeLoaded;
125 int m_Flags; 125 int m_Flags;
126 FX_RECT m_FontBBox; 126 FX_RECT m_FontBBox;
127 int m_StemV; 127 int m_StemV;
128 int m_Ascent; 128 int m_Ascent;
129 int m_Descent; 129 int m_Descent;
130 int m_ItalicAngle; 130 int m_ItalicAngle;
131 }; 131 };
132 132
133 #endif // CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_ 133 #endif // CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_font/fpdf_font.cpp ('k') | core/fpdfapi/fpdf_page/fpdf_page_doc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698