Roll src/third_party/WebKit 06cb9e9:a978ee5 (svn 202558:202559)
[chromium-blink-merge.git] / third_party / ots / src / woff2.h
blob54de1ba3579c157f4a7112530270752baf867ca1
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
3 // found in the LICENSE file.
5 #ifndef OTS_WOFF2_H_
6 #define OTS_WOFF2_H_
8 namespace ots {
10 // Compute the size of the final uncompressed font, or 0 on error.
11 size_t ComputeWOFF2FinalSize(const uint8_t *data, size_t length);
13 // Decompresses the font into the target buffer. The result_length should
14 // be the same as determined by ComputeFinalSize(). Returns true on successful
15 // decompression.
16 bool ConvertWOFF2ToSFNT(Font *font, uint8_t *result, size_t result_length,
17 const uint8_t *data, size_t length);
20 #endif // OTS_WOFF2_H_