6954 Commits

Author SHA1 Message Date
ReadRoberts
1fe0348bad Remove old debug pdb.set_trace(). This has already been fixed on another branch that has not yet been merged, but I need to fix it here for the VVAR test to pass. 2019-03-21 10:48:56 -07:00
ReadRoberts
ecf738b964 Add support for building VVAR table from vmtx and VORG tables.
Add test case.
2019-03-21 10:06:47 -07:00
Cosimo Lupo
6281f87cb6 rename partialInstancer.py to instancer.py 2019-03-21 15:30:48 +00:00
Cosimo Lupo
2ee528e2fd Merge branch 'master' into partial-instancer 2019-03-21 15:26:27 +00:00
Cosimo Lupo
c6006a7f8c [glyf] remove_hinting should del program from composite glyph
Unlike simple glyphs, which always have 'program' attribute (even when empty, with no instructions)
in composite glyphs, it's the presence of 'program' attribute that determines whether
the optional WE_HAVE_INSTRUCTIONS component flag is set or not.
Thus, the trim method (with remove_hinting=True) should delete the attribute for
composite glyphs.

Fixes https://github.com/fonttools/fonttools/issues/1550
2019-03-21 12:16:54 +00:00
Cosimo Lupo
d2c462a0fb Bump version: 3.39.0 → 3.39.1.dev0 2019-03-19 16:38:33 +00:00
Cosimo Lupo
88a9e718c4 Release 3.39.0 2019-03-19 16:38:33 +00:00
Cosimo Lupo
cc6fce55c7 Update changelog [skip ci] 2019-03-19 16:29:41 +00:00
ReadRoberts
635537604d Fix for subsetting HVAR tables that have an AdvanceWidthMap when the --retain-gid option is used. Needed to make subset_test.py::test_retain_gids_cff2 tests pass. 2019-03-19 16:27:21 +00:00
Cosimo Lupo
1cb9b81861 Update changelog [skip ci] 2019-03-19 15:08:18 +00:00
Nyshadh Reddy Rachamallu
677b540265 Add ItemVariationStore (and MVAR) instantiation 2019-03-19 10:44:39 -04:00
Just van Rossum
b2f7ea3d1c
Merge pull request #1546 from justvanrossum/fix_issue1545
[ttLib/glyf] Raise more specific error when encountering recursive components. Fixes #1545.
2019-03-18 08:41:12 +01:00
justvanrossum
20c93b9fdb use RecursionError, and provide an alias for RuntimeError for Py2 2019-03-17 18:18:10 +01:00
justvanrossum
12ec7f539e improve error message 2019-03-17 15:35:35 +01:00
justvanrossum
ac2413e905 [ttLib/glyf] raise TTLibError with the offending glyph name in the error message when a component (indirectly) references itself 2019-03-17 15:30:20 +01:00
Nikolaus Waxweiler
5290e831a1 Remove pyftinspect (#1542) 2019-03-15 11:03:20 -07:00
Nikolaus Waxweiler
4921d97d02 Revert "Remove pyftinspect"
This reverts commit d3d550976a7455f16831118446cc431da647e081.

This was an accidental commit.
2019-03-15 15:23:54 +00:00
Nikolaus Waxweiler
d3d550976a Remove pyftinspect 2019-03-15 15:17:51 +00:00
Khaled Hosny
45861a15ca [feaLib] Reject invalid lookupflag without a value
Fixes https://github.com/fonttools/fonttools/issues/1538
2019-03-15 14:13:46 +02:00
Khaled Hosny
250eac4cae [feaLib] Correctly handle lookupflag 0 in asFea()
Part of https://github.com/fonttools/fonttools/issues/1538
2019-03-15 14:13:46 +02:00
Martin Hosken
27d8d1bda0 Update tests 2019-03-15 11:16:51 +07:00
Martin Hosken
06ed699785 Compress type 1 GPOS tables better 2019-03-15 10:50:13 +07:00
Nikolaus Waxweiler
079f68350f [designspaceLib] Document proposed public.skipExportGlyphs lib key (#1534)
* Document proposed public.skipExportGlyphs lib key
2019-03-14 16:06:05 -05:00
Nyshadh Reddy Rachamallu
d91caaf915 Add cvar instantiation 2019-03-14 10:59:15 -04:00
Cosimo Lupo
abae80d730 [feaLib] make 'forceChain' an optional kwarg for barkward compat
See discussion at:
https://github.com/fonttools/fonttools/pull/1511#issuecomment-472425283
2019-03-13 15:11:53 +00:00
Cosimo Lupo
126a2d9c38 Add partialInstancer_test.py and PartialInstancerTest-VF.ttx
Currently tests the instantiateGvar function only.
The test font contains two axes and a single glyph.
I shall make add more complexity later.
2019-03-12 19:44:33 +00:00
Cosimo Lupo
373d1b86f3 clarify in docstring that input axis limits must be in user-space coordinates
in case it wasn't obvious
2019-03-12 19:02:14 +00:00
Cosimo Lupo
3adcf8051c add glyf.getCoordinates method that only returns coordinates, and no controls 2019-03-12 19:01:26 +00:00
Cosimo Lupo
355139db5a let input axis_limits be a map axis_tag:value as well as range tuples
this way instanceVariableFont function can be used as drop-in replacement for
mutator.instaceVariableFont (which only accepts single-point locations, not ranges)
2019-03-12 17:59:11 +00:00
Cosimo Lupo
242ad6279d [merge] don't drop platformID=0 Unicode cmap subtables
instead treat them as equivalent to platformID=3 Windows Unicode subtables
2019-03-12 13:13:15 +00:00
Cosimo Lupo
2c3c74f108 [merge] support merging vhea table (same as hhea) 2019-03-12 12:26:54 +00:00
Cosimo Lupo
1fd11a3a0a psCharStrings: replace sys.stderr.write with log.warning 2019-03-12 11:43:10 +00:00
Cosimo Lupo
b4fd0e5ca0 varLib: move _{Get,Set}Coordinates to methods of glyf table class 2019-03-11 15:50:16 +00:00
Nikolaus Waxweiler
1765e59f86
Merge pull request #1535 from fonttools/designspaceLib-find-bent-master
designspaceLib, findDefault: consider axis mapping
2019-03-11 12:22:38 +00:00
Nikolaus Waxweiler
754c1c6a2f Minor: Remove redundant comment 2019-03-10 23:03:08 +00:00
Nikolaus Waxweiler
5f7afa23b2 newDefaultLocation: Return location in design space 2019-03-10 22:20:00 +00:00
Nikolaus Waxweiler
c4899330c5 designspaceLib, findDefault: consider axis mapping 2019-03-10 22:12:06 +00:00
Cosimo Lupo
2658b081d2 add missing deepcopy import 2019-03-08 16:24:13 -08:00
Cosimo Lupo
742b1d784a gvar: minor whitespace
mixed tab/spaces freak out my vim
2019-03-08 15:56:38 -08:00
Cosimo Lupo
19ccffcd8a set default output filename to '-instance.ttf' like mutator.py 2019-03-08 10:37:11 -08:00
Cosimo Lupo
90815e83c7 remove stray print 2019-03-08 10:28:24 -08:00
Cosimo Lupo
3c69682a16 partialInstancer: run black autoformatter 2019-03-07 19:18:14 -08:00
Rod Sheeter
aa59dc92cf better error when pointed at a non-variable font 2019-03-06 21:58:58 -08:00
Rod Sheeter
ced09ff3fd Makes life easier if ranged limits are wired from start 2019-03-06 21:54:15 -08:00
Cosimo Lupo
b6501a9406 added WIP fontTools.varLib.partialInstancer module
can only partially instantiate gvar for now
2019-03-06 17:43:28 -08:00
Cosimo Lupo
9efbb0e74e
Merge pull request #1533 from justvanrossum/license_url
fix embedded license URL in name tables of test fonts
2019-03-06 17:31:51 -08:00
justvanrossum
24b45b6326 fix embedded license URL in name tables of test fonts 2019-03-06 17:20:40 +01:00
Just van Rossum
a6a897db56
Merge pull request #1532 from justvanrossum/issue_urls2
More updated issue URLs.
2019-03-06 17:07:54 +01:00
justvanrossum
7b81ef8de7 more updated issue URLs 2019-03-06 16:53:17 +01:00
justvanrossum
d897a08fc8 more updated issue URLs 2019-03-06 16:52:35 +01:00