Roll src/third_party/WebKit 06cb9e9:a978ee5 (svn 202558:202559)
[chromium-blink-merge.git] / third_party / ots / src / os2.h
blob01511c5dc37c13879e4b3793e09f037fe2d8cb90
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef OTS_OS2_H_
6 #define OTS_OS2_H_
8 #include "ots.h"
10 namespace ots {
12 struct OpenTypeOS2 {
13 uint16_t version;
14 int16_t avg_char_width;
15 uint16_t weight_class;
16 uint16_t width_class;
17 uint16_t type;
18 int16_t subscript_x_size;
19 int16_t subscript_y_size;
20 int16_t subscript_x_offset;
21 int16_t subscript_y_offset;
22 int16_t superscript_x_size;
23 int16_t superscript_y_size;
24 int16_t superscript_x_offset;
25 int16_t superscript_y_offset;
26 int16_t strikeout_size;
27 int16_t strikeout_position;
28 int16_t family_class;
29 uint8_t panose[10];
30 uint32_t unicode_range_1;
31 uint32_t unicode_range_2;
32 uint32_t unicode_range_3;
33 uint32_t unicode_range_4;
34 uint32_t vendor_id;
35 uint16_t selection;
36 uint16_t first_char_index;
37 uint16_t last_char_index;
38 int16_t typo_ascender;
39 int16_t typo_descender;
40 int16_t typo_linegap;
41 uint16_t win_ascent;
42 uint16_t win_descent;
43 uint32_t code_page_range_1;
44 uint32_t code_page_range_2;
45 int16_t x_height;
46 int16_t cap_height;
47 uint16_t default_char;
48 uint16_t break_char;
49 uint16_t max_context;
50 uint16_t lower_optical_pointsize;
51 uint16_t upper_optical_pointsize;
54 } // namespace ots
56 #endif // OTS_OS2_H_