yusukes@chromium.org | d257d18 | 2009-11-04 04:56:32 +0000 | [diff] [blame] | 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. |
| 4 | |
| 5 | #ifndef OTS_CMAP_H_ |
| 6 | #define OTS_CMAP_H_ |
| 7 | |
| 8 | #include <vector> |
| 9 | |
| 10 | #include "ots.h" |
| 11 | |
| 12 | namespace ots { |
| 13 | |
| 14 | struct OpenTypeCMAPSubtableRange { |
| 15 | uint32_t start_range; |
| 16 | uint32_t end_range; |
| 17 | uint32_t start_glyph_id; |
| 18 | }; |
| 19 | |
| 20 | struct OpenTypeCMAP { |
| 21 | OpenTypeCMAP() |
yusukes@chromium.org | a4099a3 | 2009-11-12 01:43:51 +0000 | [diff] [blame^] | 22 | : subtable_3_0_4_data(NULL), |
| 23 | subtable_3_0_4_length(0), |
| 24 | subtable_3_1_4_data(NULL), |
| 25 | subtable_3_1_4_length(0) { |
yusukes@chromium.org | d257d18 | 2009-11-04 04:56:32 +0000 | [diff] [blame] | 26 | } |
| 27 | |
yusukes@chromium.org | a4099a3 | 2009-11-12 01:43:51 +0000 | [diff] [blame^] | 28 | // Platform 3, Encoding 0, Format 4, MS Symbol table. |
| 29 | const uint8_t *subtable_3_0_4_data; |
| 30 | size_t subtable_3_0_4_length; |
| 31 | // Platform 3, Encoding 1, Format 4, MS Unicode BMP table. |
| 32 | const uint8_t *subtable_3_1_4_data; |
| 33 | size_t subtable_3_1_4_length; |
| 34 | |
| 35 | // Platform 3, Encoding 10, Format 12, MS Unicode UCS-4 table. |
| 36 | std::vector<OpenTypeCMAPSubtableRange> subtable_3_10_12; |
| 37 | // Platform 3, Encoding 10, Format 13, MS UCS-4 Fallback table. |
| 38 | std::vector<OpenTypeCMAPSubtableRange> subtable_3_10_13; |
| 39 | // Platform 1, Encoding 0, Format 0, Mac Roman table. |
| 40 | std::vector<uint8_t> subtable_1_0_0; |
yusukes@chromium.org | d257d18 | 2009-11-04 04:56:32 +0000 | [diff] [blame] | 41 | }; |
| 42 | |
| 43 | } // namespace ots |
| 44 | |
| 45 | #endif |