Cosimo Lupo
b371f23760
fontBuilder: don't add mac names for fvar and STAT if name table hasn't any
2024-11-14 12:57:44 +01:00
Behdad Esfahbod
0a7433f847
[cffLib] Add CFF<->CFF2 convertors that work on otFont
2024-05-16 16:29:22 -07:00
NightFurySL2001
e97aab69eb
Fix test bug
2023-07-08 00:10:12 +08:00
NightFurySL2001
20236624e1
Add panose test for fontbuilder
2023-07-07 23:34:02 +08:00
Just van Rossum
a912f7d16f
Add minimal avar test
2023-06-25 16:09:05 +02:00
Cosimo Lupo
57d5da2039
rename parameter validateGlyphFormat and reword docstring as per review
2023-05-23 14:41:16 +01:00
Cosimo Lupo
469c9ad963
add option to skip glyphDataFormat check for speed
...
If one is certain that the glyph data has compatible format and prefers not to wait for each glyph flag to checked...
2023-05-23 13:16:02 +01:00
Cosimo Lupo
9bb3b652b0
fontBuilder_test: test error with cubics but glyf format 0
2023-05-23 12:56:09 +01:00
Nikolaus Waxweiler
d584daa8fd
Blacken code
2022-12-13 11:26:36 +00:00
Cosimo Lupo
7ee2c9d891
testTools: factor our method to strip variable items from ttx dumps
...
it was scattered here and there, so define it once and reuse everywhere needed
2022-04-05 18:34:30 +01:00
Just van Rossum
d6bb38c7e6
[otlLib.builder] Add function to build STAT table from high-level description ( #1926 )
...
* added a function to build a STAT table: `fontTools.otlLib.builder.buildStatTable()`
* make `varLib._add_stat()` a client of `buildStatTable()`
2020-05-09 16:08:11 +02:00
Khaled Hosny
323d0c85d1
fontBuilder: Allow varLib to use fresh CFF table
...
Make sure the CFF table generated by fontBuilder can be used by varLib
without having to compile and decompile the table first. This was
breaking in converting the CFF table to CFF2 due to some unset
attributes.
2020-02-22 13:51:45 +02:00
Cosimo Lupo
e821f1fb9e
fontBuilder: add FontBuilder.addFeatureVariations method
...
like the existing addOpenTypeFeatures
it simply forwards to featureVars.addFeatureVariations
2019-12-12 11:55:13 +00:00
Nikolaus Waxweiler
01328213c7
Remove __future__ imports
2019-08-09 12:20:13 +01:00
Miguel Sousa
45596108e2
(Re)calculate OS/2.usMaxContext value
...
The value is only modified in the context of fontBuilder or subset. It will NOT be modified when using ttx.
maxContextCalc.py was copied from https://github.com/googlefonts/ufo2ft/blob/master/Lib/ufo2ft/maxContextCalc.py
Fixes #1191
Fixes #466
2019-04-24 18:31:12 -07:00
Miguel Sousa
2c54bf7910
Use existing method
2019-04-01 21:26:07 -07:00
Miguel Sousa
86cea23de3
Un-hardcode the CFF glyph's left side bearing
2019-04-01 21:25:27 -07:00
Miguel Sousa
b0710b829b
[fontBuilder] Enable making CFF2 fonts with 'post' table format 2
...
Before this change all OTFs wound up with 'post' table format 3
2019-04-01 21:09:21 -07:00
justvanrossum
1a8cccc818
explicitly test glyphName = None
2019-01-09 16:14:22 +01:00
justvanrossum
863bdb60c8
allow dumping/verifying a custom subset of the tables
2019-01-09 15:02:48 +01:00
justvanrossum
391f7a76c0
added support for cmap format 14 Unicode Variation Sequences
2019-01-09 14:53:35 +01:00
Cosimo Lupo
68e918d32b
fontBuilder: add options to setupNameTable to disable Mac (or Win) names
...
as of https://github.com/fonttools/fonttools/pull/1359 , both sets of names are added by
default. This allows users to optionally exclude Macintosh platform names (i.e. mac=False).
2019-01-07 10:46:48 +00:00
justvanrossum
82c4f410fb
remove empty fdArrayList argument, will be filled in
2018-12-05 15:09:27 +01:00
justvanrossum
de1dbe5f16
some more test refactoring
2018-12-05 14:03:15 +01:00
justvanrossum
c663e7f299
refactor output verifying
2018-12-05 13:57:07 +01:00
justvanrossum
9d73327f3b
Some support for CFF2
2018-12-05 13:51:42 +01:00
justvanrossum
cc540c41e9
oops, removed leftover debug turd
2018-11-02 11:59:07 +01:00
justvanrossum
0bfee639c6
test named instances
2018-11-02 08:02:56 +01:00
justvanrossum
6e299a1bd5
set reasonable values for ascent and descent, test toy variation font
2018-11-01 21:33:08 +01:00
justvanrossum
beaf0432a9
added many docstrings, and added setupHorizontalMetrics and setupVerticalMetrics methods to replace setupMetrics
2018-11-01 20:30:21 +01:00
justvanrossum
25f29841b7
rename setupDSIG to setupDummyDSIG and added a doc string to clarify the legacy status of this
2018-11-01 13:19:27 +01:00
justvanrossum
d10dc87527
test DSIG
2018-11-01 12:13:47 +01:00
justvanrossum
cabce338c7
calculate glyph bounds implicitly (unless asked not to do that)
2018-11-01 10:17:07 +01:00
justvanrossum
cfd00ef3dd
don't need to specify keepGlyphNames, esp. if it matches defsult behavior
2018-11-01 09:57:35 +01:00
justvanrossum
19eac2e00a
test localized name table entries
2018-11-01 09:55:27 +01:00
justvanrossum
a442ce627d
work towards making name strings localizable
2018-11-01 09:52:06 +01:00
justvanrossum
0ae6b7f777
workaround path object issue on py 2.7
2018-10-31 21:09:27 +01:00
justvanrossum
96cdf116ee
initial commit, with rudimentary tests
2018-10-31 20:54:34 +01:00