10471 Commits

Author SHA1 Message Date
Behdad Esfahbod
c8d32f2bb1 [avar2] Use DeltaSetIndexMap instead of VarIdxMap 2023-03-08 10:56:07 -07:00
Behdad Esfahbod
8dfad13288 [avar2] Implement toXML 2023-03-08 09:48:32 -07:00
Behdad Esfahbod
2b5686205e [avar] Support previous API in compile/decompile
Using the otData mechanism with handcoded shim.
2023-03-08 09:29:58 -07:00
Behdad Esfahbod
fd822a2602 Merge branch 'main' into avar2 2023-03-07 11:21:20 -07:00
Behdad Esfahbod
6ba1302ce4 black 2023-03-07 11:19:22 -07:00
Behdad Esfahbod
501353f3df [VarComposites] Flag rename 2023-03-06 13:10:09 -07:00
Cosimo Lupo
c87bcde990
NEWS.rst: fix typo [skip ci] 2023-03-06 16:39:04 +00:00
Cosimo Lupo
89e678b121
Bump version: 4.39.0 → 4.39.1.dev0 2023-03-06 16:31:59 +00:00
Cosimo Lupo
fbc82d9f0a
Release 4.39.0 2023-03-06 16:31:58 +00:00
Cosimo Lupo
85e7ad39ee
Update changelog 2023-03-06 16:26:39 +00:00
Cosimo Lupo
8ea7e6c7e4
Update changelog [skip ci] 2023-03-06 13:33:18 +00:00
Cosimo Lupo
c24558c57b
Merge pull request #3018 from fonttools/mtilib-debg
[mtiLib] Add debug info
2023-03-06 12:23:24 +00:00
Cosimo Lupo
e0177a9920
black 2023-03-06 12:12:18 +00:00
Cosimo Lupo
8d546623d1
update mtiLib expected test files 2023-03-06 12:09:01 +00:00
Cosimo Lupo
e26da961ec
Merge pull request #3020 from fonttools/ttx-stdin
[ttx] support reading font/xml file from standard input as '-'
2023-03-03 17:28:58 +00:00
Cosimo Lupo
6c6373a0a4
error if no -o option provided when reading input from stdin
since we can't make up an output filename in that case
2023-03-03 16:51:33 +00:00
Cosimo Lupo
1d6326ea61
ttx_test: test dumping and compiling from stdin to stdout 2023-03-03 16:30:23 +00:00
Cosimo Lupo
15b450e4a6
[ttx] support reading font/xml file from standard input as '-'
Fixes https://github.com/fonttools/fonttools/issues/3019
2023-03-03 14:13:06 +00:00
Simon Cozens
b22887c6b6 Add debug info to MTI feature builds 2023-03-02 20:42:37 +00:00
Cosimo Lupo
48f68877a8
Merge pull request #3017 from fonttools/fix-cython-attribute-error
prevent cython.compiled raise AttributeError if cython not properly installed
2023-03-02 19:08:50 +00:00
Cosimo Lupo
0df4997661
prevent cython.compiled raise AttributeError if cython not properly installed
It's possible sometimes that 'import cython' does not fail but then 'cython.compiled' raises AttributeError.
It actually happened in our internal production environment...

