1 // Generated by gencjkcisvs.py. Do not edit.
5 #define U16(v) (((v) >> 8) & 0xFF), ((v) & 0xFF)
6 #define U24(v) (((v) >> 16) & 0xFF), (((v) >> 8) & 0xFF), ((v) & 0xFF)
8 (((v) >> 24) & 0xFF), (((v) >> 16) & 0xFF), (((v) >> 8) & 0xFF), ((v) & 0xFF)
9 #define GLYPH(v) U16(v >= 0x2F800 ? (v) - (0x2F800 - 0xFB00) : (v))
11 // Fallback mappings for CJK Compatibility Ideographs Standardized Variants
12 // taken from StandardizedVariants-6.3.0.txt.
13 // Using OpenType format 14 cmap subtable structure to reuse the lookup code
14 // for fonts. The glyphID field is used to store the corresponding codepoints
15 // CJK Compatibility Ideographs. To fit codepoints into the 16-bit glyphID
16 // field, CJK Compatibility Ideographs Supplement (U+2F800..U+2FA1F) will be
17 // mapped to 0xFB00..0xFD1F.
18 extern const uint8_t sCJKCompatSVSTable
[] = {
21 U32(3), // numVarSelectorRecords
24 U32(43), // varSelectorRecord[0]
27 U32(4557), // varSelectorRecord[1]
30 U32(5001), // varSelectorRecord[2]
32 U32(902), // numUVSMappings
1838 U32(88), // numUVSMappings
2016 U32(12), // numUVSMappings
2048 static_assert(sizeof sCJKCompatSVSTable
== 5065, "Table generator has a bug.");