7422 Commits

Author SHA1 Message Date
Nathan Williis
df49533892 Docs: fix code-example blocks in voltLib. 2024-09-03 17:54:45 +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
Nathan Williis
4b9cb1030e Docs: fix code-example blocks in svgLib. 2024-09-03 17:52:59 +01:00
Nathan Williis
e7c78970ce Docs: fix code-example blocks in ufoLib. 2024-09-03 17:52:20 +01:00
Nathan Williis
f771c37149 Docs: fix code-example blocks in pens. 2024-09-03 17:52:02 +01:00
n8willis
c2119229cf
Merge pull request #3625 from n8willis/docs-cleanup
Docs: fix Sphinx builds.
2024-09-03 11:21:08 +01:00
Nathan Williis
c19b1c5148 Docs: move module docstrings to first line of file, as per PEP 257. 2024-09-02 17:18:41 +01:00
Cosimo Lupo
afd73dd2b1
NameRecordVisitor: remove unnecessary check for out of bounds nameIDs 2024-08-30 18:20:13 +01:00
Cosimo Lupo
8f01590353
FeatureParamsSize.SubfamilyID is *not* actually a NameID 2024-08-30 18:20:12 +01:00
Cosimo Lupo
821f37329e
NameRecordVisitor: include whole sequence of UI labels for character variants, not just first
Fixes #3616
2024-08-30 18:20:12 +01:00
Behdad Esfahbod
132654c9e5 [varLib.avar] Comment 2024-08-30 08:46:50 -07:00
Behdad Esfahbod
2742c6287c [varLib.avar] Test & fix _pruneLocations 2024-08-30 08:46:50 -07:00
Behdad Esfahbod
700b6a7b0e [varLib.avar] Refactor code
So we can test it.
2024-08-30 08:46:50 -07:00
Behdad Esfahbod
65ab19468d [varLib.avar] Comments and a bug fix
Code was in wrong block.
2024-08-30 08:46:50 -07:00
Behdad Esfahbod
bd76b4a24b [varLib.avar] Handle default location mapping somewhere else 2024-08-30 08:46:50 -07:00
Behdad Esfahbod
34e38c3d03 [varLib.avar] Do less work
No need to compute outputLocation for unneeded inputLocations.
2024-08-30 08:46:50 -07:00
Behdad Esfahbod
9f19a19c4e [varLib.avar] Introduce base master earlier 2024-08-30 08:46:50 -07:00
Behdad Esfahbod
b8306b1d82 [varLib.avar] Fix normalization
And see if I can make it deterministic. It still isn't.
2024-08-30 08:46:50 -07:00
Behdad Esfahbod
cb031514ea [varLib.avar] Try dropping unnecessary "masters"
Untested, as I don't have a test font that exercises this.
2024-08-30 08:46:50 -07:00
Behdad Esfahbod
e606adfffe [varLib.avar] Add peakLocation as well, oops 2024-08-30 08:46:50 -07:00
Behdad Esfahbod
0127a235af [varLib.avar] Don't require a full .designspace with sources 2024-08-30 08:46:50 -07:00
Behdad Esfahbod
297f73aeaf [varLib.avar] Err, don't drop empty pins
https://github.com/fonttools/fonttools/issues/3086#issuecomment-2263626285
2024-08-30 08:46:50 -07:00
Behdad Esfahbod
40f6760e8a [varLib.avar] Don't clamp values
https://github.com/fonttools/fonttools/pull/3598#issuecomment-2266082009
2024-08-30 08:46:50 -07:00
Behdad Esfahbod
150d4fc195 [varLib.avar] Sketch of code to reconstruct mappings from binary
https://github.com/Lorp/fencer/issues/25
2024-08-30 08:46:50 -07:00
Behdad Esfahbod
0c2652011e [varLib.models] By default, assume OpenType-like normalized space
See:
https://github.com/fonttools/fonttools/pull/2846#issuecomment-2267750076

I *think* this is an improvement, and no one should have been relying
on the broken existing behavior.

Docs need updating.
2024-08-16 18:45:08 -06:00
Behdad Esfahbod
ead2a18d4b [varLib.interpolatable] Support discrete axes in .designspace
Fixes https://github.com/fonttools/fonttools/issues/3597
2024-08-16 12:14:30 -06: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
David Jones
aa2d9196c0 Lift .get("hex") out of try:; and avoid re-evaluating it 2024-07-18 19:29:41 +01:00
Behdad Esfahbod
ba20aa2f56 [merge] Format 2024-07-18 12:05:46 -06:00
David Jones
4214a66405 Minor fixes to documentation for merge 2024-07-18 12:04:59 -06:00
Simon Cozens
647abe70a9 Bump version: 4.53.1 → 4.53.2.dev0 2024-07-05 13:03:28 +01:00
Simon Cozens
d3e68f28f2 Release 4.53.1 2024-07-05 13:03:27 +01:00
Simon Cozens
3546b9f06d Search the object's MRO for visitors 2024-07-03 06:48:38 -06:00
David Corbett
aa390ec98b Fix OS/2.usMaxContext for reverse GSUB rules 2024-06-16 20:37:17 -07:00
Cosimo Lupo
97929b3236
[feaLib] try reuse existing inline chained multiple subst lookups when possible
We already do this for inline single substitutions in chained contextual lookups, this PR extends this for multiple substitutions as well.

Fixes https://github.com/fonttools/fonttools/issues/3551
2024-06-03 17:06:46 +01:00
David Jones
fb30c9822b Verify that unicode elements have hex attribute 2024-06-03 17:02:34 +01:00
Nikolaus Waxweiler
308b449edc Bump version: 4.53.0 → 4.53.1.dev0 2024-05-31 17:24:59 +01:00
Nikolaus Waxweiler
af5894cd2d Release 4.53.0 2024-05-31 17:24:59 +01:00
Cosimo Lupo
c61fae7a7d
Merge pull request #3548 from fonttools/instancer-name
[instancer] Fix output filename decision-making
2024-05-31 14:21:56 +01:00
Behdad Esfahbod
f4669f0538 [avar] Fix assertion
Fixes https://github.com/fonttools/fonttools/issues/3546
2024-05-31 01:36:17 -07: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
Nikolaus Waxweiler
bdbc470f9f Revert "[svgPen] Write two digits after decimal by default"
This reverts commit 42d6b6b4fedf51dd741d3134da74df04339335b4.
2024-05-30 10:31:53 -07:00
Simon Cozens
a5a1573012 Revert "[instancer] Fix name decision-making"
This reverts commit 969d09dcafd3669753e30060ccca7e5fd4c356cd.
2024-05-30 14:36:45 +01:00
Cosimo Lupo
4193aeaa26
Merge pull request #3495 from NightFurySL2001/patch-2
Allow UTF-8 with BOM for features.fea
2024-05-30 12:27:21 +01:00
خالد حسني (Khaled Hosny)
1c3137ee14
Merge pull request #3528 from fonttools/remove-overlaps-cff
[ttLib.removeOverlaps] Support CFF table
2024-05-30 14:25:59 +03:00
Khaled Hosny
353f3808f2 Bump version: 4.52.4 → 4.52.5.dev0 2024-05-27 23:31:46 +03:00
Khaled Hosny
6fb8c5d653 Release 4.52.4 2024-05-27 23:31:46 +03: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