Similar issue to https://github.com/pydantic/pydantic/pull/573 and https://github.com/ipython/ipython/issues/13294
2023-03-02 17:43:38 +00:00
Cosimo Lupo
e7c6d2aa8b
Merge pull request #3015 from fonttools/guard-against-zerodivision
`OS/2.xAvgCharWidth`: Guard against a ZeroDivisionError
2023-03-02 11:01:13 +00:00
Nikolaus Waxweiler
54d6aaffb6 Guard against a ZeroDivisonError
The code was copied from ufo2ft.
2023-03-01 19:52:43 +00:00
Cosimo Lupo
13a983daaf
Merge pull request #3012 from daltonmaag/fix-subset-avg-char-width
[subset] Compute xAvgCharWidth even when --no-prune-unicode-ranges is given
2023-03-01 16:51:19 +00:00
Jany Belluz
760c7376fe [subset] Compute xAvgCharWidth even when --no-prune-unicode-ranges is given 2023-03-01 16:28:51 +00:00
Cosimo Lupo
d4c5eac780
Merge pull request #3007 from kontur/name-sort-encode-warning-only
Make NameRecord comparison not fail on encoding errors #3006
2023-02-27 16:31:19 +00:00
Johannes Neumeier
29f980135a Clean up and NotImplemented as proper return value 2023-02-27 09:31:13 +02:00
خالد حسني (Khaled Hosny)
4630c65471
Merge pull request #3008 from fonttools/fb-fea-debug
[fontBuilder] Add debug to addOpenTypeFeatures
2023-02-26 14:13:59 +02:00
Khaled Hosny
3a6b17d9a2 [fontBuilder] Add debug to addOpenTypeFeatures
Passed to addOpenTypeFeaturesFromString().
2023-02-24 21:46:10 +02:00
Behdad Esfahbod
b7b4a3b090 [varLib.featureVars] Fix bug in overlayBox
See added test. Previously we were cutting remainder box
even if the intersection had dimensions not present in the
remainder box. Ouch!

Fixes https://github.com/fonttools/fonttools/issues/3003
2023-02-24 07:51:00 -07:00
Johannes Neumeier
f52b3da721 Make NameRecord comparison not fail on encoding errors #3006 2023-02-24 15:58:53 +02:00
Behdad Esfahbod
4ffb9c7334
Merge pull request #2988 from fonttools/cubic-glyf
[glyf] Support cubic curves
2023-02-22 11:45:15 -07:00
Behdad Esfahbod
e58ffdb982 [qu2cu_cli_test] Tests 2023-02-22 11:15:42 -07:00
Behdad Esfahbod
9808982ea1 [cu2qu.ufo_test] Add rudimentary all_quadratic=False tests 2023-02-22 10:17:23 -07:00
Behdad Esfahbod
52a8e3b1a4 [cu2qu.ufo] Simplify logic 2023-02-22 10:14:53 -07:00
Behdad Esfahbod
690ffca963 [cu2qu.cli] Add --mixed
Untested.
2023-02-22 10:03:45 -07:00
Behdad Esfahbod
2a93984df4 [cu2qu.ufo] Black 2023-02-22 09:55:20 -07:00
Behdad Esfahbod
1f2a8b7d27 [cu2qu.ufo] Try to be smarter about "modified" 2023-02-22 09:51:59 -07:00
Behdad Esfahbod
f53901d3f4 [qu2cu.cli] Add --all-cubic 2023-02-22 09:46:08 -07:00
Behdad Esfahbod
c8b74fd6dc [cu2qu.ufo] Add all_quadratic=True 2023-02-22 09:36:09 -07:00
Behdad Esfahbod
45b6269cbb [qu2cuPen_test] Fix test 2023-02-22 09:32:59 -07:00
Behdad Esfahbod
9073d93743 [qu2cu.cli] Always upgrade glyf table version 2023-02-22 09:28:35 -07:00
Behdad Esfahbod
e72d195583 [qu2cu] Adjust stats to match cu2qu 2023-02-22 09:18:49 -07:00
Behdad Esfahbod
5125e9e095 [qu2cu.cli] Comment 2023-02-22 09:10:03 -07:00
Behdad Esfahbod
8f89a435ac [ttGlyphPen] Rename preserveTopology to dropImpliedOnCurves 2023-02-22 09:08:39 -07:00
Behdad Esfahbod
b916c4cdae [qu2cu.cli] Upgrade glyf table format to 1 if any cubics used 2023-02-22 09:04:12 -07:00
Behdad Esfahbod
84ba7f9618 [qu2cu.cli] Actually dump stats in --verbose 2023-02-22 09:02:15 -07:00
Behdad Esfahbod
dabd07e3cc [ttGlyphPen_test] Add one more test 2023-02-22 08:53:35 -07:00
Behdad Esfahbod
a32118a19f [ttGlyphPen_test] Add test with two contours
To exercise the remaining lines of ttGlyphPen.
2023-02-22 08:44:15 -07:00
Behdad Esfahbod
303eeeeec5 [ttGlyphPen_test] Parametrize test 2023-02-22 08:41:14 -07:00