Cosimo Lupo
deaeb909a7
woff2: add support for hmtx transformation
...
no tests yet
fixup
2019-06-13 18:07:14 +01:00
Cosimo Lupo
0162446f4c
woff2: don't normalize glyf+loca if we aren't transforming them
...
Also, the TTFont.getGlyphOrder() automatically makes up a dummy
glyph order from the maxp.numGlyphs, we simply need to ensure
'maxp' is decompiled before 'glyf'.
When transforming glyf, the glyf.glyphOrder is guaranteed to
be present (as the glyf table has been already decompiled), so
we don't need to deal with it being missing or incorrect
(hence removed spurious tests).
2019-06-12 18:41:13 +01:00
Cosimo Lupo
c98b71af5c
woff2: add support for unstransformed glyf and loca tables
...
Fixes https://github.com/fonttools/fonttools/issues/1636
2019-06-11 15:12:27 +01:00
Behdad Esfahbod
349cd94d17
[graphite] Fix for big-endian
...
Make all "if sys.byteorder..." and "byteswap" be on the same line for
earsier grep verification.
Fixes https://github.com/fonttools/fonttools/issues/1311
2018-09-05 21:12:53 -07:00
Cosimo Lupo
6a92ae085b
[woff2] replace print with logger
2016-01-27 19:01:12 +00:00
Sascha Brawer
5f5b07b8d7
Merge pull request #349 from brawer/glyphnames-beyond-bmp
...
Support non-BMP characters for synthetic glyph names
2015-09-09 15:03:06 +02:00
Cosimo Lupo
f8e59445c1
[woff2] minor
2015-09-09 12:16:49 +01:00
Cosimo Lupo
ed03d57170
[woff2] make dummy glyphOrder based on gids when decompiling glyf table
...
Using TTFont.getGlyphOrder() would also require to decompile post and cmap tables.
But we don't need the actual glyph names in order to apply the WOFF2 glyf transform.
2015-09-08 17:01:59 +01:00
Cosimo Lupo
ef71757a42
[woff2] cache reconstructed glyf data if requested to reconstruct loca before glyf
2015-08-19 22:58:17 +01:00
Cosimo Lupo
3142e3319e
add reordersTables() method to SFNTWriter and WOFF2Writer (return True for the latter)
2015-08-19 17:56:46 +01:00
Cosimo Lupo
f083209590
[woff2] use OrderedDict like sfnt module
2015-08-19 16:36:03 +01:00
Cosimo Lupo
2a713bfd79
[woff2/woff2_test] replace 'StringIO' with 'BytesIO'
2015-08-07 18:23:55 +01:00
Cosimo Lupo
b6ce7ae668
[woff2] add woff2 module with support for reading/writing single WOFF2 fonts (no font collections yet)
2015-08-07 18:23:41 +01:00