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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // partial output may have been written. | 184 // partial output may have been written. |
185 // input: the OpenType file | 185 // input: the OpenType file |
186 // length: the size, in bytes, of |input| | 186 // length: the size, in bytes, of |input| |
187 // ----------------------------------------------------------------------------- | 187 // ----------------------------------------------------------------------------- |
188 bool Process(OTSStream *output, const uint8_t *input, size_t length); | 188 bool Process(OTSStream *output, const uint8_t *input, size_t length); |
189 | 189 |
190 // Force to disable debug output even when the library is compiled with | 190 // Force to disable debug output even when the library is compiled with |
191 // -DOTS_DEBUG. | 191 // -DOTS_DEBUG. |
192 void DisableDebugOutput(); | 192 void DisableDebugOutput(); |
193 | 193 |
| 194 // Enable WOFF2 support(experimental). |
| 195 void EnableWOFF2(); |
| 196 |
194 } // namespace ots | 197 } // namespace ots |
195 | 198 |
196 #endif // OPENTYPE_SANITISER_H_ | 199 #endif // OPENTYPE_SANITISER_H_ |
OLD | NEW |