11823 Commits

Author SHA1 Message Date
Behdad Esfahbod
1e989abec4 [designspaceLib] Add "description" to <mappings> and <mapping>
Fixes https://github.com/fonttools/fonttools/issues/3435
2024-02-05 09:58:51 -07:00
Behdad Esfahbod
1418b4c916 [designspaceLib] Add a roundtripping __main__
Works as a normalizer as well.
2024-02-05 09:58:51 -07:00
pyup-bot
ed1ffafe44 Update glyphslib from 6.6.0 to 6.6.3 2024-02-05 15:51:05 +00:00
pyup-bot
bf88ee764d Update uharfbuzz from 0.37.3 to 0.39.0 2024-02-05 15:51:05 +00:00
pyup-bot
4483ee1696 Update ufo2ft from 2.33.4 to 3.0.0 2024-02-05 15:51:05 +00:00
pyup-bot
b6eaebcbe8 Update scipy from 1.11.4 to 1.12.0 2024-02-05 15:51:04 +00:00
pyup-bot
4d01281ecf Update black from 23.12.0 to 24.1.1 2024-02-05 15:51:04 +00:00
pyup-bot
d29147938e Update reportlab from 4.0.8 to 4.0.9 2024-02-05 15:51:03 +00:00
Behdad Esfahbod
0572f78718 [svgPathPen] Add --glyphs 2024-01-30 13:45:25 -08:00
Behdad Esfahbod
16991a8cd2 [varLib] Remove unused code 2024-01-26 12:20:34 -08:00
Thatchapon Unprasert
447c9e1887
Support sbix Glyphs with graphicType "flip" (#3433)
* Support sbix Glyphs with graphicType = "flip"

Since iOS 17.4 beta, Apple introduced the "flip" graphic type for the sbix glyphs to reference the another glyph to be flipped by their render engine. Their use case is for directional emojis.

Example emoji: https://emojipedia.org/woman_walking_facing_right#technical

This is the example of the output XML after this PR:

```
<glyph graphicType="flip" name="u1F3C3.0.M.u27A1" originOffsetX="0" originOffsetY="0">
    <ref glyphname="u1F3C3.0.M" />
</glyph>
```

Before, it was just `<hexdata>` with some data in it.
2024-01-26 11:09:44 +00:00
Cosimo Lupo
330b3b71e1
Merge pull request #3431 from fonttools/doc-typo 2024-01-26 09:26:04 +00:00
Qunxin Liu
3e548ff29c fix bug in instancer iup optimization
pass in correct value to tolerance
2024-01-25 16:18:24 -08:00
Khaled Hosny
992eb5dc3c Doc: Fix xml example of public.fontInfo
String values were using <integer> tag.
2024-01-25 20:42:47 +02:00
Cosimo Lupo
3bdcbe9269
Merge pull request #3430 from fonttools/fealib-aalt-order 2024-01-25 15:15:08 +00:00
Cosimo Lupo
6ff7d00e06
[feaLib] fix ordering of alternates in aalt lookups
Fixes https://github.com/fonttools/fonttools/issues/2937
2024-01-25 13:25:41 +00:00
Cosimo Lupo
a1cb14d3ec
Merge pull request #3429 from fonttools/fealib-liga-order
[feaLib] keep declaration order of ligatures within ligature set
2024-01-24 17:30:51 +00:00
Cosimo Lupo
796f677225
restore original spec5d1.fea example and modify expected ttx instead 2024-01-24 16:41:34 +00:00
Cosimo Lupo
957b5fb45a
don't sort product of liga components to keep declaration order
technically we are tweaking the original example from the spec but it keeps the spirit, so that the product of glyph classes produces the same representation in the font as if the sequences were manually enumerated (while keeping the declaration order)
2024-01-24 12:59:00 +00:00
Cosimo Lupo
f96b2128a1
[feaLib] keep declaration order of ligatures within ligature set
Fixes #3428
2024-01-24 12:59:00 +00:00
Jens Kutilek
7cdac78423
Add transformRoundFunc parameter to RoundingPens (#3426)
* Add optional transformRoundFunc to RoundingPen and RoundingPointPen
* Add tests
* Add doc about comparing UFO to TTF glyphs
* Use floatToFixedToFloat for example with rounding
2024-01-23 18:59:09 +01:00
خالد حسني (Khaled Hosny)
306f40a2ae
Merge pull request #3424 from fonttools/feaLib-name-length
feaLib: Drop glyph and class names length limit
2024-01-22 16:54:50 +02:00
Khaled Hosny
2616ab959c feaLib: Drop glyph and class names length limit
These were implemented to follow FEA spec, but makeotf does not seem to
have a name length limit any more (or it has a very large one, I tested
a 600-character name and it was accepted).

Fixes https://github.com/googlefonts/ufo2ft/issues/588
See also https://github.com/googlefonts/ufo2ft/pull/811#discussion_r1461667058
2024-01-22 16:38:54 +02:00
Cosimo Lupo
679a5c0c25
Merge pull request #3420 from fonttools/bump-lxml
don't restrict lxml<5, and run tests with latest 5.1.0
2024-01-15 18:19:29 +00:00
Cosimo Lupo
b8b1bc4341
path_test: fix parsing xml declaration
the latest lxml.etree.fromstring complains with syntax error when the xml declaration contain 'standalone' but does not contain encoding, apparently the xml declaration attributes have predefined order
2024-01-15 17:21:17 +00:00
Cosimo Lupo
a17f3d460a
don't restrict lxml<5, and run tests with latest 5.1.0
Fixes https://github.com/fonttools/fonttools/issues/3418
2024-01-15 16:17:22 +00:00
Cosimo Lupo
7572a67146
Merge pull request #3415 from fonttools/fix-upload-artifacts
[CI] adapt to new upload/download-artifact changes
2024-01-15 15:47:49 +00:00
Behdad Esfahbod
bf37f57211 [README] Replace "Un*x" with "Unix-like"
Fixes https://github.com/fonttools/fonttools/issues/3416
2024-01-13 12:34:27 -07:00
Cosimo Lupo
a211ac9794
[CI] adapt to new upload/download-artifact changes
https://github.com/actions/upload-artifact?tab=readme-ov-file#breaking-changes

> Due to how Artifacts are created in this new version, it is no longer possible to upload to the same named Artifact multiple times. You must either split the uploads into multiple Artifacts with different names, or only upload once. Otherwise you will encounter an error.

This caused the PyPI upload job to fail earlier. Hopefully this should fix it.
2024-01-11 12:08:38 +00:00
Cosimo Lupo
182b77773d
Reapply "Bump actions/upload-artifact from 3 to 4"
This reverts commit a778cbe200b03414a238807c999472c353ebfb9e.
2024-01-11 12:00:56 +00:00
Cosimo Lupo
6f1980aae3
Reapply "Bump actions/download-artifact from 3 to 4"
This reverts commit 004a52618507cb271ebbc0794aecf04f8e354db5.
2024-01-11 12:00:48 +00:00
Cosimo Lupo
701b06f3c6
[varLib]: do not log when there are no OTL tables to be merged 2024-01-11 12:00:08 +00:00
Khaled Hosny
6f5a2d0b34 Bump version: 4.47.2 → 4.47.3.dev0 2024-01-11 12:40:30 +02:00
Khaled Hosny
c97d60907d Release 4.47.2 2024-01-11 12:40:30 +02:00
Khaled Hosny
5b1e12206b [NEWS] Update 2024-01-11 12:39:19 +02:00
Khaled Hosny
004a526185 Revert "Bump actions/download-artifact from 3 to 4"
This reverts commit f7384c3f4f1ce71838d063b4424efef09eed4b1b.
2024-01-11 12:36:55 +02:00
Khaled Hosny
a778cbe200 Revert "Bump actions/upload-artifact from 3 to 4"
This reverts commit ee33c6dd8c94e5dacf68049c2493172fcb8c9384.
2024-01-11 12:35:11 +02:00
Khaled Hosny
492db147a3 [NEWS] Fix reStructuredText syntax 2024-01-11 12:32:32 +02:00
Khaled Hosny
ad7ee2fc68 Bump version: 4.47.1 → 4.47.2.dev0 2024-01-11 12:16:32 +02:00
Khaled Hosny
7d5fca3eb5 Release 4.47.1 2024-01-11 12:16:27 +02:00
Khaled Hosny
093f580281 [NEWS] Update 2024-01-11 12:12:51 +02:00
خالد حسني (Khaled Hosny)
1c25210360
[featureVars] Re-use FeatureVariationRecord's when possible
If a FeatureVariationRecord with the same ConditionTable exists re-use
it and append FeatureTableSubstitutionRecord’s.

Without this, in the following feature code only the first lookup will
be applied since there will be two FeatureVariationRecord with the same
ConditionTable, so the first will be matched and the other will be
skipped:

    conditionset test {
        wght 600 1000;
        wdth 150 200;
    } test;

    variation ccmp test {
        sub e by a;
    } ccmp;

    variation rlig test {
        sub b by c;
    } rlig;

With this change only one FeatureVariationRecord will be created with
two FeatureTableSubstitutionRecord’s.
2024-01-10 19:06:26 +02:00
خالد حسني (Khaled Hosny)
e3cde46e69
Merge pull request #3389 from fonttools/dependabot/github_actions/actions/setup-python-5
Bump actions/setup-python from 4 to 5
2024-01-09 18:24:31 +02:00
خالد حسني (Khaled Hosny)
d208a051f1
Merge pull request #3399 from fonttools/dependabot/github_actions/actions/upload-artifact-4
Bump actions/upload-artifact from 3 to 4
2024-01-09 18:24:17 +02:00
خالد حسني (Khaled Hosny)
4619f4d01b
Merge pull request #3398 from fonttools/dependabot/github_actions/actions/download-artifact-4
Bump actions/download-artifact from 3 to 4
2024-01-09 18:24:02 +02:00
Cosimo Lupo
6388cfd6ea
Merge pull request #3406 from fonttools/stat-addname-ttfont
[otlLib] Pass ttFont to name.addName in buildStatTable
2024-01-09 16:15:45 +00:00
Behdad Esfahbod
1722dabd84
Merge pull request #3408 from miloush/main
Merge tool improvements
2024-01-08 10:02:16 -07:00
Jan Kučera
549ce732bf [merge] linter fixes 2024-01-08 16:12:26 +00:00
Jan Kučera
b034d5611f [merge] usage help 2024-01-08 15:07:02 +00:00
Jan Kučera
0d1c8b98b6 [merge] --import-file 2024-01-07 18:37:52 +00:00