Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
michael@0 | 2 | // Use of this source code is governed by a BSD-style license that can be |
michael@0 | 3 | // found in the LICENSE file. |
michael@0 | 4 | |
michael@0 | 5 | #ifndef OTS_KERN_H_ |
michael@0 | 6 | #define OTS_KERN_H_ |
michael@0 | 7 | |
michael@0 | 8 | #include <vector> |
michael@0 | 9 | |
michael@0 | 10 | #include "ots.h" |
michael@0 | 11 | |
michael@0 | 12 | namespace ots { |
michael@0 | 13 | |
michael@0 | 14 | struct OpenTypeKERNFormat0Pair { |
michael@0 | 15 | uint16_t left; |
michael@0 | 16 | uint16_t right; |
michael@0 | 17 | int16_t value; |
michael@0 | 18 | }; |
michael@0 | 19 | |
michael@0 | 20 | struct OpenTypeKERNFormat0 { |
michael@0 | 21 | uint16_t version; |
michael@0 | 22 | uint16_t coverage; |
michael@0 | 23 | uint16_t search_range; |
michael@0 | 24 | uint16_t entry_selector; |
michael@0 | 25 | uint16_t range_shift; |
michael@0 | 26 | std::vector<OpenTypeKERNFormat0Pair> pairs; |
michael@0 | 27 | }; |
michael@0 | 28 | |
michael@0 | 29 | // Format 2 is not supported. Since the format is not supported by Windows, |
michael@0 | 30 | // WebFonts unlikely use it. I've checked thousands of proprietary fonts and |
michael@0 | 31 | // free fonts, and found no font uses the format. |
michael@0 | 32 | |
michael@0 | 33 | struct OpenTypeKERN { |
michael@0 | 34 | uint16_t version; |
michael@0 | 35 | std::vector<OpenTypeKERNFormat0> subtables; |
michael@0 | 36 | }; |
michael@0 | 37 | |
michael@0 | 38 | } // namespace ots |
michael@0 | 39 | |
michael@0 | 40 | #endif // OTS_KERN_H_ |