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

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

Issue 2347313002: Remove duplicated charset definitions (Closed)
Patch Set: Nits 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/fx_ge_linux.cpp ('k') | core/fxge/win32/fx_win32_device.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_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 11 matching lines...) Expand all
22 class CFX_GlyphBitmap; 22 class CFX_GlyphBitmap;
23 class CFX_PathData; 23 class CFX_PathData;
24 class CFX_SizeGlyphCache; 24 class CFX_SizeGlyphCache;
25 25
26 #ifdef _SKIA_SUPPORT_ 26 #ifdef _SKIA_SUPPORT_
27 class SkTypeface; 27 class SkTypeface;
28 28
29 using CFX_TypeFace = SkTypeface; 29 using CFX_TypeFace = SkTypeface;
30 #endif 30 #endif
31 31
32 #define FXFONT_FIXED_PITCH 0x01 32 /* Character sets for the font */
33 #define FXFONT_SERIF 0x02
34 #define FXFONT_SYMBOLIC 0x04
35 #define FXFONT_SCRIPT 0x08
36 #define FXFONT_ITALIC 0x40
37 #define FXFONT_BOLD 0x40000
38 #define FXFONT_USEEXTERNATTR 0x80000
39 #define FXFONT_CIDFONT 0x100000
40 #ifdef PDF_ENABLE_XFA
41 #define FXFONT_EXACTMATCH 0x80000000
42 #endif // PDF_ENABLE_XFA
43 #define FXFONT_ANSI_CHARSET 0 33 #define FXFONT_ANSI_CHARSET 0
44 #define FXFONT_DEFAULT_CHARSET 1 34 #define FXFONT_DEFAULT_CHARSET 1
45 #define FXFONT_SYMBOL_CHARSET 2 35 #define FXFONT_SYMBOL_CHARSET 2
46 #define FXFONT_SHIFTJIS_CHARSET 128 36 #define FXFONT_SHIFTJIS_CHARSET 128
47 #define FXFONT_HANGEUL_CHARSET 129 37 #define FXFONT_HANGUL_CHARSET 129
48 #define FXFONT_GB2312_CHARSET 134 38 #define FXFONT_GB2312_CHARSET 134
49 #define FXFONT_CHINESEBIG5_CHARSET 136 39 #define FXFONT_CHINESEBIG5_CHARSET 136
50 #define FXFONT_THAI_CHARSET 222 40 #define FXFONT_THAI_CHARSET 222
51 #define FXFONT_EASTEUROPE_CHARSET 238 41 #define FXFONT_EASTEUROPE_CHARSET 238
52 #define FXFONT_RUSSIAN_CHARSET 204 42 #define FXFONT_RUSSIAN_CHARSET 204
53 #define FXFONT_GREEK_CHARSET 161 43 #define FXFONT_GREEK_CHARSET 161
54 #define FXFONT_TURKISH_CHARSET 162 44 #define FXFONT_TURKISH_CHARSET 162
55 #define FXFONT_HEBREW_CHARSET 177 45 #define FXFONT_HEBREW_CHARSET 177
56 #define FXFONT_ARABIC_CHARSET 178 46 #define FXFONT_ARABIC_CHARSET 178
57 #define FXFONT_BALTIC_CHARSET 186 47 #define FXFONT_BALTIC_CHARSET 186
48 #define FXFONT_JOHAB_CHARSET 130
49 #define FXFONT_VIETNAMESE_CHARSET 163
50
51 /* Font pitch and family flags */
58 #define FXFONT_FF_FIXEDPITCH 1 52 #define FXFONT_FF_FIXEDPITCH 1
59 #define FXFONT_FF_ROMAN (1 << 4) 53 #define FXFONT_FF_ROMAN (1 << 4)
60 #define FXFONT_FF_SCRIPT (4 << 4) 54 #define FXFONT_FF_SCRIPT (4 << 4)
55
56 /* Typical weight values */
61 #define FXFONT_FW_NORMAL 400 57 #define FXFONT_FW_NORMAL 400
62 #define FXFONT_FW_BOLD 700 58 #define FXFONT_FW_BOLD 700
63 59
60 /* Font styles */
61 #define FXFONT_FIXED_PITCH 0x01
62 #define FXFONT_SERIF 0x02
63 #define FXFONT_SYMBOLIC 0x04
64 #define FXFONT_SCRIPT 0x08
65 #define FXFONT_ITALIC 0x40
66 #define FXFONT_BOLD 0x40000
67 #define FXFONT_USEEXTERNATTR 0x80000
68 #define FXFONT_CIDFONT 0x100000
69 #ifdef PDF_ENABLE_XFA
70 #define FXFONT_EXACTMATCH 0x80000000
71 #endif // PDF_ENABLE_XFA
72
64 #define CHARSET_FLAG_ANSI 1 73 #define CHARSET_FLAG_ANSI 1
65 #define CHARSET_FLAG_SYMBOL 2 74 #define CHARSET_FLAG_SYMBOL 2
66 #define CHARSET_FLAG_SHIFTJIS 4 75 #define CHARSET_FLAG_SHIFTJIS 4
67 #define CHARSET_FLAG_BIG5 8 76 #define CHARSET_FLAG_BIG5 8
68 #define CHARSET_FLAG_GB 16 77 #define CHARSET_FLAG_GB 16
69 #define CHARSET_FLAG_KOREAN 32 78 #define CHARSET_FLAG_KOREAN 32
70 79
71 #define GET_TT_SHORT(w) (uint16_t)(((w)[0] << 8) | (w)[1]) 80 #define GET_TT_SHORT(w) (uint16_t)(((w)[0] << 8) | (w)[1])
72 #define GET_TT_LONG(w) \ 81 #define GET_TT_LONG(w) \
73 (uint32_t)(((w)[0] << 24) | ((w)[1] << 16) | ((w)[2] << 8) | (w)[3]) 82 (uint32_t)(((w)[0] << 24) | ((w)[1] << 16) | ((w)[2] << 8) | (w)[3])
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 FX_FLOAT retinaScaleX = 1.0f, 239 FX_FLOAT retinaScaleX = 1.0f,
231 FX_FLOAT retinaScaleY = 1.0f); 240 FX_FLOAT retinaScaleY = 1.0f);
232 241
233 CFX_ByteString GetNameFromTT(const uint8_t* name_table, 242 CFX_ByteString GetNameFromTT(const uint8_t* name_table,
234 uint32_t name_table_size, 243 uint32_t name_table_size,
235 uint32_t name); 244 uint32_t name);
236 245
237 int PDF_GetStandardFontName(CFX_ByteString* name); 246 int PDF_GetStandardFontName(CFX_ByteString* name);
238 247
239 #endif // CORE_FXGE_INCLUDE_FX_FONT_H_ 248 #endif // CORE_FXGE_INCLUDE_FX_FONT_H_
OLDNEW
« no previous file with comments | « core/fxge/ge/fx_ge_linux.cpp ('k') | core/fxge/win32/fx_win32_device.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698