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

Side by Side Diff: third_party/ots/src/woff2.h

Issue 966703002: Updating OTS with new fixes for Color table from github (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing file permissions Created 5 years, 9 months 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/src/ots.cc ('k') | third_party/ots/src/woff2.cc » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 OTS_WOFF2_H_ 5 #ifndef OTS_WOFF2_H_
6 #define OTS_WOFF2_H_ 6 #define OTS_WOFF2_H_
7 7
8 namespace ots { 8 namespace ots {
9 9
10 // Compute the size of the final uncompressed font, or 0 on error. 10 // Compute the size of the final uncompressed font, or 0 on error.
11 size_t ComputeWOFF2FinalSize(const uint8_t *data, size_t length); 11 size_t ComputeWOFF2FinalSize(const uint8_t *data, size_t length);
12 12
13 // Decompresses the font into the target buffer. The result_length should 13 // Decompresses the font into the target buffer. The result_length should
14 // be the same as determined by ComputeFinalSize(). Returns true on successful 14 // be the same as determined by ComputeFinalSize(). Returns true on successful
15 // decompression. 15 // decompression.
16 bool ConvertWOFF2ToTTF(OpenTypeFile *file, uint8_t *result, size_t result_length , 16 bool ConvertWOFF2ToSFNT(OpenTypeFile *file, uint8_t *result, size_t result_lengt h,
17 const uint8_t *data, size_t length); 17 const uint8_t *data, size_t length);
18 } 18 }
19 19
20 #endif // OTS_WOFF2_H_ 20 #endif // OTS_WOFF2_H_
OLDNEW
« no previous file with comments | « third_party/ots/src/ots.cc ('k') | third_party/ots/src/woff2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698