Nikolaus Waxweiler
9f984d93f7
Fix up tests
2022-04-29 18:13:03 +01:00
Nikolaus Waxweiler
177e0a71b8
Clean up one of the DSv5 documents somewhat
2022-04-29 16:57:06 +01:00
Nikolaus Waxweiler
ada9828121
Add some proper exceptions
2022-04-29 16:56:50 +01:00
Cosimo Lupo
41bd3a143d
Merge pull request #2603 from fonttools/subset-singlepos2-all-none
...
[subset] Fix subsetting SinglePosFormat2 with ValueFormat=0
2022-04-27 16:15:21 +01:00
Cosimo Lupo
0e43b0e2c3
[subset] Fix subsetting SinglePosFormat2 when ValueFormat=0
...
If a font has SinglePosFormat2 subtable with ValueFormat=0, then it contains a Value list with all None values.
Even though we don't build such inefficient tables, they do exist in the wild, as #2602 demostrates so we should handle those nicely, by downgrading them to Format1 with a single None value
2022-04-27 16:03:23 +01:00
Cosimo Lupo
8309aaf8d8
[subset_test] add failing test to repro SinglePosFormat2 with ValueFormat=0
...
reproduces #2602
2022-04-27 15:58:29 +01:00
Nikolaus Waxweiler
0f375d251f
Merge pull request #2601 from fonttools/update-ci-versions
...
Update CI testing
2022-04-26 11:29:23 +01:00
Nikolaus Waxweiler
2ff36bcef8
Test Cython on Python 3.10
2022-04-26 11:19:28 +01:00
Nikolaus Waxweiler
82319c31fa
Test on 3.7 and 3.10 only
2022-04-26 11:16:58 +01:00
Nikolaus Waxweiler
40015efe60
Update GitHub Actions
2022-04-26 11:16:49 +01:00
Cosimo Lupo
ba8880e9f1
Bump version: 4.33.3 → 4.33.4.dev0
2022-04-26 10:51:16 +01:00
Cosimo Lupo
b9621ff427
Release 4.33.3
2022-04-26 10:51:15 +01:00
Cosimo Lupo
619e55d72a
Add test for designspaceLib.types.Range dataclass
...
test for https://github.com/fonttools/fonttools/pull/2597
2022-04-26 10:50:36 +01:00
Cosimo Lupo
62eaac651e
Update NEWS.rst
2022-04-26 10:45:08 +01:00
Cosimo Lupo
2e0dd62836
Merge pull request #2600 from fonttools/fix-deepcopyExceptFonts
...
[dsLib] Fix typo to actually transfer font references during deepcopy
2022-04-26 10:43:07 +01:00
Nikolaus Waxweiler
d8bf4c3123
Fix typo to actually transfer font references
2022-04-26 10:15:37 +01:00
Cosimo Lupo
cefb41e6c2
Merge pull request #2597 from m10d/fix_dataclass__post_init__method
...
correct naming of dataclasses '__post_init__' method
2022-04-24 06:58:44 +01:00
mike maxfield
47bbe6f7ca
correct naming of dataclasses '__post_init__' method
2022-04-23 16:18:41 -06:00
Cosimo Lupo
37767203b0
Bump version: 4.33.2 → 4.33.3.dev0
2022-04-22 19:26:47 +01:00
Cosimo Lupo
e569154033
Release 4.33.2
2022-04-22 19:26:47 +01:00
Cosimo Lupo
224490d0b6
Update NEWS.rst
2022-04-22 19:26:06 +01:00
Cosimo Lupo
071915cda5
Merge pull request #2595 from fonttools/hb-repack-logging
...
[otBase] demote repacker ERROR to WARNING, only 1 per loop; don't exit at first failure
2022-04-22 19:20:03 +01:00
Cosimo Lupo
350f893e17
[otBase] demote repacker ERROR to WARNING, only 1 per loop; don't exit at firstfail
...
Fixes https://github.com/fonttools/fonttools/issues/2594
2022-04-22 19:05:54 +01:00
Cosimo Lupo
f68ce14d7a
[otBase] log the name of uharfbuzz exception
2022-04-22 15:31:34 +01:00
Cosimo Lupo
4217384e81
subset_test: ignore_errors in rmtree when tearing down tempdir
...
should fix random test failures like
https://github.com/fonttools/fonttools/runs/6127120342?check_suite_focus=true
2022-04-22 11:46:07 +01:00
Cosimo Lupo
fe81aa729a
Bump version: 4.33.1 → 4.33.2.dev0
2022-04-22 11:38:46 +01:00
Cosimo Lupo
04b835d04f
Release 4.33.1
2022-04-22 11:38:46 +01:00
Cosimo Lupo
4e6f90d405
Update NEWS.rst
2022-04-22 11:38:43 +01:00
Cosimo Lupo
20de0784c2
send DeprecationWarning if FONTTOOLS_GPOS_COMPACT_MODE env var is set
...
and factor out shared code to read the env var
2022-04-22 11:32:43 +01:00
Cosimo Lupo
f8611bf848
[optimize.gpos] use the same default for config and env var
2022-04-22 11:18:00 +01:00
Cosimo Lupo
badeb75d90
Merge pull request #2593 from fonttools/fix-ufo2ft-regression
...
Fix ufo2ft regression by bringing back the env var for now
2022-04-22 11:13:23 +01:00
Jany Belluz
0bd2834d1e
Fix ufo2ft regression by bringing back the env var for now
2022-04-22 10:14:16 +01:00
Cosimo Lupo
36e8eb2ada
Bump version: 4.33.0 → 4.33.1.dev0
2022-04-21 19:29:35 +01:00
Cosimo Lupo
f81ec49a66
Release 4.33.0
2022-04-21 19:29:35 +01:00
Cosimo Lupo
8f565e31e1
NEWS.rst: removed nested bullet list, twine check didn't like them
2022-04-21 19:28:52 +01:00
Cosimo Lupo
1ad453cc58
NEWS.rst: try fix nested lists
2022-04-21 19:24:57 +01:00
Cosimo Lupo
285664edec
Update NEWS.rst
2022-04-21 19:23:18 +01:00
Cosimo Lupo
83df0abd3e
Merge pull request #2591 from fonttools/merge-recalc-OS2-xAvgCharWidth
...
[OS/2 / merge] unify recalcXAvgCharWidth method and use it for merger, subsetter, etc.
2022-04-21 19:11:11 +01:00
Cosimo Lupo
bb1dbf4198
drop the 'X' from recalcAvgCharWidth method name
2022-04-21 19:02:39 +01:00
Cosimo Lupo
ee2d83d4b3
[merge] use recalcXAvgCharWidth method on merged font
...
Fixes #2538 , supersedes #2590
2022-04-21 18:56:05 +01:00
Cosimo Lupo
12942feb6b
[subset] use recalcXAvgCharWidth method
2022-04-21 18:46:11 +01:00
Cosimo Lupo
5455f5388d
[fontBuilder] use recalcXAvgCharWidth method
...
slightly different rounding method but it doesn't really matter
2022-04-21 18:45:38 +01:00
Cosimo Lupo
3731056401
[OS/2] define recalcXAvgCharWidth method
...
copied from current subsetter code (matches ufo2ft's outlineCompiler)
2022-04-21 18:44:44 +01:00
Cosimo Lupo
380f8d573d
Merge pull request #2589 from fonttools/config-hb-repack
...
define USE_HARFBUZZ_REPACKER config option
2022-04-21 18:37:16 +01:00
Cosimo Lupo
af6804bed5
make USE_HARFBUZZ_REPACKER a 3-state option, defaults to auto
...
if explicitly enabled, it will raise ImportError if uharfbuzz is not found, and will propagate the uharfbuzz error instead of silently falling back to the pure-python serializer
2022-04-21 18:11:20 +01:00
Cosimo Lupo
7588062413
[configTools] remove cached set and simplify checking option id
2022-04-21 17:18:32 +01:00
Cosimo Lupo
e9bec87d1a
[configTools] Make Option eq=False so cmp/hash by id
2022-04-21 16:21:53 +01:00
Cosimo Lupo
ade9ce1173
[testTools] FakeFont needs a cfg attribute too
2022-04-21 15:56:11 +01:00
Cosimo Lupo
ec79257960
[optimize.gpos] declare/re-export option from module
2022-04-21 15:46:12 +01:00
Cosimo Lupo
4160f05242
[subset_test] test disabling hb repacker, and capture logging
2022-04-21 15:46:12 +01:00