OLD | NEW |
1 // Copyright 2013 Google Inc. All Rights Reserved. | 1 // Copyright 2013 Google Inc. All Rights Reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 29 matching lines...) Expand all Loading... |
40 const uint8_t* data; | 40 const uint8_t* data; |
41 | 41 |
42 // Buffer used to mutate the data before writing out. | 42 // Buffer used to mutate the data before writing out. |
43 std::vector<uint8_t> buffer; | 43 std::vector<uint8_t> buffer; |
44 | 44 |
45 // If we've seen this tag/offset before, pointer to the first time we saw it | 45 // If we've seen this tag/offset before, pointer to the first time we saw it |
46 // If this is the first time we've seen this table, NULL | 46 // If this is the first time we've seen this table, NULL |
47 // Intended use is to bypass re-processing tables | 47 // Intended use is to bypass re-processing tables |
48 Font::Table* reuse_of; | 48 Font::Table* reuse_of; |
49 | 49 |
| 50 uint8_t flag_byte; |
| 51 |
50 // Is this table reused by a TTC | 52 // Is this table reused by a TTC |
51 bool IsReused() const; | 53 bool IsReused() const; |
52 }; | 54 }; |
53 std::map<uint32_t, Table> tables; | 55 std::map<uint32_t, Table> tables; |
54 std::vector<uint32_t> OutputOrderedTags() const; | 56 std::vector<uint32_t> OutputOrderedTags() const; |
55 | 57 |
56 Table* FindTable(uint32_t tag); | 58 Table* FindTable(uint32_t tag); |
57 const Table* FindTable(uint32_t tag) const; | 59 const Table* FindTable(uint32_t tag) const; |
58 }; | 60 }; |
59 | 61 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // with the given index. Returns false if the glyph is not found. | 103 // with the given index. Returns false if the glyph is not found. |
102 bool GetGlyphData(const Font& font, int glyph_index, | 104 bool GetGlyphData(const Font& font, int glyph_index, |
103 const uint8_t** glyph_data, size_t* glyph_size); | 105 const uint8_t** glyph_data, size_t* glyph_size); |
104 | 106 |
105 // Removes the digital signature (DSIG) table | 107 // Removes the digital signature (DSIG) table |
106 bool RemoveDigitalSignature(Font* font); | 108 bool RemoveDigitalSignature(Font* font); |
107 | 109 |
108 } // namespace woff2 | 110 } // namespace woff2 |
109 | 111 |
110 #endif // WOFF2_FONT_H_ | 112 #endif // WOFF2_FONT_H_ |
OLD | NEW |