OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef OPENTYPE_SANITISER_H_ | 5 #ifndef OPENTYPE_SANITISER_H_ |
6 #define OPENTYPE_SANITISER_H_ | 6 #define OPENTYPE_SANITISER_H_ |
7 | 7 |
8 #if defined(_WIN32) | 8 #if defined(_WIN32) |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 typedef signed char int8_t; | 10 typedef signed char int8_t; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 bool Process(OTSStream *output, const uint8_t *input, size_t length, uint32_
t index = -1); | 176 bool Process(OTSStream *output, const uint8_t *input, size_t length, uint32_
t index = -1); |
177 | 177 |
178 // This function will be called when OTS is reporting an error. | 178 // This function will be called when OTS is reporting an error. |
179 // level: the severity of the generated message: | 179 // level: the severity of the generated message: |
180 // 0: error messages in case OTS fails to sanitize the font. | 180 // 0: error messages in case OTS fails to sanitize the font. |
181 // 1: warning messages about issue OTS fixed in the sanitized font. | 181 // 1: warning messages about issue OTS fixed in the sanitized font. |
182 virtual void Message(int level, const char *format, ...) MSGFUNC_FMT_ATTR {} | 182 virtual void Message(int level, const char *format, ...) MSGFUNC_FMT_ATTR {} |
183 | 183 |
184 // This function will be called when OTS needs to decide what to do for a | 184 // This function will be called when OTS needs to decide what to do for a |
185 // font table. | 185 // font table. |
186 // tag: table tag as an integer in big-endian byte order, independent of | 186 // tag: table tag formed with OTS_TAG() macro |
187 // platform endianness | |
188 virtual TableAction GetTableAction(uint32_t tag) { return ots::TABLE_ACTION_
DEFAULT; } | 187 virtual TableAction GetTableAction(uint32_t tag) { return ots::TABLE_ACTION_
DEFAULT; } |
189 }; | 188 }; |
190 | 189 |
191 } // namespace ots | 190 } // namespace ots |
192 | 191 |
193 #endif // OPENTYPE_SANITISER_H_ | 192 #endif // OPENTYPE_SANITISER_H_ |
OLD | NEW |