9309 Commits

Author SHA1 Message Date
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
Cosimo Lupo
482a0b96de Bump version: 4.28.3 → 4.28.4.dev0 2021-12-03 11:52:50 +00:00
Cosimo Lupo
2d7b76aba3 Release 4.28.3 2021-12-03 11:52:49 +00:00
Cosimo Lupo
0e1a3588fa Update NEWS.rst [skip ci] 2021-12-03 11:52:39 +00:00
Cosimo Lupo
9b613b67c2
Merge pull request #2462 from fonttools/fix-subset-colr
subset/COLR: fix struct.error while subsetting Bungee COLR
2021-12-03 11:33:37 +00:00
Cosimo Lupo
de3830ba2b clarify comment a bit as per review 2021-12-03 11:16:59 +00:00
Cosimo Lupo
d89f90f46c subset_test: test COLR subset excludes glyphs resulting from glyf closure 2021-12-02 18:18:09 +00:00
Cosimo Lupo
780f2428b6 subset: when subsetting COLR only include glyphs after COLR closure, excluding glyf closure
Fixes #2461
2021-12-02 18:12:04 +00:00
Cosimo Lupo
32874cb372 subset/COLR: add reproducer for issue #2461
this currently fails with struct.error. Fix will ensue shortly
2021-12-02 18:01:24 +00:00
Simon Cozens
3e0caa881e
[docs] Fully document the glyf table (#2457)
* Fully document the glyf table

* Correct docs for getGlyphName/getGlyphId

* Fix typo

* Grammar nits
2021-12-02 15:32:20 +00:00
Simon Cozens
f887389d59
[docs] Fully document the cmap table (#2454)
* Fully document the cmap table

* Try not to completely break cmap handling while writing docs, Simon
2021-12-02 15:32:03 +00:00
Simon Cozens
0f03e6529a
[docs] Fix sphinx warnings (#2453)
* Add default auto doc options

* Ensure all references are unique

* Use anonymous links to avoid duplicate references

* Remove default options, fix wrong module name

* Don’t index repeated class

* Remove repeated classes included through automodule

* Fix warnings

* We don’t use our own static directory

* Correctly format XML in docs

* Fix indentation

* Fix overline

* Bring TOC to top

* Fix definition list

* Offset definition lists and examples

* Fix erroneous markup

* Fix markup

* Already included in automodule

* Fix args markup

* Correct markup for example

* Don’t reindex repeated module

* Correct XML code block markup

* Fix markup errors, change example to doctest

* Correct list markup

* Make ttx docstring both valid RST and valid help output

* Various other boring markup fixes

* Fix example indenting

* Make docstring valid RST and valid help output

* Mock import for reportlab

* It’s ok if manual links don’t appear in toctrees

* Oops typo, I guess doctests are useful
2021-12-02 15:31:49 +00:00
Khaled Hosny
445108f735
Merge pull request #2458 from fonttools/pyup-scheduled-update-2021-11-29
Scheduled weekly dependency update for week 48
2021-11-29 18:34:08 +02:00
pyup-bot
9f6b827a53 Update scipy from 1.7.2 to 1.7.3 2021-11-29 16:06:09 +00:00
pyup-bot
e475b4adcc Update reportlab from 3.6.2 to 3.6.3 2021-11-29 16:06:09 +00:00
pyup-bot
ea7b1a4a9e Update sphinx from 4.3.0 to 4.3.1 2021-11-29 16:06:08 +00:00
Cosimo Lupo
180bb18673 colorLib.unbuilder: fix CLI by deleting no longer existing parameter 2021-11-25 15:01:19 +00:00
Khaled Hosny
5f65d7229a
Merge pull request #2456 from fonttools/pyup-scheduled-update-2021-11-22
Scheduled weekly dependency update for week 47
2021-11-25 16:45:58 +02:00
pyup-bot
22f170af8b Update fs from 2.4.13 to 2.4.14 2021-11-22 16:06:05 +00:00
pyup-bot
2b8f493f32 Update sphinx from 4.2.0 to 4.3.0 2021-11-22 16:06:04 +00:00
Khaled Hosny
6cd8bcbcd0 [skip ci] Minor formatting 2021-11-22 02:33:39 +02:00
Khaled Hosny
bc6f748ee4 Bump version: 4.28.2 → 4.28.3.dev0 2021-11-22 02:18:37 +02:00
Khaled Hosny
5b62a8846f Release 4.28.2 2021-11-22 02:18:37 +02:00
Khaled Hosny
0a7164a452
Merge pull request #2447 from fonttools/merge-cff-rebased
Merge CFF rebased
2021-11-19 14:20:26 +02:00
Khaled Hosny
1fa579f6b8 [merge] Add CFF merging integration test 2021-11-18 22:14:41 +02:00
Khaled Hosny
40f82a8515 [merge] Support --output-file 2021-11-18 22:09:02 +02:00
Khaled Hosny
c20a63a166 [merge] Move test to its own dir 2021-11-18 21:27:01 +02:00
Khaled Hosny
10c05b8eed [merge] Remove subroutines debug code
We are not doing anything about subroutines (and there shouldn’t be any
since the tables are desubroutinized), so this code is just making it
look noisy.
2021-11-18 16:39:41 +02:00
Khaled Hosny
d7c3a967cf [merge] Support non-indexed CharStrings 2021-11-18 16:37:09 +02:00
Khaled Hosny
18236ca91d
Merge pull request #2440 from dscorbett/dedupe-buildCoverage
[otlLib] Remove duplicates when building coverage
2021-11-18 15:36:37 +02:00
Simon Cozens
e0dc30aa2d
[docs] Improve documentation for fontTools.ttLib.ttFont (#2442) 2021-11-18 13:06:02 +00:00
Simon Cozens
af9dfc94e7
Forbid empty classes (take 2) (#2446) 2021-11-18 11:31:49 +00:00
Simon Cozens
00f37ea6b6
[docs] Split table docs into individual pages (#2444) 2021-11-18 09:01:27 +00:00
Khaled Hosny
753a841de6 [merge] Minor and comment 2021-11-17 21:03:52 +02:00
Khaled Hosny
6acf76996e [merge] Don’t process CFF before all other tables
I don’t know why this code was there, but my tests make no difference
with or without it.
2021-11-17 21:03:52 +02:00
Khaled Hosny
a53ded3b31 [merge] Don’t create TTFont then throw it away
The font is opened later, so use that.
2021-11-17 21:03:52 +02:00
Khaled Hosny
5299a3cb83 [merge] Simplify renaming CFF CharStrings 2021-11-17 21:03:52 +02:00
Khaled Hosny
8e9ab24c11 [cffLib] Move desubroutinize from subset module to CFFFontSet
This way we can use it from both subset and merge modules.
2021-11-17 21:03:49 +02:00
Cosimo Lupo
e5e69852ed merge: various cleanups (WIP) 2021-11-17 21:03:12 +02:00
Cosimo Lupo
a75e01204d Revert "Revert "Merge pull request #1289 from BlackFoundry/master""
This reverts commit 6deeb70acbe8f75dba29f1ea8c8d2cd6842bcbdc.
2021-11-17 21:03:12 +02:00
Cosimo Lupo
f15ed2dab0
Merge pull request #2448 from verbosus/checksum-comment
Removed comment about missing “start” optional argument to `calcChecksum`
2021-11-16 17:25:57 +00:00
Cosimo Lupo
9abfc00b71
Merge pull request #2452 from fonttools/subset-svg
Add support for subsetting OT-SVG table
2021-11-16 17:14:04 +00:00
Cosimo Lupo
247fa84b98 only rename glyph element ids when clash actually occurs 2021-11-16 14:28:14 +00:00