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
justvanrossum
e22453c933
followup to #1531
2019-03-06 16:47:16 +01:00
Just van Rossum
2493332c86
Merge pull request #1531 from justvanrossum/issue_urls
...
updated inline github issue URLs to current repo location
2019-03-06 16:18:03 +01:00
justvanrossum
723e7a1d3c
updated inline github issue URLs
2019-03-06 16:01:28 +01:00
Cosimo Lupo
a72088b65e
Merge pull request #1528 from anthrotype/gvar-vmtx-phantom-pts
...
varLib: use vmtx to compute vertical phantom points, else fall back to ascent - UPEM
2019-03-05 22:27:29 -08:00
Cosimo Lupo
df3bbbb7ad
varLib: use hhea.ascent and head.unitsPerEM for phantom pts when vmtx missing
...
https://github.com/anthrotype/fonttools/pull/new/gvar-vmtx-phantom-pts
2019-03-05 10:02:35 -08:00
Cosimo Lupo
cf9f866943
varLib: fix expected test results after bottomSideY changed sign
2019-03-04 18:41:43 -08:00
Cosimo Lupo
52ec934a02
varLib: use vmtx to compute phantom pts; fix sign of bottomSideY
...
when 'vmtx' is present in a font, use that to compute the third and fourth 'phantom points'.
When not present, we use the glyph bbox yMax and yMin coords.
NOTE that previously the bottomSideY was incorrectly set to -glyph.yMin (with a minus sign).
However, the minus is not needed when we use the bbox.
Positive vertical advance grows towards negative Y axis.
2019-03-04 18:33:23 -08:00
Cosimo Lupo
3de9e2978c
Merge pull request #1525 from fonttools/pyup-scheduled-update-2019-03-04
...
Scheduled weekly dependency update for week 09
2019-03-04 17:03:15 -08:00
Cosimo Lupo
a15f94f0c6
Merge pull request #1527 from anthrotype/tuplevar-ttx-ordered-attrs
...
TupleVariation.toXML: sort attrs min/value/max in TTX dump
2019-03-04 17:02:08 -08:00
Cosimo Lupo
2dedea5f8f
models: remove unused axisOrder argument from _computeMasterSupports private method
...
it's no longer used in the body of the method. If needed, it's accessible from self.axisOrder
2019-03-04 16:58:15 -08:00
Cosimo Lupo
f8c7950e48
models: minor: explicitly test for axisOrder is None
...
389cf7c56a (r32585140)
2019-03-04 16:51:53 -08:00
Cosimo Lupo
71e44a52ee
TupleVariation.toXML: sort attrs min/value/max in TTX dump
...
It's more legible if the peak value is written after the min and before the max value
defining a given region.
2019-03-04 16:41:26 -08:00
Cosimo Lupo
694b57754c
Merge pull request #1526 from anthrotype/varLib-models-tests
...
[varLib.models] minor tests cleanups
2019-03-04 16:34:43 -08:00
Just van Rossum
a360252709
Merge pull request #1523 from justvanrossum/cmap_update2
...
[cmap,VORG,COLR,otTables] misc idiomatic updates
2019-03-04 21:54:46 +01:00
Cosimo Lupo
c813b65d32
models_test: test default 0.0 input locations are omitted internally
2019-03-04 12:38:32 -08:00
Cosimo Lupo
0811834b3c
models_test: VariationModel input locations should be in normalized space
...
not only base should be at 0, but min/max respectively at -1.0 and +1.0.
that's how varLib constructs models internally, so update test case to reflect that
2019-03-04 12:31:08 -08:00
Cosimo Lupo
05824b8616
VariationModel: assert that locations are unique
2019-03-04 11:42:54 -08:00
Cosimo Lupo
d8152feb21
VariationModels: remove unused lowerBound/upperBound static methods
2019-03-04 11:15:06 -08:00
Cosimo Lupo
b9aa815d06
models_test: bundle test methods under VariationModelTest class
...
in preparation for adding more unit tests to VariationModel class.
2019-03-04 11:03:34 -08:00
Cosimo Lupo
7e85782900
models_test: parametrize VariationModel tests
...
I noticed there were two functions called 'test_VariationModel', the second one
shadowing the first.
2019-03-04 11:00:11 -08:00
Cosimo Lupo
389cf7c56a
VariationModel: don't use mutable list default value for 'axisOrder' parameter
2019-03-04 10:58:47 -08:00
pyup-bot
56c4534c3e
Update fs from 2.4.3 to 2.4.4
2019-03-04 07:24:07 -08:00
justvanrossum
92e722365f
whitespace
2019-03-04 11:32:32 +01:00
justvanrossum
26ec6054a9
no need for a variable with only one use of len(vorgs)
2019-03-04 11:31:26 +01:00