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_OS2_H_ |
michael@0 | 6 | #define OTS_OS2_H_ |
michael@0 | 7 | |
michael@0 | 8 | #include "ots.h" |
michael@0 | 9 | |
michael@0 | 10 | namespace ots { |
michael@0 | 11 | |
michael@0 | 12 | struct OpenTypeOS2 { |
michael@0 | 13 | uint16_t version; |
michael@0 | 14 | int16_t avg_char_width; |
michael@0 | 15 | uint16_t weight_class; |
michael@0 | 16 | uint16_t width_class; |
michael@0 | 17 | uint16_t type; |
michael@0 | 18 | int16_t subscript_x_size; |
michael@0 | 19 | int16_t subscript_y_size; |
michael@0 | 20 | int16_t subscript_x_offset; |
michael@0 | 21 | int16_t subscript_y_offset; |
michael@0 | 22 | int16_t superscript_x_size; |
michael@0 | 23 | int16_t superscript_y_size; |
michael@0 | 24 | int16_t superscript_x_offset; |
michael@0 | 25 | int16_t superscript_y_offset; |
michael@0 | 26 | int16_t strikeout_size; |
michael@0 | 27 | int16_t strikeout_position; |
michael@0 | 28 | int16_t family_class; |
michael@0 | 29 | uint8_t panose[10]; |
michael@0 | 30 | uint32_t unicode_range_1; |
michael@0 | 31 | uint32_t unicode_range_2; |
michael@0 | 32 | uint32_t unicode_range_3; |
michael@0 | 33 | uint32_t unicode_range_4; |
michael@0 | 34 | uint32_t vendor_id; |
michael@0 | 35 | uint16_t selection; |
michael@0 | 36 | uint16_t first_char_index; |
michael@0 | 37 | uint16_t last_char_index; |
michael@0 | 38 | int16_t typo_ascender; |
michael@0 | 39 | int16_t typo_descender; |
michael@0 | 40 | int16_t typo_linegap; |
michael@0 | 41 | uint16_t win_ascent; |
michael@0 | 42 | uint16_t win_descent; |
michael@0 | 43 | uint32_t code_page_range_1; |
michael@0 | 44 | uint32_t code_page_range_2; |
michael@0 | 45 | int16_t x_height; |
michael@0 | 46 | int16_t cap_height; |
michael@0 | 47 | uint16_t default_char; |
michael@0 | 48 | uint16_t break_char; |
michael@0 | 49 | uint16_t max_context; |
michael@0 | 50 | }; |
michael@0 | 51 | |
michael@0 | 52 | } // namespace ots |
michael@0 | 53 | |
michael@0 | 54 | #endif // OTS_OS2_H_ |