summaryrefslogtreecommitdiffstats
path: root/Source/ThirdParty/woff2/src/woff2_dec.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/ThirdParty/woff2/src/woff2_dec.h')
-rw-r--r--Source/ThirdParty/woff2/src/woff2_dec.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/ThirdParty/woff2/src/woff2_dec.h b/Source/ThirdParty/woff2/src/woff2_dec.h
index 74ba7f5cd..b889812fb 100644
--- a/Source/ThirdParty/woff2/src/woff2_dec.h
+++ b/Source/ThirdParty/woff2/src/woff2_dec.h
@@ -19,6 +19,7 @@
#include <stddef.h>
#include <inttypes.h>
+#include "./woff2_out.h"
namespace woff2 {
@@ -28,9 +29,16 @@ size_t ComputeWOFF2FinalSize(const uint8_t *data, size_t length);
// Decompresses the font into the target buffer. The result_length should
// be the same as determined by ComputeFinalSize(). Returns true on successful
// decompression.
+// DEPRECATED; please prefer the version that takes a WOFF2Out*
bool ConvertWOFF2ToTTF(uint8_t *result, size_t result_length,
const uint8_t *data, size_t length);
+// Decompresses the font into out. Returns true on success.
+// Works even if WOFF2Header totalSfntSize is wrong.
+// Please prefer this API.
+bool ConvertWOFF2ToTTF(const uint8_t *data, size_t length,
+ WOFF2Out* out);
+
} // namespace woff2
#endif // WOFF2_WOFF2_DEC_H_