9519 Commits

Author SHA1 Message Date
Cosimo Lupo
285664edec Update NEWS.rst 2022-04-21 19:23:18 +01:00
Cosimo Lupo
83df0abd3e
Merge pull request #2591 from fonttools/merge-recalc-OS2-xAvgCharWidth
[OS/2 / merge] unify recalcXAvgCharWidth method and use it for merger, subsetter, etc.
2022-04-21 19:11:11 +01:00
Cosimo Lupo
bb1dbf4198 drop the 'X' from recalcAvgCharWidth method name 2022-04-21 19:02:39 +01:00
Cosimo Lupo
ee2d83d4b3 [merge] use recalcXAvgCharWidth method on merged font
Fixes #2538, supersedes #2590
2022-04-21 18:56:05 +01:00
Cosimo Lupo
12942feb6b [subset] use recalcXAvgCharWidth method 2022-04-21 18:46:11 +01:00
Cosimo Lupo
5455f5388d [fontBuilder] use recalcXAvgCharWidth method
slightly different rounding method but it doesn't really matter
2022-04-21 18:45:38 +01:00
Cosimo Lupo
3731056401 [OS/2] define recalcXAvgCharWidth method
copied from current subsetter code (matches ufo2ft's outlineCompiler)
2022-04-21 18:44:44 +01:00
Cosimo Lupo
380f8d573d
Merge pull request #2589 from fonttools/config-hb-repack
define USE_HARFBUZZ_REPACKER config option
2022-04-21 18:37:16 +01:00
Cosimo Lupo
af6804bed5 make USE_HARFBUZZ_REPACKER a 3-state option, defaults to auto
if explicitly enabled, it will raise ImportError if uharfbuzz is not found, and will propagate the uharfbuzz error instead of silently falling back to the pure-python serializer
2022-04-21 18:11:20 +01:00
Cosimo Lupo
7588062413 [configTools] remove cached set and simplify checking option id 2022-04-21 17:18:32 +01:00
Cosimo Lupo
e9bec87d1a [configTools] Make Option eq=False so cmp/hash by id 2022-04-21 16:21:53 +01:00
Cosimo Lupo
ade9ce1173 [testTools] FakeFont needs a cfg attribute too 2022-04-21 15:56:11 +01:00
Cosimo Lupo
ec79257960 [optimize.gpos] declare/re-export option from module 2022-04-21 15:46:12 +01:00
Cosimo Lupo
4160f05242 [subset_test] test disabling hb repacker, and capture logging 2022-04-21 15:46:12 +01:00
Cosimo Lupo
1bb9607b72 [subset] add --no-harfbuzz-repacker CLI flag 2022-04-21 15:46:12 +01:00
Cosimo Lupo
c204537073 [otBase] check USE_HARFBUZZ_REPACKER in TTFont.cfg, add more logging 2022-04-21 15:46:12 +01:00
Cosimo Lupo
fea57a5cea [config] register USE_HARFBUZZ_REPACKER option 2022-04-21 15:46:12 +01:00
Cosimo Lupo
e5d674ea5e [configTools] accept either str or Option in Config mapping API 2022-04-21 15:46:12 +01:00
Cosimo Lupo
9a0dfbd403 [configTools] add copy constructor to Options 2022-04-21 14:31:58 +01:00
Cosimo Lupo
5aa8986179 [configTools] add __repr__ to Options mapping
print the default value only for brevity
2022-04-21 14:31:58 +01:00
Cosimo Lupo
da52dc3094
Merge pull request #2586 from thomasrockhu-codecov/patch-1
chore(ci): add informational Codecov status checks
2022-04-19 16:24:59 +01:00
Cosimo Lupo
cc6b12582c
Merge pull request #2588 from fonttools/hb-repack-mock-test
mock hb.repack error to test pure-python serializer gets used on failure
2022-04-19 16:19:10 +01:00
Tom Hu
403b82bc4c
Update .codecov.yml 2022-04-19 11:12:15 -04:00
Tom Hu
0bfa1003d6
Update .codecov.yml 2022-04-19 10:58:56 -04:00
Cosimo Lupo
f6e212cc2d subset_test: mock hb.repack raising an error to test pure-python fallback 2022-04-19 15:40:58 +01:00
Cosimo Lupo
822bbb2c69 subset_test: remove unused return value 2022-04-19 15:40:58 +01:00
Cosimo Lupo
60d2727a9b subset_test: convert from unittest to pytest-style tests 2022-04-19 15:40:58 +01:00
Tom Hu
85dae99451
Update .codecov.yml 2022-04-19 09:39:55 -04:00
Just van Rossum
a293606fc8
Merge pull request #2585 from justvanrossum/cmap-minor-cleanup
[cmap] don't handle expected case in exception handler
2022-04-19 11:44:27 +02:00
Tom Hu
c4e1528533
chore(ci): add informational Codecov status checks
Hi, Tom from Codecov here. I noticed that you were using Codecov but weren't actually getting any notifications on pull requests. I figured it would be useful to get some idea if code being changed is being tested, but also not blocking CI/merging. Let me know if this makes sense or if we can do something that would be helpful.
2022-04-18 10:14:54 -04:00
Just van Rossum
0ffe320b77 [cmap] don't handle expected case in exception handler, to avoid confusing tracebacks, such as seen in #2584 2022-04-18 09:15:01 +02:00
Cosimo Lupo
e92dd05101
Merge pull request #2552 from qxliu76/add_hb_repack
Use Harfbuzz Repacker for packing GSUB/GPOS tables
2022-04-14 20:03:18 +01:00
Cosimo Lupo
2c458719de
Merge pull request #2580 from skef/bg1899
Handle implicit CFF2 closepath within T2OutlineExtractor
2022-04-14 20:03:01 +01:00
Qunxin Liu
fe196bf88e Use Harfbuzz Repacker for packing GSUB/GPOS tables 2022-04-14 10:42:50 -07:00
Jany Belluz
afa0998be2
Merge pull request #2416 from daltonmaag/add-conf
Add config module as per #2349
2022-04-14 16:54:18 +02:00
Jany Belluz
dbef683624 [config] Add documentation 2022-04-14 15:23:38 +01:00
Jany Belluz
268fbac85c [config] Add tests 2022-04-14 15:23:22 +01:00
Jany Belluz
abc0441957 [config] Add new config module and use it for GPOS compression level 2022-04-14 15:23:02 +01:00
Jany Belluz
e530c2fa1c [misc] Add new configTools module 2022-04-14 15:20:52 +01:00
Skef Iterum
520ee0236d Handle implicit CFF2 closePath within T2OutlineExtractor 2022-04-14 07:19:44 -07:00
Jany Belluz
5b3db49d72
Merge pull request #2436 from daltonmaag/impl-designspace-v5 2022-04-14 16:16:32 +02:00
Jany Belluz
2ea5dc3496 [varLib] Add support for designspace 5 + STAT generation + tests 2022-04-14 15:05:50 +01:00
Jany Belluz
5a842cc249 [designspaceLib] Update documentation and add version 5 2022-04-14 15:05:20 +01:00
Jany Belluz
a7974986c3 [designspaceLib] Add designspace 5 tests 2022-04-14 15:04:38 +01:00
Jany Belluz
35e560603e [designspaceLib] Add designspace 5 code 2022-04-14 15:03:58 +01:00
Just van Rossum
169731c7f5
[CFF/T2] Ensure that pen.closePath() gets called for CFF2 charstrings (#2577)
* [CFF/T2] Make sure to call pen.closePath() at the end of a CFF2/T2 charstring. Fixes #2455

* Add test case to verify pen.closePath() behavior
2022-04-09 14:50:59 +02:00
justvanrossum
c6cd6cf421 [TTFont] sync doc string with the one in _c_m_a_p.py (see also #1367) 2022-04-09 08:31:03 +02:00
Behdad Esfahbod
17f71c0eb7 [cmap] Document rationale for getBestCmap choice of subtable
Fixes https://github.com/fonttools/fonttools/issues/1367
2022-04-08 13:27:44 -06:00
Cosimo Lupo
43e4315009 Bump version: 4.32.0 → 4.32.1.dev0 2022-04-08 16:07:06 +01:00
Cosimo Lupo
84f3c50099 Release 4.32.0 2022-04-08 16:07:06 +01:00