Nathan Williis
7d93689aca
Docs: workaround doctest-vs-Sphinx syntax highlighting.
2024-09-11 15:45:46 +01:00
Nathan Williis
1fc9bc2dca
Docs: fix code-example blocks in varLib/instancer.
2024-09-03 17:54:29 +01:00
Nathan Williis
23e3ab60f8
Docs: fix code-example blocks in varLib.
2024-09-03 17:53:56 +01:00
Behdad Esfahbod
45bd0637bd
[varLib.interpolatable]
...
Fix master name formatting.
https://github.com/fonttools/fonttools/pull/3599#issuecomment-2269372640
2024-08-05 09:44:59 -06:00
Behdad Esfahbod
f916971913
[instancer] Fix output filename decision-making
...
All limits are tuples now when not None. The old logic was
broken and for the following command:
$ fonttools varLib.instancer AdobeVFPrototype.otf CNTR=50:80 wght=900
it was saving the output with the name suffix `-instance`, whereas
it's clearly a partial instantiation. This fixes that.
2024-05-30 11:48:12 -06:00
Simon Cozens
a5a1573012
Revert "[instancer] Fix name decision-making"
...
This reverts commit 969d09dcafd3669753e30060ccca7e5fd4c356cd.
2024-05-30 14:36:45 +01:00
Khaled Hosny
eff90154ed
[varLib.cff] Restore and deprecate convertCFFtoCFF2
...
It is used by ufo2ft.
2024-05-27 13:18:04 -07:00
Behdad Esfahbod
6c93fc6289
[instancer] Remove not about CFF2 not being supported
2024-05-27 14:16:57 -06:00
Behdad Esfahbod
c2cf6e6d04
[interpolatable] Avoid division-by-zero
...
Fixes https://github.com/fonttools/fonttools/issues/3533
2024-05-27 10:22:29 -06:00
Peter Dekkers
a531041f3e
Ensure that scipy/numpy output is JSON-serializable
2024-05-24 14:57:40 -07:00
Behdad Esfahbod
a1641d91b2
Newer black
2024-05-22 18:46:07 -06:00
Behdad Esfahbod
9f66edb0d1
[varLib.models] Add validate=False to normalizeLocation
2024-05-22 18:46:07 -06:00
Behdad Esfahbod
e88e47f8ff
[VARC] Take a stab at instancing
2024-05-22 18:46:07 -06:00
Behdad Esfahbod
902b2a194e
[VARC] Fix scaleUpem
...
Instancing left.
2024-05-22 18:46:07 -06:00
Behdad Esfahbod
a7ca67ada8
[VARC] Update subsetting
2024-05-22 18:46:07 -06:00
Behdad Esfahbod
42a5fbdfdd
[VARC] Redesign table
...
No spec yet. For results see:
https://github.com/harfbuzz/boring-expansion-spec/issues/103#issuecomment-1863533305
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
c91984ef77
[VARC] Use sparse-regions in MultiVarStore
...
Might revert as the savings are small.
https://github.com/harfbuzz/boring-expansion-spec/issues/103#issuecomment-1861531669
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
a958c68d79
[VARC] Simplify TupleValues
...
Move it to a converter instead of a class.
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
45f7f4f70f
Try fixing Python < 3.12
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
2b09b0da8a
Black
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
0f0148e54a
[VARC/scaleUpem] Implement
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
2ca627dc5b
[VARC/instancer] Fix
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
57dd288d1b
[VARC/instancer] Comment
2024-05-22 18:46:06 -06:00
Behdad Esfahbod
27e5182677
[VARC/instancer] Implement
2024-05-22 18:46:01 -06:00
Behdad Esfahbod
5c278464e0
[subset/VARC] Subset MultiVarStore
2024-05-22 18:45:28 -06:00
Behdad Esfahbod
c50a0f6195
[VARC] Rename a type
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
4b6c574d54
[VARC] More towards drawing
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
0e52857ffe
[VARC] Start drawing VARC glyphs
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
bcd5e4c216
Rip out glyf1 VarComposites
...
In favor of separate VARC table.
ttGlyphSet does NOT yet know how to draw VARC table though.
The 9 failing tests are all VarComposite-related and need
to be updated with VARC equivalents eventually when we
add VARC support to subsetter and instancer.
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
ec78b572c9
[MultiVarStore] Fix up XML read/write
...
Looks complete now.
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
5fe9da49f3
[MultiVarStore] Fix caching
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
6bcab786a1
[varStore] Fix caching when setModel() is called repeatedly
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
0e9eff8990
Add MultiVarStore
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
b7ab1d8c12
[varStore] Fix overflow logic
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
a8005130cc
[varStore] Cache individual items in store*Many()
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
6f4feffa11
[varStore] Add storeMastersMany / storeDeltasMany
2024-05-22 18:45:27 -06:00
Behdad Esfahbod
5dca3c5a50
[instancer] Warn about missing VORG support
2024-05-17 12:44:29 -07:00
Behdad Esfahbod
4b62d5efe9
[instancer] Set VarDataCount
2024-05-17 12:25:20 -07:00
Behdad Esfahbod
15af3425e9
[instancer] Add --downgrade-cff2
2024-05-17 11:45:35 -07:00
Behdad Esfahbod
9ffcabd360
[instancer] Remove resolved TODO
2024-05-17 11:41:06 -07:00
Behdad Esfahbod
0a7433f847
[cffLib] Add CFF<->CFF2 convertors that work on otFont
2024-05-16 16:29:22 -07:00
Behdad Esfahbod
ec36fe74d5
[cffLib / varLib] Merge two impls of convertCFFToCFF2
...
Fixes https://github.com/fonttools/fonttools/issues/1835
2024-05-16 15:57:31 -07:00
Behdad Esfahbod
39ec4e6c0c
[cffLib] Add CFFToCFF2 and CFF2ToCFF cmdline and module
...
The CFF2ToCFF module is rather solid, at least IMO.
This takes convertCFFToCFF2 from cffLib. Apparently there's a more
complete one in varLib.cff:
https://github.com/fonttools/fonttools/issues/1835
Should merge the two and finish them.
2024-05-16 10:47:24 -07:00
Behdad Esfahbod
60e30fe008
[cffLib] Add a simple (and quite possibly incomplete) convertCFF2ToCFF()
2024-05-15 17:33:00 -07:00
Behdad Esfahbod
c06e8ba1e8
[instancer/CFF2] Comment
2024-05-14 18:26:35 -06:00
Behdad Esfahbod
3d2df43a67
[instancer/CFF2] Comment
2024-05-14 17:13:21 -06:00
Behdad Esfahbod
b3dc48a967
[instancer/CFF2] Micro-optimize commands
2024-05-14 13:39:09 -06:00
Behdad Esfahbod
1011d7e996
[instancer/CFF2] Add another test
2024-05-14 13:34:20 -06:00
Behdad Esfahbod
6d915fc816
[instancer/CFF2] Add test
2024-05-14 12:28:00 -06:00
Behdad Esfahbod
1891a7220d
[instancer/CFF2] Fixups
2024-05-14 11:11:39 -06:00