gfx/ots/src/vdmx.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

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_VDMX_H_
michael@0 6 #define OTS_VDMX_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 OpenTypeVDMXRatioRecord {
michael@0 15 uint8_t charset;
michael@0 16 uint8_t x_ratio;
michael@0 17 uint8_t y_start_ratio;
michael@0 18 uint8_t y_end_ratio;
michael@0 19 };
michael@0 20
michael@0 21 struct OpenTypeVDMXVTable {
michael@0 22 uint16_t y_pel_height;
michael@0 23 int16_t y_max;
michael@0 24 int16_t y_min;
michael@0 25 };
michael@0 26
michael@0 27 struct OpenTypeVDMXGroup {
michael@0 28 uint16_t recs;
michael@0 29 uint8_t startsz;
michael@0 30 uint8_t endsz;
michael@0 31 std::vector<OpenTypeVDMXVTable> entries;
michael@0 32 };
michael@0 33
michael@0 34 struct OpenTypeVDMX {
michael@0 35 uint16_t version;
michael@0 36 uint16_t num_recs;
michael@0 37 uint16_t num_ratios;
michael@0 38 std::vector<OpenTypeVDMXRatioRecord> rat_ranges;
michael@0 39 std::vector<uint16_t> offsets;
michael@0 40 std::vector<OpenTypeVDMXGroup> groups;
michael@0 41 };
michael@0 42
michael@0 43 } // namespace ots
michael@0 44
michael@0 45 #endif // OTS_VDMX_H_

mercurial