Cosimo Lupo
69b1752d80
variableScalar: make model_cache parameter optional
2023-03-16 12:03:33 +00:00
Nikolaus Waxweiler
ac0361fe31
Move VariableScalar cache into Builder
2023-03-16 11:27:06 +00:00
Nikolaus Waxweiler
cf43ff5d22
Apply avar to variable locations
2023-03-15 16:19:39 +00:00
Nikolaus Waxweiler
a993247e47
Remove unused variable
2023-03-15 16:19:12 +00:00
Nikolaus Waxweiler
73e7aad1c3
Guard against missing avar entries
2023-03-15 16:18:47 +00:00
Nikolaus Waxweiler
a55a545b12
Merge pull request #3042 from fonttools/conditionset-consult-avar
...
Conditionset: consult avar to normalize values
2023-03-15 09:43:20 +00:00
Nikolaus Waxweiler
c3a5e9ea1f
Consult avar for normalizing user-space values in conditionsets
2023-03-15 09:16:06 +00:00
Nikolaus Waxweiler
d1b916ad04
Add missing location argument
...
and make code nicer.
2023-03-15 09:16:06 +00:00
Nikolaus Waxweiler
f926909fef
Make code nicer
2023-03-14 18:24:07 +00:00
Jens Kutilek
032616b106
Revert black formatting of inline instruction docs ( #3037 )
...
* Revert black formatting of inline instruction docs
* Ignore block when formatting
* Format instruction list with spaces
2023-03-14 16:48:21 +01:00
Jens Kutilek
f1a75bacb2
Handle string input to Program.fromAssembly() ( #3038 )
...
* Add tests for fromAssembly() output (#3036 )
* Handle string input to fromAssembly() (Fixes #3036 )
* Fixups suggested by @anthrotype
* Add some more typing annotations
* Program.assembly always returns List[str] now
* Add annotation for bytecode
* Move code from setter to fromAssembly
* Remove property
* Fix attribute names
2023-03-14 14:51:16 +01:00
خالد حسني (Khaled Hosny)
444a349ef4
Merge pull request #3034 from fonttools/otlib-gpos7
...
[otlib] Add a config option to write GPOS 7 lookups
2023-03-13 18:16:47 +02:00
Khaled Hosny
59008b2313
Typos
2023-03-13 16:59:23 +02:00
Khaled Hosny
fd6c81585f
[otlib] Add a config option to write GPOS 7 lookups
...
See the inline comment and option documentation
2023-03-13 16:34:33 +02:00
Cosimo Lupo
580e3b3b50
otTables: forgot to actually import TTLibError ugh
2023-03-10 19:22:58 +00:00
Cosimo Lupo
de266aa833
Merge pull request #3033 from daltonmaag/bump-docs-min-version
...
[docs] Bump minimum Python version in docs, as 3.8 is now required
2023-03-10 15:44:39 +00:00
Cosimo Lupo
3c9aa76893
Merge pull request #3027 from fonttools/colr-clipboxes
...
[COLRv1] Add method to automatically compute ClipBoxes, w/ optional quantization
2023-03-10 15:43:35 +00:00
Harry Dalton
81e5bf2ee7
Bump minimum Python version in docs, as 3.8 is now required
2023-03-10 15:39:09 +00:00
Cosimo Lupo
c5e464ad8f
C_O_L_R_test: add tests for computeClipBoxes
...
using a subset from test_glyphs font from the googlefonts/color-fonts repository
2023-03-10 15:23:30 +00:00
Cosimo Lupo
c15e77cbc9
ot-spec says skewX angle should be counter-clockwise so we must negate
...
Transform.skew method assumes skewX angle goes clockwise.
verified using test_glyphs-glyf_colr_1.ttf test font from googlefonts/color-fonts repo.
Will add that to the tests.
2023-03-10 13:16:05 +00:00
Cosimo Lupo
55cc41a24e
[otTables] implement Paint.getTransform, Paint.computeClipBox & COLR.computeClipBoxes
...
This for now only works for static COLR table, not variable.
2023-03-10 13:16:04 +00:00
Cosimo Lupo
217742cc44
Merge pull request #3032 from fonttools/getGlyphID-KeyError
...
ttFont.getGlyphID should raise KeyError on missing glyphs
2023-03-10 12:11:33 +00:00
Cosimo Lupo
d64ee127be
ttFont_test: another test for missing glyph name that doesn't match 'glyph\d+' pattern
2023-03-10 11:44:52 +00:00
Cosimo Lupo
b137fd9616
ttFont: raise KeyError from getGlyphID instead of returning None
...
Fixes #3030
2023-03-10 11:38:55 +00:00
Cosimo Lupo
d77c8901c8
ttFont_test: add test for getGlyphID
2023-03-10 11:37:07 +00:00
Cosimo Lupo
48bf4d4eed
Merge pull request #3031 from CourtBouillon/main
...
[sbix] Fix UnboundLocalError: cannot access local variable 'rawdata' where
2023-03-10 10:59:54 +00:00
Guillaume Ayoub
b2c75bede4
Fix glyph compilation code
2023-03-10 11:34:16 +01:00
Cosimo Lupo
17f431b9c2
[otTables] switch to generic table traversal for Paint.traverse
2023-03-08 19:19:50 +00:00
Cosimo Lupo
7433c5dbb9
[otTraverse] allow to use custom callback to iterate over subtables
2023-03-08 19:13:48 +00:00
Cosimo Lupo
92fbac8a64
[arrayTools] add quantizeRect
2023-03-08 19:03:50 +00:00
Cosimo Lupo
1a202ab1be
Merge pull request #3024 from fonttools/no-overwrite-stat
...
[varLib] Don't overwrite pre-existing STAT
2023-03-08 13:00:34 +00:00
Cosimo Lupo
d9570826ad
varLib_test: test build_many doesn't overwrite pre-existing STAT
2023-03-08 12:40:43 +00:00
Cosimo Lupo
5955a47f42
[varLib] build_many(DSv5) from main(); add --output-dir & --variable-fonts options
...
Fixes https://github.com/fonttools/fonttools/issues/2659
2023-03-07 18:13:28 +00:00
Cosimo Lupo
587b0fbf11
[varLib] don't overwrite existing feaLib-built 'STAT' table
...
Fixes https://github.com/googlefonts/fontmake/issues/985 and https://github.com/googlefonts/ufo2ft/issues/723
2023-03-07 17:26:15 +00:00
Cosimo Lupo
27758ee1e7
Merge pull request #3023 from fonttools/mtilib-debug
...
[mtiLib] only build `Debg` table if FONTTOOLS_LOOKUP_DEBUGGING env var is set
2023-03-07 12:16:57 +00:00
Cosimo Lupo
8f3d697faa
mtiLib: check for FONTTOOLS_LOOKUP_DEBUGGING env var
...
We do the same for feaLib.builder to decide whether to build a Debg table or not: i.e. we check if FONTTOOLS_LOOKUP_DEBUGGING environment variable is defined and if so we go on to build one, otherwise we don't.
Fixes https://github.com/fonttools/fonttools/pull/3018
2023-03-07 12:02:45 +00:00
Cosimo Lupo
ea8b9b85d7
mti_test: convert to pytest-style test module
2023-03-07 12:00:50 +00:00
Behdad Esfahbod
501353f3df
[VarComposites] Flag rename
2023-03-06 13:10:09 -07:00
Cosimo Lupo
c87bcde990
NEWS.rst: fix typo [skip ci]
2023-03-06 16:39:04 +00:00
Cosimo Lupo
89e678b121
Bump version: 4.39.0 → 4.39.1.dev0
2023-03-06 16:31:59 +00:00
Cosimo Lupo
fbc82d9f0a
Release 4.39.0
2023-03-06 16:31:58 +00:00
Cosimo Lupo
85e7ad39ee
Update changelog
2023-03-06 16:26:39 +00:00
Cosimo Lupo
8ea7e6c7e4
Update changelog [skip ci]
2023-03-06 13:33:18 +00:00
Cosimo Lupo
c24558c57b
Merge pull request #3018 from fonttools/mtilib-debg
...
[mtiLib] Add debug info
2023-03-06 12:23:24 +00:00
Cosimo Lupo
e0177a9920
black
2023-03-06 12:12:18 +00:00
Cosimo Lupo
8d546623d1
update mtiLib expected test files
2023-03-06 12:09:01 +00:00
Cosimo Lupo
e26da961ec
Merge pull request #3020 from fonttools/ttx-stdin
...
[ttx] support reading font/xml file from standard input as '-'
2023-03-03 17:28:58 +00:00
Cosimo Lupo
6c6373a0a4
error if no -o option provided when reading input from stdin
...
since we can't make up an output filename in that case
2023-03-03 16:51:33 +00:00
Cosimo Lupo
1d6326ea61
ttx_test: test dumping and compiling from stdin to stdout
2023-03-03 16:30:23 +00:00
Cosimo Lupo
15b450e4a6
[ttx] support reading font/xml file from standard input as '-'
...
Fixes https://github.com/fonttools/fonttools/issues/3019
2023-03-03 14:13:06 +00:00