Behdad Esfahbod
bdbc53b689
[transform] Document DecomposedTransform
2023-02-03 09:37:11 -07:00
Behdad Esfahbod
89aeff636c
[transform] Fix mishap
2023-02-03 09:14:08 -07:00
Behdad Esfahbod
2e20e47473
[transform] Rename VarTransform to DecomposedTransform
2023-02-03 09:05:55 -07:00
Behdad Esfahbod
96f602cf3c
[transform] Use dataclass for VarTransform
2023-02-03 09:03:19 -07:00
Behdad Esfahbod
69966aa5d7
[BasePen] Add addVarComponent()
2023-02-02 15:25:09 -07:00
Behdad Esfahbod
59418656a4
[VarComposite] Add VarTransform and use
2023-02-02 14:50:26 -07:00
Nikolaus Waxweiler
d584daa8fd
Blacken code
2022-12-13 11:26:36 +00:00
Parag Nemade
0a176acabc
Update branch name from master to main
2022-11-09 10:11:02 +05:30
Behdad Esfahbod
bcd637bd1a
[ttGlyphSet-cff] Remove rounding
2022-08-27 12:20:15 -06:00
Behdad Esfahbod
a949380b4a
[psCharStrings] Internal var rename
2022-08-26 21:23:04 -06:00
Behdad Esfahbod
a7cda37fbb
[ttVarGlyphSet] Support CFF
2022-08-26 20:52:18 -06:00
Behdad Esfahbod
24c9fb6ffa
[cliTools] Rename fragment to suffix
2022-08-22 06:26:30 -06:00
Behdad Esfahbod
e146ddfd86
[cliTools.makeOutputFileName] Add fragment argument
...
And use it from subsetter and instancer.
Related to https://github.com/fonttools/fonttools/issues/1156
2022-08-19 12:20:21 -06:00
Behdad Esfahbod
a9e2595e7d
[visitor] Document
2022-08-17 14:50:32 -06:00
Behdad Esfahbod
8fdf4d160e
[visitor_test] Add visitor tests
2022-08-16 12:28:26 -06:00
Behdad Esfahbod
09ea38bac6
[visitor] Add visitDict
2022-08-15 17:39:53 -06:00
Behdad Esfahbod
cb27c528cb
[visitor] Add visitLeaf
2022-08-15 17:29:08 -06:00
Behdad Esfahbod
ef1a009bea
[visitor] Fix up attrs visiting
2022-08-15 13:59:05 -06:00
Behdad Esfahbod
8213c58a38
[visitor] Don't recurse on private or TTFont attributes
2022-08-15 13:43:03 -06:00
Behdad Esfahbod
f582469cb8
[visitor] Split TTVisitor into its own module
2022-08-15 13:01:46 -06:00
Behdad Esfahbod
be7df107e2
[visitor_test] Implement glyf table visiting
2022-08-15 12:47:17 -06:00
Behdad Esfahbod
a0686e8d2e
[visitor] Add register_attr(s) example
2022-08-15 12:37:38 -06:00
Behdad Esfahbod
9b0d0e7b56
[visitor] ensureDecompiled(recurse=False)
2022-08-15 12:09:26 -06:00
Behdad Esfahbod
de091983d5
[visitor] Handle enums
2022-08-15 12:05:52 -06:00
Behdad Esfahbod
5eb63212ad
[visitor] Convert tabs to spaces and run black
2022-08-15 12:04:36 -06:00
Behdad Esfahbod
ec7057a56e
[visitor] Add visitor for TTFont
2022-08-14 14:43:11 -06:00
Behdad Esfahbod
8fe672c6a2
Add misc.visitor.py
...
Fixes https://github.com/fonttools/fonttools/issues/1959
2022-07-31 12:27:09 -06:00
Behdad Esfahbod
97df4a130c
[symfont/momentsPen] Cythonize greenPen / momentsPen
...
Makes varLib.interpolatable 3x faster.
2022-07-28 15:35:51 -06:00
Behdad Esfahbod
22fd6f3eeb
[momentsPen] Remove manual editions
...
Move OpenContourError to basePen.
2022-07-28 14:01:31 -06:00
Cosimo Lupo
a3f402e036
move build_n_ary_tree to misc/treeTools.py module
...
so I can import from varLib.merger as well
2022-07-04 23:08:14 +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
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
2c458719de
Merge pull request #2580 from skef/bg1899
...
Handle implicit CFF2 closepath within T2OutlineExtractor
2022-04-14 20:03:01 +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
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
Cosimo Lupo
7ee2c9d891
testTools: factor our method to strip variable items from ttx dumps
...
it was scattered here and there, so define it once and reuse everywhere needed
2022-04-05 18:34:30 +01:00
derwind
176bae31ed
convert bytes to str
2022-01-08 23:34:22 +09: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
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
Cosimo Lupo
8d6a7617a2
minor: fix 4-space indentation from PR 2441
2021-11-08 12:27:26 +00:00
Rod S
7dd3488732
Traverse when there is no layer list
2021-11-06 14:26:27 -07:00
Simon Cozens
54e307ea6c
Fix docTests
2021-09-23 08:20:51 +01:00
Simon Cozens
ed0cf2fa92
Typo
2021-09-23 08:10:00 +01:00
Simon Cozens
13f6cbdaba
Fix doctests
2021-09-22 16:41:02 +01:00