10432 Commits

Author SHA1 Message Date
Khaled Hosny
eb93b7688e [feaLib] Fix handled of "ignore" with unmarked glyphs
Fixes https://github.com/fonttools/fonttools/issues/2949

- If there are no marked glyphs in an "ignore" statement, issue a
  warning. The spec disallows this but makeotf allows it. It is most
likely a typo, so a warning is warranted.
- Mark the first glyph not all the glyphs, this matches makeotf.
- In asFea() always mark the input glyph.
- Udpate the tests.
2023-01-10 16:26:12 +02:00
Behdad Esfahbod
8c6e14674a Typo 2023-01-06 14:17:12 -07:00
Just van Rossum
3c4cc71504 [merge] Sort tags before processing; this makes merge behave more deterministically 2022-12-20 08:53:25 -07:00
Just van Rossum
0cc885d49a
Merge pull request #2930 from cmyr/the-most-incredible-patch
[feaLib] Remove rogue whitespace in GPOS_1_zero.ttx
2022-12-15 09:16:32 +01:00
Colin Rofls
1987dbaa05 [feaLib] Remove rogue whitespace in GPOS_1_zero.ttx
In what I presume was error, this test case included a space on the line
immediately following the <ttFont> element; this space is not present in
any other ttx files.

For reasons that are unclear to me, and likely not worth investigating,
the presence (or absence) of this space does not influence the passing
or failure of this test case; however it *does* cause a failure in my
feature compiler, which is reusing this test suite, and so I would like
to fix it here, and simplify my own life somewhat.
2022-12-14 19:01:11 -05:00
Cosimo Lupo
c192707bab
cu2qu_test: black fix
this was merged just before the black CI check was put in
2022-12-14 19:00:16 +00:00
Cosimo Lupo
c30a6355ff
Merge pull request #2925 from fonttools/blacken-code
Blacken code
2022-12-14 18:53:35 +00:00
Behdad Esfahbod
78a939848f [Cu2QuMultiPen] Add tests and fix a but
Fixes https://github.com/fonttools/fonttools/issues/2926
2022-12-13 11:28:33 -07:00
Cosimo Lupo
d74cb8afe6
Merge pull request #2927 from cmyr/sort-names
[feaLib] Sort name table entries in builder
2022-12-13 16:13:59 +00:00
Colin Rofls
4716f85731 [feaLib] Sort name table entries in builder
This patch ensures that feaLib always produces a name table with entries
sorted in the order proscribed by the spec: platform id, encoding id,
language id, name id.

This breaks some tests, and so I have manually updated the test data to
match the new outputs.
2022-12-13 10:39:33 -05:00
Nikolaus Waxweiler
afb5c95192 Add commit ignore file 2022-12-13 11:28:01 +00:00
Nikolaus Waxweiler
d584daa8fd Blacken code 2022-12-13 11:26:36 +00:00
Nikolaus Waxweiler
698d8fb387 Add black to lint job
And rename tox' "mypy" env to "lint".
2022-12-13 11:26:00 +00:00
Cosimo Lupo
164d6ead03
Merge pull request #2912 from fonttools/cu2quMultiPen
[cu2quPen] Add Cu2QuMultiPen
2022-12-13 11:00:58 +00:00
Behdad Esfahbod
4f3cb7e4bc [cu2quPen] Add Cu2QuMultiPen 2022-12-12 09:55:12 -07:00
Behdad Esfahbod
78e10d8b42 [ttGlyphPen] Add outputImpliedClosingLine argument
Fixes https://github.com/fonttools/fonttools/issues/2913
2022-12-12 09:53:59 -07:00
Behdad Esfahbod
ddbbef2257 [reverseContourPen] Add outputImpliedClosingLine
Fixes https://github.com/fonttools/fonttools/issues/2914
2022-12-12 09:49:06 -07:00
Behdad Esfahbod
6aca5be9b7 [gvar] Don't expand glyph for unused pointCount
Keep it in the API though.
2022-12-09 11:39:07 -07:00
Behdad Esfahbod
96de954d29 [gvar] Don't expand glyph during decompile if no variation data 2022-12-07 21:34:36 -07:00
Behdad Esfahbod
73923b3a1e Typo 2022-12-07 15:19:07 -07:00
Behdad Esfahbod
3a258573af [gvar] Avoid decompiling glyphs that don't have variations 2022-12-07 14:50:15 -07:00
Behdad Esfahbod
5a0dc4bc8d
Merge pull request #2894 from fonttools/punchcutter-patch-1
Skip scaling of vsindex in scaleUpem.py
2022-11-17 13:29:15 -07:00
Zachary Quinn Scheuren
0c43aeb511
Skip scaling of vsindex in scaleUpem.py 2022-11-17 21:40:32 +09:00
Nikolaus Waxweiler
8e9bf42cb4
Merge pull request #2891 from daltonmaag/dskub-add-getaxisbytag
[designspaceLib] Add DS.getAxisByTag and refactor getAxis
2022-11-15 13:38:50 +00:00
Nikolaus Waxweiler
45c89c0700 Add DS.getAxisByTag and refactor getAxis 2022-11-14 19:15:47 +00:00
Cosimo Lupo
cf28372e2d
cerry-pick packaging & ci changes from reverted PR #2879 2022-11-14 13:48:39 +00:00
Cosimo Lupo
2f0b065b30
requirements.txt: bump skia-pathops==0.7.3 2022-11-14 13:43:29 +00:00
Cosimo Lupo
de015cd0a1
README.rst: mention NEP29 as python deprecation policy we like to follow 2022-11-14 13:41:56 +00:00
Cosimo Lupo
f21e6768a7
Revert "Merge pull request #2879 from fonttools/drop-py37"
This reverts commit 66a3ec90713375aec5a95d1698ef1521fd432918, reversing
changes made to 82b90236f839fc9fc8e694ddcdee0ad1604d30ec.

