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