Commit Graph

19 Commits

Author SHA1 Message Date
Garret Rieger 62ae7a4c1e Add woff2 encoder/decoder support for overlapSimpleBitmap.
overlapSimpleBitmap is a new field in the transformed glyf table (https://www.w3.org/TR/WOFF2/#glyf_table_format). It allows the overlap simple flag set on glyphs in the original font to be saved into the woff2 encoding.
2022-03-29 13:49:27 -07:00
Frédéric Wang 9b5a53b1d7 Move public headers into a separate include/woff2 directory
This is a first step to make WOFF2 a shared library. Public headers are moved
in their own directory to make the public API clearer. This is similar to
the c/include/brotli/ directory in Brotli. "using" commands are also removed
from the public headers, so that callers won't have unexpected side effect
when including the files.
2017-10-05 12:04:24 -07:00
Rod Sheeter 53846e1861 Relicense as MIT 2017-10-04 16:12:46 -07:00
Garret Rieger 12141fdaf2 Support tables with 0 length (which previously failed in multiple places). 2017-07-19 17:32:38 -07:00
Eugene Kliuchnikov 9db42c09e9 Roll new brotli version. 2016-12-06 11:14:53 +01:00
Rod Sheeter afbecce5ff Fix TTC detection, based on findings by libFuzzer 2016-05-25 08:53:43 -07:00
Rod Sheeter 9476664fd6 Fix bug where table could mismatch header vs data when allow_transforms was set false (not easily possible w/current tools) 2016-05-06 13:10:33 -07:00
Rod Sheeter 07cd303dd2 Update to latest brotli. Use size_t more consistently. Remove dead code. 2016-04-21 09:27:28 -07:00
Rod Sheeter b220918cab Stop trusting header totalSfntSize and glyf origLength 2016-03-08 12:30:08 -08:00
Rod Sheeter bdf886a06b Allow WOFF2Params to specify no transformations at all 2016-01-28 11:36:18 -08:00
Rod Sheeter c817c969bf hmtx optimization decoding. never encodes hmtx optimized as yet; need a cli param. 2016-01-20 14:10:02 -08:00
Khaled Hosny 17ed658d0a Don’t print to stderr unless a standalone binary
We will use woff2 code from OTS and it is undesirable for a library to
print messages to stderr.
2015-08-28 01:30:03 +02:00
Khaled Hosny 208c8f854e Kill kWoff2FlagsContinueStream
There is only a single data stream for all the compressed tables, but
the code was originally written for separately compressed tables then
retrofitted, so this is an attempt to streamline it a bit.
2015-07-15 11:25:52 +02:00
Rod Sheeter ea4c87a2c5 Updates from internal copy. Better branch prediction, ability to set Brotli quality on ConvertTTFToWOFF2 2015-07-13 09:08:04 -07:00
Rod Sheeter 538b401b77 tweak to how index by offset is built 2015-02-25 09:22:45 -08:00
Rod Sheeter 4e48243b3a In some build environments this results in off-by-one 2015-02-24 16:04:13 -08:00
Rod Sheeter 1c975530b9 Adding TTC support, take 1 2015-02-24 13:53:35 -08:00
Rod Sheeter 0a8567d4f9 Minor updates from internal copy 2015-02-12 09:30:22 -08:00
Khaled Hosny 09c4eba0f6 Rename woff2 to src 2014-11-22 16:35:21 +02:00