A major user of fontTools, RoboFont, will need a bit more time to wean itself from Python 3.7.
We can delay this change by a few more months to give them time to upgrade.
2022-11-14 13:39:18 +00:00
Cosimo Lupo
a1fc9b1efc
Merge pull request #2889 from fonttools/unicodedata-Zmth
[unicodedata] map Zmth<->math in ot_tag_{to,from}_script
2022-11-11 20:37:36 +00:00
Cosimo Lupo
3585641248
Merge pull request #2884 from fonttools/woff2-overlap-simple
[woff2] Support encoding/decoding OVERLAP_SIMPLE glyf flags
2022-11-11 12:23:38 +00:00
Cosimo Lupo
8697f91cdc
[unicodedata] map Zmth<->math in ot_tag_{to,from}_script
Fixes https://github.com/fonttools/fonttools/issues/1737
2022-11-11 12:20:37 +00:00
Cosimo Lupo
ded595f03c
Merge pull request #2886 from fonttools/l4-default-wght-wdth-slnt
[instancer] update OS/2 class and post.italicAngle when default moved (L4)
2022-11-10 10:29:07 +00:00
Cosimo Lupo
dbc3b48879
[instancer] udpdate OS/2 class and post.italicAngle when default moved (L4)
Previously we were only updating these when pinning wght/wdth/slnt axes.
Now we do whenever any of these axes defaults are changed, whether or not the axes are pinned or kept

Fixes https://github.com/fonttools/fonttools/issues/2885
2022-11-09 16:33:23 +00:00
Cosimo Lupo
b4e664da21
[woff2] Add support for encoding/decoding OVERLAP_SIMPLE glyf flags in WOFF2
Fixes #2576

This updates our woff2 encoder/decoder to support retaining the OVERLAP_SIMPLE glyf flag following the updated WOFF 2.0 specification and official google/woff2 implementation.

https://www.w3.org/TR/WOFF2/#glyf_table_format
2022-11-09 13:56:46 +00:00
Cosimo Lupo
12bf60aee0
woff2_test: [minor] remove unused local variable 2022-11-09 11:08:37 +00:00
Cosimo Lupo
04b43ed833
woff2_test: fix test_hmtx_compressed test
it had been failing after we renamed a name string containing 'master' => 'main; in https://github.com/fonttools/fonttools/pull/2883
2022-11-09 11:06:04 +00:00
Cosimo Lupo
2bfb7b9279
Merge pull request #2882 from fonttools/pyup-scheduled-update-2022-11-07
Scheduled weekly dependency update for week 45
2022-11-09 09:52:56 +00:00
Cosimo Lupo
899b71f831
Merge pull request #2883 from pnemade/main
Update references of branch name from master to main
2022-11-09 09:52:38 +00:00
Parag Nemade
0a176acabc
Update branch name from master to main 2022-11-09 10:11:02 +05:30
pyup-bot
d80d1360bc Update uharfbuzz from 0.31.0 to 0.32.0 2022-11-07 16:10:40 +00:00
pyup-bot
a613b0d69d Update pyobjc from 8.5.1 to 9.0 2022-11-07 16:10:40 +00:00
pyup-bot
638acdcc36 Update ufolib2 from 0.13.1 to 0.14.0 2022-11-07 16:10:29 +00:00
pyup-bot
23c6446829 Update reportlab from 3.6.11 to 3.6.12 2022-11-07 16:10:29 +00:00
pyup-bot
04973236e7 Update sphinx_rtd_theme from 1.0.0 to 1.1.1 2022-11-07 16:10:28 +00:00
Cosimo Lupo
4d2a2241a0
Merge pull request #2874 from fonttools/fix-designspace-links
[designspaceLib] Small doc fixes
2022-11-06 14:29:07 +00:00
Cosimo Lupo
66a3ec9071
Merge pull request #2879 from fonttools/drop-py37
Drop Python3.7, require 3.8+ and run tests on 3.11 too
2022-11-04 18:43:45 +00:00
Behdad Esfahbod
82b90236f8
Merge pull request #2880 from fonttools/instancer-featureVars
Instancer feature vars
2022-11-04 11:56:18 -06:00
Behdad Esfahbod
672c4bacdd [instancer.featureVars] Address review comments 2022-11-04 11:55:48 -06:00
Behdad Esfahbod
ea2ae7df86 [instancer.featureVars] Add one more test 2022-11-03 17:15:40 -06:00