1 // Copyright 2014 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.
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
10 struct _CFX_UniqueKeyGen {
11 void Generate(int count, ...);
15 class CFX_SizeGlyphCache : public CFX_Object
20 m_GlyphMap.InitHashTable(253);
22 ~CFX_SizeGlyphCache();
23 CFX_MapPtrToPtr m_GlyphMap;
25 class CTTFontDesc : public CFX_Object
35 FX_BOOL ReleaseFace(FXFT_Face face);
44 FXFT_Face m_pFaces[16];
50 class CFX_UnicodeEncoding : public IFX_FontEncoding
53 CFX_UnicodeEncoding(CFX_Font* pFont);
54 virtual FX_DWORD GlyphFromCharCodeEx(FX_DWORD charcode, int encoding = ENCODING_UNICODE);
57 virtual FX_DWORD GlyphFromCharCode(FX_DWORD charcode);
58 virtual CFX_WideString UnicodeFromCharCode(FX_DWORD charcode) const
60 return CFX_WideString((FX_WCHAR)charcode);
62 virtual FX_DWORD CharCodeFromUnicode(FX_WCHAR Unicode) const
66 virtual FX_BOOL IsUnicodeCompatible() const
71 #define CHARSET_FLAG_ANSI 1
72 #define CHARSET_FLAG_SYMBOL 2
73 #define CHARSET_FLAG_SHIFTJIS 4
74 #define CHARSET_FLAG_BIG5 8
75 #define CHARSET_FLAG_GB 16
76 #define CHARSET_FLAG_KOREAN 32
77 class CFontFaceInfo : public CFX_Object
80 CFX_ByteString m_FilePath;
81 CFX_ByteString m_FaceName;
84 FX_DWORD m_FontOffset;
86 CFX_ByteString m_FontTables;
88 class CFontFileFaceInfo : public CFX_Object
93 IFX_FileStream* m_pFile;
95 CFX_ByteString m_FaceName;
98 FX_DWORD m_FontOffset;
102 CFX_ByteString m_FontTables;
105 #endif // _TEXT_INT_H_