11235 Commits

Author SHA1 Message Date
خالد حسني (Khaled Hosny)
0782ca0a20
Merge pull request #3313 from fonttools/issue-3311
Fix SyntaxWarning in Python 3.12
2023-10-25 15:45:18 +03:00
Khaled Hosny
48da520472 Fix SyntaxWarning in Python 3.12
Fixes https://github.com/fonttools/fonttools/issues/3311
2023-10-25 14:34:27 +03:00
Cosimo Lupo
4b73a17e0c
[cff.specializer] Fix SyntaxWarning: invalid escape sequence
Fixes #3322
2023-10-25 10:33:31 +01:00
Behdad Esfahbod
5cd2b1cc50 [varStore] Document sorting 2023-10-24 12:47:58 -06:00
Behdad Esfahbod
13f8fff548
Merge pull request #3310 from fonttools/varStore-overflow
[varStore] Handle >65535 items per encoding
2023-10-24 11:59:39 -06:00
Behdad Esfahbod
0a6b95af1e [varLib.varStore] Revert micro-optimizations
Based on review.
2023-10-24 11:50:47 -06:00
Behdad Esfahbod
ec9986d3b8 [subset] black
Oops.
2023-10-23 21:57:11 -06:00
Behdad Esfahbod
1d0f3c27fc [subset] Handle a null-offset error in MarkLigPos
As reported by @rsheeter.
2023-10-23 21:39:28 -06:00
Behdad Esfahbod
bf402b9fde [varStore] Micro-optimize addItem() 2023-10-23 15:28:14 -06:00
Behdad Esfahbod
9e36b9465d [varStore] Micro-optimize storeDeltas()
Also speed up the test slightly by skipping rounding.
2023-10-23 15:18:11 -06:00
Behdad Esfahbod
c7ce5b0f3c [varStore] Handle >65535 items per encoding
By creating a new major for each 65535.
2023-10-23 14:43:10 -06:00
pyup-bot
f77844215f Update glyphslib from 6.4.0 to 6.4.1 2023-10-23 16:55:10 +01:00
pyup-bot
1e56041a20 Update scipy from 1.10.0 to 1.11.3 2023-10-23 16:55:10 +01:00
pyup-bot
480e69399b Update unicodedata2 from 15.0.0 to 15.1.0 2023-10-23 16:55:09 +01:00
pyup-bot
e9f7291702 Update black from 22.12.0 to 23.10.0 2023-10-23 16:55:09 +01:00
pyup-bot
b00533db1b Update freetype-py from 2.3.0 to 2.4.0 2023-10-23 16:55:08 +01:00
pyup-bot
6f74f07f42 Update reportlab from 3.6.13 to 4.0.6 2023-10-23 16:55:08 +01:00
pyup-bot
22cf47de51 Update sphinx_rtd_theme from 1.1.1 to 1.3.0 2023-10-23 16:55:07 +01:00
pyup-bot
a240ac5bb3 Update sphinx from 5.3.0 to 7.2.6 2023-10-23 16:55:07 +01:00
Behdad Esfahbod
6e1f55b0c8 [varLib.interpolatable] black
Oops.
2023-10-20 16:43:24 -06:00
Behdad Esfahbod
77dea10e5f [varLib.interpolatable] Speed up _rot_list() 2023-10-20 16:03:40 -06:00
Behdad Esfahbod
cb2f4c1a61 [Snippets/statShape] Pass glyphset to StatisticPen
Such that components can be resolved.
2023-10-19 12:28:09 -06:00
Behdad Esfahbod
c7e3348904 [statisticsPen] Micro-optimize 2023-10-19 12:20:51 -06:00
Behdad Esfahbod
5686bcb342 [roundTools] Add missing export 2023-10-19 12:01:40 -06:00
Cosimo Lupo
4e26c34559
Merge pull request #3305 from fonttools/subset-dftl-cjk-features
[subset] keep East Asian spacing vhal, halt, chws, vchw by default
2023-10-19 17:43:11 +01:00
Behdad Esfahbod
9ae5918806 [varLib.interpolatable] Help improvement 2023-10-19 09:49:30 -06:00
Cosimo Lupo
7ca97d6d7f [subset_test] added NotoSansCJKjp subset to test east-asian-width feature are kept by defailt 2023-10-19 11:20:48 +01:00
Cosimo Lupo
5d6e1c750c
[subset] keep East Asian spacing vhal, halt, chws, vchw by default
https://github.com/harfbuzz/harfbuzz/issues/4451
2023-10-19 10:46:47 +01:00
Cosimo Lupo
6d531fed44
Merge pull request #3304 from fonttools/solver-fix
[instancer.solver] Fix case where axisDef < lower and upper < axisMax
2023-10-19 10:36:56 +01:00
Behdad Esfahbod
31c531dd04 [subset] Fix extension of subset font (again)
Fixes https://github.com/fonttools/fonttools/issues/1298#issuecomment-1768849326
2023-10-18 10:11:51 -06:00
Behdad Esfahbod
1d0a180b9d [varLib.interpolatable] One other micro-optimization
Residual from 4714c37028f462b29159ef7f7186e51ef68c20e1
2023-10-16 17:53:15 -06:00
Behdad Esfahbod
872ae47536 [varLib.interpolatable] Fix subclass base 2023-10-16 17:00:43 -06:00
Behdad Esfahbod
c306836488 [varLib.interpolatable] Another micro-optimization
Don't know why the previous code was written that way!
2023-10-16 14:55:10 -06:00
Behdad Esfahbod
b3a45f9f79 [varLib.interpolatable] Micro-optimize by reusing a list 2023-10-16 14:37:16 -06:00
Behdad Esfahbod
f1e56cd757 [instancer.solver] Fix case where axisDef < lower and upper < axisMax
Fixes https://github.com/fonttools/fonttools/issues/3291
2023-10-16 13:46:39 -06:00
Behdad Esfahbod
807864872e
Merge pull request #3301 from fonttools/faster-glyf
Faster `glyf` compile
2023-10-16 12:25:35 -06:00
Behdad Esfahbod
27932c525b [glyf] Add tests for getGlyphID() 2023-10-16 13:14:01 -04:00
Behdad Esfahbod
db393f6560 [glyf] Review feedback 2023-10-16 12:30:36 -04:00
Behdad Esfahbod
fadbb7d8bc
Merge pull request #3300 from fonttools/faster-interpolatable
[varLib.interpolatable] Speed up working on variable fonts
2023-10-16 07:47:39 -06:00
Behdad Esfahbod
2a855f8bd6 Revert "[varLib.interpolatable] Cythonize"
This reverts commit 0914c6c0eefb1317aba95779fb469e138b19f365.
2023-10-14 18:58:53 -04:00
Behdad Esfahbod
0914c6c0ee [varLib.interpolatable] Cythonize
Doesn't save much; only 5% in RobotoFlex.  Probably going to revert.
2023-10-14 18:58:49 -04:00
Behdad Esfahbod
b01fbf2785 [varLib.interpolatable] Skip comparing contour orders if only 0 or 1 2023-10-14 17:43:45 -04:00
Behdad Esfahbod
4714c37028 [varLib.interpolatable] Speed up m0idx finding
Don't use list.index() which would compare vectors...
2023-10-14 17:25:52 -04:00
Behdad Esfahbod
d29856b2e4 [varLib.interpolatable] Micro-optimize a check 2023-10-14 17:09:27 -04:00
Behdad Esfahbod
9f42783d6f [varLib.interpolatable] Reduce imports in bipartite-matching
Choose the right implementation upfront
2023-10-14 17:01:08 -04:00
Behdad Esfahbod
67be79d77a [glyf] Use a boundsCache within _setCoordinates
Speeds up "pixel" fonts that reuse the same component a lot.
Speeds up instantiating Handjet by 47%.
2023-10-14 13:02:21 -04:00
Behdad Esfahbod
e1117da0af [glyf] Speed up getGlyphID()
Speeds up compiling of fonts with lots of composite glyphs.
For example, 40% speedup in decompile/compiling Handjet font:

./fonttools ttLib Handjet\[ELGR,ELSH,wght\].ttf -t'*' -o out.ttf
2023-10-14 12:57:32 -04:00
Behdad Esfahbod
cc09d5f381 [TupleVariation] Slightly speed up compileCoords
Small but measurable speedup.
2023-10-14 12:57:32 -04:00
Behdad Esfahbod
9eeee75b03 [glyf] Speed up recalcBounds() 2023-10-13 13:53:44 -04:00
Behdad Esfahbod
fe37e91258 [glyf] Speed up recalcBounds of composite glyphs
Brings down decompile/compiling of Handjet font from 11s to 0.3s.

Test with:
time ./fonttools ttLib Handjet.ttf -o out.ttf -tglyf

Part of fixing https://github.com/fonttools/fontbakery/discussions/4301
2023-10-13 13:52:19 -04:00