michael@0: // Copyright (c) 2009 The Chromium Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: michael@0: #ifndef OTS_OS2_H_ michael@0: #define OTS_OS2_H_ michael@0: michael@0: #include "ots.h" michael@0: michael@0: namespace ots { michael@0: michael@0: struct OpenTypeOS2 { michael@0: uint16_t version; michael@0: int16_t avg_char_width; michael@0: uint16_t weight_class; michael@0: uint16_t width_class; michael@0: uint16_t type; michael@0: int16_t subscript_x_size; michael@0: int16_t subscript_y_size; michael@0: int16_t subscript_x_offset; michael@0: int16_t subscript_y_offset; michael@0: int16_t superscript_x_size; michael@0: int16_t superscript_y_size; michael@0: int16_t superscript_x_offset; michael@0: int16_t superscript_y_offset; michael@0: int16_t strikeout_size; michael@0: int16_t strikeout_position; michael@0: int16_t family_class; michael@0: uint8_t panose[10]; michael@0: uint32_t unicode_range_1; michael@0: uint32_t unicode_range_2; michael@0: uint32_t unicode_range_3; michael@0: uint32_t unicode_range_4; michael@0: uint32_t vendor_id; michael@0: uint16_t selection; michael@0: uint16_t first_char_index; michael@0: uint16_t last_char_index; michael@0: int16_t typo_ascender; michael@0: int16_t typo_descender; michael@0: int16_t typo_linegap; michael@0: uint16_t win_ascent; michael@0: uint16_t win_descent; michael@0: uint32_t code_page_range_1; michael@0: uint32_t code_page_range_2; michael@0: int16_t x_height; michael@0: int16_t cap_height; michael@0: uint16_t default_char; michael@0: uint16_t break_char; michael@0: uint16_t max_context; michael@0: }; michael@0: michael@0: } // namespace ots michael@0: michael@0: #endif // OTS_OS2_H_