Debian Codegraph @

src/table_tags.cc

raw
1 /* Copyright 2014 Google Inc. All Rights Reserved.
2
3 Distributed under MIT license.
4 See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
5 */
6
7 /* Font table tags */
8
9 #include "./table_tags.h"
10
11 namespace woff2 {
12
13 // Note that the byte order is big-endian, not the same as ots.cc
14 #define TAG(a, b, c, d) ((a << 24) | (b << 16) | (c << 8) | d)
15
16 const uint32_t kKnownTags[63] = {
17 TAG('c', 'm', 'a', 'p'), // 0
18 TAG('h', 'e', 'a', 'd'), // 1
19 TAG('h', 'h', 'e', 'a'), // 2
20 TAG('h', 'm', 't', 'x'), // 3
21 TAG('m', 'a', 'x', 'p'), // 4
22 TAG('n', 'a', 'm', 'e'), // 5
23 TAG('O', 'S', '/', '2'), // 6
24 TAG('p', 'o', 's', 't'), // 7
25 TAG('c', 'v', 't', ' '), // 8
26 TAG('f', 'p', 'g', 'm'), // 9
27 TAG('g', 'l', 'y', 'f'), // 10
28 TAG('l', 'o', 'c', 'a'), // 11
29 TAG('p', 'r', 'e', 'p'), // 12
30 TAG('C', 'F', 'F', ' '), // 13
31 TAG('V', 'O', 'R', 'G'), // 14
32 TAG('E', 'B', 'D', 'T'), // 15
33 TAG('E', 'B', 'L', 'C'), // 16
34 TAG('g', 'a', 's', 'p'), // 17
35 TAG('h', 'd', 'm', 'x'), // 18
36 TAG('k', 'e', 'r', 'n'), // 19
37 TAG('L', 'T', 'S', 'H'), // 20
38 TAG('P', 'C', 'L', 'T'), // 21
39 TAG('V', 'D', 'M', 'X'), // 22
40 TAG('v', 'h', 'e', 'a'), // 23
41 TAG('v', 'm', 't', 'x'), // 24
42 TAG('B', 'A', 'S', 'E'), // 25
43 TAG('G', 'D', 'E', 'F'), // 26
44 TAG('G', 'P', 'O', 'S'), // 27
45 TAG('G', 'S', 'U', 'B'), // 28
46 TAG('E', 'B', 'S', 'C'), // 29
47 TAG('J', 'S', 'T', 'F'), // 30
48 TAG('M', 'A', 'T', 'H'), // 31
49 TAG('C', 'B', 'D', 'T'), // 32
50 TAG('C', 'B', 'L', 'C'), // 33
51 TAG('C', 'O', 'L', 'R'), // 34
52 TAG('C', 'P', 'A', 'L'), // 35
53 TAG('S', 'V', 'G', ' '), // 36
54 TAG('s', 'b', 'i', 'x'), // 37
55 TAG('a', 'c', 'n', 't'), // 38
56 TAG('a', 'v', 'a', 'r'), // 39
57 TAG('b', 'd', 'a', 't'), // 40
58 TAG('b', 'l', 'o', 'c'), // 41
59 TAG('b', 's', 'l', 'n'), // 42
60 TAG('c', 'v', 'a', 'r'), // 43
61 TAG('f', 'd', 's', 'c'), // 44
62 TAG('f', 'e', 'a', 't'), // 45
63 TAG('f', 'm', 't', 'x'), // 46
64 TAG('f', 'v', 'a', 'r'), // 47
65 TAG('g', 'v', 'a', 'r'), // 48
66 TAG('h', 's', 't', 'y'), // 49
67 TAG('j', 'u', 's', 't'), // 50
68 TAG('l', 'c', 'a', 'r'), // 51
69 TAG('m', 'o', 'r', 't'), // 52
70 TAG('m', 'o', 'r', 'x'), // 53
71 TAG('o', 'p', 'b', 'd'), // 54
72 TAG('p', 'r', 'o', 'p'), // 55
73 TAG('t', 'r', 'a', 'k'), // 56
74 TAG('Z', 'a', 'p', 'f'), // 57
75 TAG('S', 'i', 'l', 'f'), // 58
76 TAG('G', 'l', 'a', 't'), // 59
77 TAG('G', 'l', 'o', 'c'), // 60
78 TAG('F', 'e', 'a', 't'), // 61
79 TAG('S', 'i', 'l', 'l'), // 62
80 };
81
82 } // namespace woff2