Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: third_party/ots/include/opentype-sanitiser.h

Issue 1487543005: Update OTS to revision 99a3b7f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/ots/configure.ac ('k') | third_party/ots/ots.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « third_party/ots/configure.ac ('k') | third_party/ots/ots.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698