1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/ots/src/os2.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,54 @@ 1.4 +// Copyright (c) 2009 The Chromium Authors. All rights reserved. 1.5 +// Use of this source code is governed by a BSD-style license that can be 1.6 +// found in the LICENSE file. 1.7 + 1.8 +#ifndef OTS_OS2_H_ 1.9 +#define OTS_OS2_H_ 1.10 + 1.11 +#include "ots.h" 1.12 + 1.13 +namespace ots { 1.14 + 1.15 +struct OpenTypeOS2 { 1.16 + uint16_t version; 1.17 + int16_t avg_char_width; 1.18 + uint16_t weight_class; 1.19 + uint16_t width_class; 1.20 + uint16_t type; 1.21 + int16_t subscript_x_size; 1.22 + int16_t subscript_y_size; 1.23 + int16_t subscript_x_offset; 1.24 + int16_t subscript_y_offset; 1.25 + int16_t superscript_x_size; 1.26 + int16_t superscript_y_size; 1.27 + int16_t superscript_x_offset; 1.28 + int16_t superscript_y_offset; 1.29 + int16_t strikeout_size; 1.30 + int16_t strikeout_position; 1.31 + int16_t family_class; 1.32 + uint8_t panose[10]; 1.33 + uint32_t unicode_range_1; 1.34 + uint32_t unicode_range_2; 1.35 + uint32_t unicode_range_3; 1.36 + uint32_t unicode_range_4; 1.37 + uint32_t vendor_id; 1.38 + uint16_t selection; 1.39 + uint16_t first_char_index; 1.40 + uint16_t last_char_index; 1.41 + int16_t typo_ascender; 1.42 + int16_t typo_descender; 1.43 + int16_t typo_linegap; 1.44 + uint16_t win_ascent; 1.45 + uint16_t win_descent; 1.46 + uint32_t code_page_range_1; 1.47 + uint32_t code_page_range_2; 1.48 + int16_t x_height; 1.49 + int16_t cap_height; 1.50 + uint16_t default_char; 1.51 + uint16_t break_char; 1.52 + uint16_t max_context; 1.53 +}; 1.54 + 1.55 +} // namespace ots 1.56 + 1.57 +#endif // OTS_OS2_H_