9953 Commits

Author SHA1 Message Date
Just van Rossum
7aa4c0fb29 Avoid glyphSetClass variable; reads a little bit better 2022-08-30 08:49:36 +02:00
Just van Rossum
8fb071a403 remove redundant initializer 2022-08-30 08:49:36 +02:00
Just van Rossum
b45d9b014a simplify class selection logic 2022-08-30 08:49:36 +02:00
Just van Rossum
65814c3ccd inline haveCFF condition 2022-08-30 08:49:36 +02:00
Just van Rossum
d5db47e09d minor cleanup 2022-08-30 08:49:36 +02:00
Just van Rossum
b818e1494f Refactor ttGlyphSet.py
- only differentiate between glyf and CFF/CFF2 implementations, not var vs non-var
- use collections.abc.Mapping to get a more consistent dict-like object with less code
- prefer HVAR metrics over gvar metrics
- move some responsibilities from the _TTGlyphSet objects to the _TTGlyph objects
- adjust some tests to the changes
2022-08-30 08:49:36 +02:00
Behdad Esfahbod
c04afbedaf [varLib.interpolatable] Fix naming of varfont masters 2022-08-29 17:08:30 -06:00
Behdad Esfahbod
250cec869e [interpolatable] Compare all masters to first master
Reduces number of errors reported.
2022-08-29 17:03:11 -06:00
Just van Rossum
4abf2ee8c6
Merge pull request #2788 from fonttools/varglyphset-spaces
[ttVarGlyphSet] Convert tabs to spaces
2022-08-29 19:33:23 +02:00
Just van Rossum
8932ab427f Convert tabs to spaces 2022-08-29 19:28:46 +02:00
Just van Rossum
633bc2732f
Merge pull request #2784 from fonttools/varglyphset-cff
[ttVarGlyphSet] Support CFF
2022-08-29 19:26:14 +02:00
Behdad Esfahbod
24bd200b6e [ttGlyphSet-CFF] Cache instancer 2022-08-27 13:32:19 -06:00
Behdad Esfahbod
bcd637bd1a [ttGlyphSet-cff] Remove rounding 2022-08-27 12:20:15 -06:00
Just van Rossum
a2f67b964a
Merge pull request #2785 from fonttools/fontbuilder-empty-cmap
[fontBuilder] don't error when there are zero code points
2022-08-27 10:44:45 +02:00
Just van Rossum
8af6c16b6a don't error when there are zero code points 2022-08-27 10:29:12 +02:00
Behdad Esfahbod
b3d6868516 [ttGlyphSet_test] Test CFF2 variations 2022-08-26 21:42:14 -06:00
Behdad Esfahbod
f5a1d0ba10 [ttVarGlyphSet-CFF] Handle font without advance variation 2022-08-26 21:24:24 -06:00
Behdad Esfahbod
a949380b4a [psCharStrings] Internal var rename 2022-08-26 21:23:04 -06:00
Behdad Esfahbod
9fe1f8c73e [ttVarGlyphSet-cff] Handle non-variable fonts 2022-08-26 21:20:56 -06:00
Behdad Esfahbod
683308abb5 [varGlyphSet-cff] Apply advance width variation 2022-08-26 21:07:10 -06:00
Behdad Esfahbod
4650b8d293 [cff] Store varStore in CharStrings 2022-08-26 21:00:37 -06:00
Behdad Esfahbod
a7cda37fbb [ttVarGlyphSet] Support CFF 2022-08-26 20:52:18 -06:00
Behdad Esfahbod
9cb418cbfc [varLib.plot] Add plotModelFromMasters 2022-08-26 11:17:26 -06:00
Just van Rossum
a32a92e6d7 add custom __init__ in favor of setting .data externally 2022-08-26 10:53:32 -06:00
Just van Rossum
a0af5727e1 Use UserDict for lazy gar variations dict; alternative for #2779 2022-08-26 10:53:32 -06:00
Behdad Esfahbod
4669372b46 [cu2qu.benchmark] Document main() 2022-08-25 14:38:35 -06:00
Behdad Esfahbod
80033bb2a0 [cu2qu] Move benchmark code into cu2qu.benchmark module 2022-08-25 14:37:59 -06:00
Behdad Esfahbod
2d5a3576d1 [varLib.interpolatable] Report index of contour in error message 2022-08-25 14:15:58 -06:00
Just van Rossum
d1f09e4b34
Merge pull request #2778 from fonttools/varglyphset-pointpen
[ttLib] VarGlyphSet: implement drawPoints natively
2022-08-25 19:02:59 +02:00
Just van Rossum
66411c426b address feedback 2022-08-25 16:11:24 +02:00
Just van Rossum
b460afca09 Implement drawPoints natively 2022-08-25 15:21:54 +02:00
Behdad Esfahbod
d5a08b3b96 [Snippets/statShape] Handle empty shapes 2022-08-24 17:08:07 -06:00
Behdad Esfahbod
1500e35b1c [Snippets/statShape] Draw slant line 2022-08-24 16:32:09 -06:00
Behdad Esfahbod
baecd8850b [Snippets] Add statShape 2022-08-24 16:13:16 -06:00
Behdad Esfahbod
5454989987 [ttGlyphSet] Copy glyph components before shifting
Fixes https://github.com/fonttools/fonttools/issues/2774
2022-08-24 13:30:28 -06:00
Nikolaus Waxweiler
2fcac63a74
Merge pull request #1754 from fonttools/benkiel-patch-1
checkAxis and checkDefault were removed, but not from doc
2022-08-24 19:20:35 +01:00
Ben Kiel
8c3fa47ba8 checkAxis and checkDefault were removed in 3.27.0 2022-08-24 18:57:38 +01:00
Cosimo Lupo
afd0b48f77 Bump version: 4.37.1 → 4.37.2.dev0 2022-08-24 18:36:22 +01:00
Cosimo Lupo
2edaa2a29c Release 4.37.1 2022-08-24 18:36:22 +01:00
Cosimo Lupo
88e105f4a2 Update changelog [skip ci] 2022-08-24 18:36:10 +01:00
Cosimo Lupo
4e43dc2900
Merge pull request #2773 from fonttools/subset-variable
[subset] Fix subsetting of variable fonts
2022-08-24 17:27:22 +01:00
Behdad Esfahbod
27965842eb [subset] Fix subsetting of variable fonts
Fixes https://github.com/fonttools/fonttools/issues/2769
2022-08-24 10:12:32 -06:00
Behdad Esfahbod
78f12ab12d [pens] Add cairoPen 2022-08-24 09:40:17 -06:00
Just van Rossum
33b2dfe709
Merge pull request #2771 from fonttools/faster-lazy-gvar
Read 'gvar' more lazily by not parsing all of the 'glyf' table
2022-08-24 17:40:00 +02:00
Just van Rossum
0637b24b2a Read gvar more lazily by not parsing all of the 'glyf' table 2022-08-24 16:38:00 +02:00
Just van Rossum
21058f61a4
Merge pull request #2770 from fonttools/cff-glyphset-drawpoints
[ttLib] make glyphset[gn].drawPoints(pointPen) work for CFF
2022-08-24 15:21:55 +02:00
Just van Rossum
5aa83bed33 make glyphset[gn].drawPoints(pointPen) work for CFF 2022-08-24 14:48:58 +02:00
Cosimo Lupo
86107453d2 Bump version: 4.37.0 → 4.37.1.dev0 2022-08-23 17:43:58 +01:00
Cosimo Lupo
d4ac42e682 Release 4.37.0 2022-08-23 17:43:58 +01:00
Cosimo Lupo
73d3c12913 Update changelog [skip ci] 2022-08-23 17:43:54 +01:00