Cosimo Lupo
7ca42f6623
Merge pull request #1967 from anthrotype/pickle
...
sfnt: add __getstate__ and __setstate__ to SFNTReader to make it pickelable
2020-05-19 14:03:52 +01:00
Cosimo Lupo
cbe84da8c3
varLib_test: comment why font.close() is needed
2020-05-19 10:57:09 +01:00
Cosimo Lupo
a6612aa6b5
varLib_test: close TTFont otherwise shutil.rmtree fails on Win
...
https://ci.appveyor.com/project/fonttools/fonttools/builds/32948704/job/hc91qjisv4nv603m#L400
2020-05-18 13:16:05 +01:00
Just van Rossum
db26cf804e
[ttLib.name] Fix findMultilingualName() ( #1963 )
...
* when reading from binary, name.string may be an encoded bytes sequence: we should call toUnicode() before we compare to the requested string
* fix expected output
2020-05-16 11:29:23 +02:00
Nikolaus Waxweiler
45a8fcefc2
[varLib] Allow feature variations to be active across the entire space ( #1957 )
...
* Allow feature variations to be active across the entire space
* Add test with empty condition set
* Skip initial box instead of removing it
* Correct comment
2020-05-15 09:27:15 -07:00
justvanrossum
2242aff863
fix expected gvar output to be sorted by glyph name
2020-04-29 16:32:56 +02:00
punchcutter
aeb5149f15
Add variable support for BASE table 1.1
2020-03-20 13:34:02 -07:00
Cosimo Lupo
2516a42a88
[varLib] revert to always build gvar, even if empty
...
turns out gvar is required by OT spec for VF with TrueType outlines:
see https://github.com/fonttools/fonttools/issues/1855#issuecomment-598769956
2020-03-13 15:29:38 +00:00
Simon Cozens
ab075a9957
Annotate LookupFlag ttx dump
2020-03-10 21:42:28 +00:00
Nikolaus Waxweiler
5a53d1d4ad
models: Use new exceptions where input is checked
2020-02-13 15:01:52 +00:00
Nikolaus Waxweiler
8f7a796bd3
init: Convert existing raised exceptions to new appropriate ones
2020-02-13 14:58:10 +00:00
Nikolaus Waxweiler
eb77a3be22
[varLib] Fill in the forward-mapped location
2020-02-11 15:45:49 +00:00
Cosimo Lupo
1c2fb0e3ef
Merge pull request #1809 from justvanrossum/demo-issue1808
...
[varLib] demonstrate and fix #1808
2020-02-03 15:39:32 +00:00
Khaled Hosny
38981b6dae
[varLib] Allow using CFF2 table as source
...
Nothing clever, if the source font has a CFF2 table use it as if it were
a CFF table (i.e. non-variable, not sure what would happen in the source
CFF2 was variable already).
2020-01-31 23:39:47 +02:00
justvanrossum
0bb234d218
added test
2020-01-29 12:42:27 +01:00
justvanrossum
92e03c72b2
removed leftovers from previous edit
2020-01-29 12:02:26 +01:00
justvanrossum
69800b0db5
no need to explicitly close: varLib.build() will do that.
2020-01-29 12:01:05 +01:00
justvanrossum
49507a9de8
undo DesignSpaceDocument context manager changes, and explicitly (but opt-out) close master_fonts within varLib.build()
2020-01-29 11:55:39 +01:00
justvanrossum
e18f63cfa3
make DesignSpaceDocument a context manager that closes source fonts, and use it in the varLib tests.
2020-01-29 11:17:57 +01:00
Cosimo Lupo
12e1a6de37
instancer: catch early if input range doesn't include current default
2019-11-15 19:02:12 +00:00
Cosimo Lupo
7c695d411f
Merge remote-tracking branch 'origin/master' into l3-instancer
2019-11-15 17:05:47 +00:00
Cosimo Lupo
9a707a2c1b
instancer_test: test empty HVAR is not dropped
2019-10-24 17:37:49 +01:00
Cosimo Lupo
10d544d6a4
instancer_test: update tests for instantiateSTAT new behavior
...
And add tests for limiting STAT's axis ranges.
2019-10-24 17:37:49 +01:00
Cosimo Lupo
b8500ac97c
instancer_test: add tests for restricting axis ranges (L3)
2019-10-24 17:10:32 +01:00
Cosimo Lupo
141ff20b37
varLib_test: test building (pseudo) VF with only a single master
...
The SingleMaster.designspace contains only one source master, so there is no real
variation data.
Still, and empty HVAR table is added (with RegionAxisCount == fvar.AxisCount).
The gvar and cvar table are not added in this case, since they are empty and
not required.
2019-10-24 14:10:08 +01:00
justvanrossum
76b8517102
ooops, forgot to add the expected results file
2019-10-20 09:25:50 +02:00
justvanrossum
e2bac99eb8
Test adding FeatureVariations with an existing 'rclt' feature
2019-10-20 09:19:40 +02:00
justvanrossum
4322a3f95d
more testing of rules-processing-last
2019-10-18 13:36:02 +02:00
Cosimo Lupo
2eeba71d5f
fix cvar, gvar and instancer tests to compare floats as almost-equality
2019-10-08 13:40:07 +01:00
Nikolaus Waxweiler
01328213c7
Remove __future__ imports
2019-08-09 12:20:13 +01:00
Cosimo Lupo
5455517689
Merge remote-tracking branch 'origin/master' into partial-instancer
2019-07-31 15:22:48 +01:00
Miguel Sousa
e1f0d1ae09
varLib CFF fixes ( #1653 )
...
* varLib.cff: Apply conv_to_int() to all the values
* varLib: Don't hardcode file extension to 'ttf'
Also remove unused imports
* varLib.cff: Fix merging of sparse PrivateDict items
Fixes #1651
2019-06-24 17:10:36 -07:00
Cosimo Lupo
e6b8897f18
instancer: reuse varLib.set_default_weight_width_slant function
2019-06-20 15:09:17 +01:00
Cosimo Lupo
1726a4a1fc
Merge remote-tracking branch 'origin/master' into partial-instancer
2019-06-20 15:05:34 +01:00
Cosimo Lupo
1122a2612b
varLib: add set_default_weight_width_slant
...
When building a variable font, varLib.build must make sure that
the OS/2.usWeightClass is equal to the wght axis default location,
that the OS/2.usWidthClass is set to the equivalent value (1-9) of
the wdth axis default location, and finally that post.italicAngle
is set to the same default value as slnt axis.
Sometimes the base master doesn't have these values correctly
set leading to discrepancies between OS/2 and post, on the one
hand, and the fvar axes' default values.
2019-06-20 12:23:33 +01:00
Cosimo Lupo
6f1d25497a
Merge remote-tracking branch 'origin/master' into partial-instancer
2019-06-18 18:45:47 +01:00
Cosimo Lupo
8c90878fcf
Merge remote-tracking branch 'origin/master' into fix-singlepos-merge
2019-06-18 15:38:10 +01:00
Cosimo Lupo
eda353c4c1
Merge pull request #1642 from fonttools/CFF2-fixes
...
Fixes merge bug when VF source have no blends or no marking glyphs in any charstrings.
2019-06-17 16:57:16 +01:00
Cosimo Lupo
c2ec989fcc
Merge pull request #1638 from madig/varLib-merge-kerning-correctly
...
varLib: Fix merging of class kerning tables
2019-06-14 16:26:07 +01:00
Cosimo Lupo
65b0609be1
remove redundant table__g_l_y_f.getCoordinates method
...
just use getCoordinatesAndControls
2019-06-14 11:17:37 +01:00
Nikolaus Waxweiler
bcb0761202
Add test
2019-06-14 10:05:48 +01:00
ReadRoberts
cc3c928053
[varLib.cff] Fix important bug in merging FF2 PrivateDicts.
...
There was a bug that caused the PrivateDict of the first region to be used for all others.
2019-06-12 17:11:01 -07:00
ReadRoberts
dce80efc7c
[varLib.cff] Add test case for CFF2 variable font with no markiing glyphs.
2019-06-12 16:45:08 -07:00
ReadRoberts
73501eda46
[varLib.merger] Add test data for merging GPOS SinglePos subtables
2019-06-12 14:32:25 -07:00
Cosimo Lupo
9d895be4d5
instancer_test: add test for composite glyph without variations
...
We assert that the composite glyph's sidebearings and bbox are updated when its parent glyph
has changed.
The tests will fail, but a fix will follow shortly.
2019-06-06 13:33:57 +01:00
Cosimo Lupo
1722f99182
PartialInstancer-VF.ttx: add composite glyph and vhea table
...
the glyph 'minus' references 'hyphen' as component, but doesn't have any deltas in gvar.
vhea table is required when vmtx is present.
2019-06-06 13:30:21 +01:00
Cosimo Lupo
0abf6a8295
instancer_test: always dump test ttx files with '\n'
2019-05-31 20:08:50 +01:00
Cosimo Lupo
11b73034d7
instancer_test: read expected test file with unix newlines '\n'
...
or windows isn't happy..
2019-05-31 20:03:52 +01:00
Cosimo Lupo
499d97464d
instancer_test: use caplog fixture
2019-05-31 19:57:53 +01:00
Cosimo Lupo
b0ede1a3c6
instancer_test: add tests for normalizeAxisLimits function
...
coverage is now 97%, good enough
2019-05-30 14:10:26 +01:00