Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef CORE_FXGE_GE_CTTFONTDESC_H_ | |
| 8 #define CORE_FXGE_GE_CTTFONTDESC_H_ | |
| 9 | |
| 10 #include "core/fxcrt/include/fx_system.h" | |
| 11 #include "core/fxge/include/fx_font.h" | |
| 12 | |
| 13 #define FX_FONT_FLAG_SERIF 0x01 | |
| 14 #define FX_FONT_FLAG_FIXEDPITCH 0x02 | |
| 15 #define FX_FONT_FLAG_ITALIC 0x04 | |
| 16 #define FX_FONT_FLAG_BOLD 0x08 | |
| 17 #define FX_FONT_FLAG_SYMBOLIC_SYMBOL 0x10 | |
| 18 #define FX_FONT_FLAG_SYMBOLIC_DINGBATS 0x20 | |
| 19 #define FX_FONT_FLAG_MULTIPLEMASTER 0x40 | |
| 20 | |
| 21 class CTTFontDesc { | |
| 22 public: | |
| 23 CTTFontDesc() { | |
| 24 m_Type = 0; | |
|
dsinclair
2016/08/29 15:58:31
Initializer list?
npm
2016/08/29 16:19:06
Done.
| |
| 25 m_pFontData = nullptr; | |
| 26 m_RefCount = 0; | |
| 27 } | |
| 28 ~CTTFontDesc(); | |
| 29 | |
| 30 // ret < 0, releaseface not appropriate for this object. | |
| 31 // ret == 0, object released | |
| 32 // ret > 0, object still alive, other referrers. | |
| 33 int ReleaseFace(FXFT_Face face); | |
| 34 int m_Type; | |
|
dsinclair
2016/08/29 15:58:31
nit: add blank line between methods and members.
npm
2016/08/29 16:19:06
Done.
| |
| 35 union { | |
| 36 struct { | |
| 37 FX_BOOL m_bItalic; | |
| 38 FX_BOOL m_bBold; | |
| 39 FXFT_Face m_pFace; | |
| 40 } m_SingleFace; | |
| 41 struct { | |
| 42 FXFT_Face m_pFaces[16]; | |
| 43 } m_TTCFace; | |
| 44 }; | |
| 45 uint8_t* m_pFontData; | |
| 46 int m_RefCount; | |
| 47 }; | |
| 48 | |
| 49 #endif // CORE_FXGE_GE_CTTFONTDESC_H_ | |
| OLD | NEW |