blob: 0071e00b00ca22c2d9fd417d911b46e7cd3ba03c [file] [log] [blame]
Kenichi Ishibashi142d8882014-05-30 09:06:32 +09001// Copyright 2014 Google Inc. All Rights Reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Font table tags
16
17#include "./table_tags.h"
18
19namespace woff2 {
20
21// Note that the byte order is big-endian, not the same as ots.cc
22#define TAG(a, b, c, d) ((a << 24) | (b << 16) | (c << 8) | d)
23
24const uint32_t kKnownTags[63] = {
25 TAG('c', 'm', 'a', 'p'), // 0
26 TAG('h', 'e', 'a', 'd'), // 1
27 TAG('h', 'h', 'e', 'a'), // 2
28 TAG('h', 'm', 't', 'x'), // 3
29 TAG('m', 'a', 'x', 'p'), // 4
30 TAG('n', 'a', 'm', 'e'), // 5
31 TAG('O', 'S', '/', '2'), // 6
32 TAG('p', 'o', 's', 't'), // 7
33 TAG('c', 'v', 't', ' '), // 8
34 TAG('f', 'p', 'g', 'm'), // 9
35 TAG('g', 'l', 'y', 'f'), // 10
36 TAG('l', 'o', 'c', 'a'), // 11
37 TAG('p', 'r', 'e', 'p'), // 12
38 TAG('C', 'F', 'F', ' '), // 13
39 TAG('V', 'O', 'R', 'G'), // 14
40 TAG('E', 'B', 'D', 'T'), // 15
41 TAG('E', 'B', 'L', 'C'), // 16
42 TAG('g', 'a', 's', 'p'), // 17
43 TAG('h', 'd', 'm', 'x'), // 18
44 TAG('k', 'e', 'r', 'n'), // 19
45 TAG('L', 'T', 'S', 'H'), // 20
46 TAG('P', 'C', 'L', 'T'), // 21
47 TAG('V', 'D', 'M', 'X'), // 22
48 TAG('v', 'h', 'e', 'a'), // 23
49 TAG('v', 'm', 't', 'x'), // 24
50 TAG('B', 'A', 'S', 'E'), // 25
51 TAG('G', 'D', 'E', 'F'), // 26
52 TAG('G', 'P', 'O', 'S'), // 27
53 TAG('G', 'S', 'U', 'B'), // 28
54 TAG('E', 'B', 'S', 'C'), // 29
55 TAG('J', 'S', 'T', 'F'), // 30
56 TAG('M', 'A', 'T', 'H'), // 31
57 TAG('C', 'B', 'D', 'T'), // 32
58 TAG('C', 'B', 'L', 'C'), // 33
59 TAG('C', 'O', 'L', 'R'), // 34
60 TAG('C', 'P', 'A', 'L'), // 35
61 TAG('S', 'V', 'G', ' '), // 36
62 TAG('s', 'b', 'i', 'x'), // 37
63 TAG('a', 'c', 'n', 't'), // 38
64 TAG('a', 'v', 'a', 'r'), // 39
65 TAG('b', 'd', 'a', 't'), // 40
66 TAG('b', 'l', 'o', 'c'), // 41
67 TAG('b', 's', 'l', 'n'), // 42
68 TAG('c', 'v', 'a', 'r'), // 43
69 TAG('f', 'd', 's', 'c'), // 44
70 TAG('f', 'e', 'a', 't'), // 45
71 TAG('f', 'm', 't', 'x'), // 46
72 TAG('f', 'v', 'a', 'r'), // 47
73 TAG('g', 'v', 'a', 'r'), // 48
74 TAG('h', 's', 't', 'y'), // 49
75 TAG('j', 'u', 's', 't'), // 50
76 TAG('l', 'c', 'a', 'r'), // 51
77 TAG('m', 'o', 'r', 't'), // 52
78 TAG('m', 'o', 'r', 'x'), // 53
79 TAG('o', 'p', 'b', 'd'), // 54
80 TAG('p', 'r', 'o', 'p'), // 55
81 TAG('t', 'r', 'a', 'k'), // 56
82 TAG('Z', 'a', 'p', 'f'), // 57
83 TAG('S', 'i', 'l', 'f'), // 58
84 TAG('G', 'l', 'a', 't'), // 59
85 TAG('G', 'l', 'o', 'c'), // 60
86 TAG('F', 'e', 'a', 't'), // 61
87 TAG('S', 'i', 'l', 'l'), // 62
88};
89
90} // namespace woff2