Cosimo Lupo
9f38d4de12
svgPathPen: forgot to replace remaining str() with self._ntos()
...
H and V commands were not passed through the custom number-formatting callable.
2021-12-19 10:35:46 +00:00
Behdad Esfahbod
a80890b438
Merge pull request #2473 from fonttools/merge-noto
...
Merger improvements
2021-12-16 16:31:34 -07:00
Behdad Esfahbod
7c542684be
[merge] Remove most 'from .. import *'
2021-12-16 13:56:11 -07:00
Behdad Esfahbod
deaf30d17c
[merge] Use merger-private namespace in TTFont.__dict__
2021-12-16 13:32:11 -07:00
Behdad Esfahbod
e6719f4dad
[merge] Clean up glyphOrder and cmap computation
2021-12-16 13:29:43 -07:00
Behdad Esfahbod
915c077bf3
[merge.util] Set CFF charset when renaming
2021-12-16 13:20:07 -07:00
Behdad Esfahbod
30c5a8b724
[merge.layout] Optimize log message interpolation
2021-12-16 12:15:54 -07:00
Behdad Esfahbod
0f101663aa
[merge] Report font name instead of number
...
Yay!
2021-12-16 10:48:10 -07:00
Behdad Esfahbod
23f00306b1
[merge] Save fontfile and fontname on opened fonts for debug purposes
2021-12-16 10:43:12 -07:00
Behdad Esfahbod
c0e61b729a
[merge] Move cmap computation closer to glyph-order computation
2021-12-16 10:31:56 -07:00
Behdad Esfahbod
8dc3d5b322
[merge] Move layout pre/post-Merge code to merge.layout
2021-12-16 10:28:03 -07:00
Behdad Esfahbod
01fcec35c6
[merge] Move renameCFFCharStrings to merge.util
2021-12-16 10:25:32 -07:00
Behdad Esfahbod
8ee5f26731
[merge] Move more code to merge.cmap
2021-12-16 10:23:01 -07:00
Behdad Esfahbod
3bb1c5b58f
[merge] Move cmap code to merge.cmap
2021-12-16 10:13:33 -07:00
Behdad Esfahbod
4955d83c4d
[merge] Whitespace
2021-12-16 09:03:10 -07:00
Behdad Esfahbod
fcdde525ca
[merge] Move options code to merge.options
2021-12-16 08:59:04 -07:00
Behdad Esfahbod
a551826380
[merge] Move helper dicts to merge.util
2021-12-16 08:57:22 -07:00
Behdad Esfahbod
99f9e07280
[merge] Add merge.unicode
2021-12-16 08:53:13 -07:00
Behdad Esfahbod
40f9e2cdc4
[merge] Move layout code into merge.layout
2021-12-16 08:47:44 -07:00
Behdad Esfahbod
eaaeb7ab28
[merge] Move most tables into merge.base module
2021-12-16 08:41:14 -07:00
Behdad Esfahbod
bb1e1bdf98
[merge] Split some code into merge.util
2021-12-16 08:37:36 -07:00
Behdad Esfahbod
3eff0a47e4
[merge] Move code into module directory
2021-12-16 08:26:56 -07:00
Behdad Esfahbod
d2983cce51
[merge] Add --drop-tables
2021-12-16 08:18:46 -07:00
Behdad Esfahbod
584c748951
[merge] Downgrade duplicates-resolution missing-GSUB from assert to warn
2021-12-16 08:18:46 -07:00
Behdad Esfahbod
31dcd03bff
[merge] Ignore shape of Default_Ignorable glyphs
...
Data should be moved to unicodedata module eventually.
2021-12-16 08:13:28 -07:00
Behdad Esfahbod
2e4b8cea59
[merge] Show tolerance re glyph comparison for empty glyphs' width
2021-12-16 08:09:28 -07:00
Behdad Esfahbod
b63f6413ca
[merge] Remove _glyphsAreSame() check
...
This was removing semantically-significant difference amongst glyphs
such as two identical glyphs one in Noto Sans Tamil one in Noto Sans
Grantha as in the following issue:
Part of fixing https://github.com/fonttools/fonttools/issues/2475
2021-12-16 08:03:38 -07:00
Behdad Esfahbod
672b4032ad
[merger] Fix duplicate-glyph-resolution GSUB-lookup generation code
...
Part of fixing https://github.com/fonttools/fonttools/issues/2475
Old code was mistakenly only adding the synthetic-generated feature
to the first language-system. In the case of merging Noto Grantha
and Noto Tamil fonts, Noto Tamil had two script systems: 'taml' and
'tml2', and we were adding the synthetic 'locl' feature only to the
DefaultLangSys of the 'taml' script, not the 'tml2' script. That was
the main bug.
A second issue was that the lookup was being added twice to the same
(synthetic) feature. Check before adding lookup, to avoid that.
2021-12-16 08:03:38 -07:00
Cosimo Lupo
22266631d9
plistlib: fix PlistEncodable typing annotations to appease mypy
...
https://github.com/fonttools/fonttools/runs/4545664923?check_suite_focus=true#step:5:12
2021-12-16 10:24:49 +00:00
Behdad Esfahbod
1b8f16b11f
[merge] Remove obsolete comment
2021-12-15 20:54:45 -07:00
Behdad Esfahbod
4de9ffcdd5
[merge] Move CFF.desubroutinize to proper place
2021-12-15 20:53:29 -07:00
Cosimo Lupo
1355769766
Bump version: 4.28.4 → 4.28.5.dev0
2021-12-15 17:23:21 +00:00
Cosimo Lupo
071ea963d4
Release 4.28.4
2021-12-15 17:23:20 +00:00
Cosimo Lupo
051af1feb1
Update changelog [skip ci]
2021-12-15 17:23:03 +00:00
Cosimo Lupo
cc5f2e7716
README.rst: add aschmitz to aknowledgments
...
I didn't know their full name so I used their github handle, feel free to amend
https://github.com/fonttools/fonttools/pull/2467
2021-12-15 17:14:10 +00:00
Cosimo Lupo
5af9c74cad
Merge pull request #2471 from fonttools/svg-pen-round
...
svgPathPen: add option to customize number formatting (e.g. rounding)
2021-12-15 16:39:48 +00:00
Cosimo Lupo
fe2ba42811
Merge pull request #2467 from aschmitz/subset-hotspots
...
subset: speed up subsetting of large fonts
2021-12-15 16:34:02 +00:00
Cosimo Lupo
d4b7ff66c9
merge_test: fix expected .ttx file with correct MarkFilteringSet values
2021-12-15 09:21:16 -07:00
Behdad Esfahbod
b8615f9de6
[merge] Merge GDEF marksets in Lookups properly
2021-12-15 09:21:16 -07:00
Simon Cozens
ed07df39da
Die noisily ( #2472 )
2021-12-14 19:26:50 +00:00
Cosimo Lupo
fce1fa2da8
svgPathPen: add option to customize number formatting (e.g. rounding)
...
Using a RoundingPen as a filter doesn't work for TrueType quadratic splines (qCurveTo), because the rounding would occur too early, before these get split into atomic quadratic Bezier segments (by the superclass BasePen.qCurveTo method), thus leaving unwanted floating-point coordinates in the SVG output.
So here we add a 'ntos' parameter (by default simpli calls str()) that takes a Callable[[float], str] and can be used to customize the formatting of the numbers in SVG path coordinates.
2021-12-14 13:19:50 +00:00
Cosimo Lupo
d190a7c206
otTables: no need get LayerRecordCount by name, we already have it in scope
...
Fixes #2468
2021-12-13 11:17:08 +00:00
Khaled Hosny
6481cff159
Merge pull request #2464 from simoncozens/demystify-deduplication
...
Demystify deduplication
2021-12-12 22:13:31 +02:00
aschmitz
d9f9466d63
subset: speed up subsetting of large fonts
...
Two small changes that significantly speed up subsetting of large fonts
such as Noto Sans CJK:
1. When emptying a charstring, simply empty its program rather than
attempting to decompile it first. (Only relevant when retaining GIDs.)
2. When reindexing charstrings, swap an accidentally-quadratic
implementation for one that is linear in the number of retained glyphs.
2021-12-09 23:44:57 -06:00
Simon Cozens
fa0eae6658
Don’t put extension lookups into an extension lookup, obviously
2021-12-08 09:02:24 -07:00
Simon Cozens
f7b866573b
Speculatively promote lookups to extension
2021-12-08 09:02:24 -07:00
Khaled Hosny
fef5d57831
Merge pull request #2466 from fonttools/pyup-scheduled-update-2021-12-06
...
Scheduled weekly dependency update for week 49
2021-12-06 18:34:54 +02:00
pyup-bot
57ee514ef9
Update pyobjc from 8.0 to 8.1
2021-12-06 16:05:09 +00:00
pyup-bot
a25707c3e1
Update skia-pathops from 0.7.1 to 0.7.2
2021-12-06 16:05:09 +00:00
Simon Cozens
c04639af70
Add comment to demystify deduplication
2021-12-06 11:15:12 +00:00