[wpt-sync] Sync PR 38834 - Bump fonttools from 4.33.2 to 4.39.0 in /tools
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(Not tracked)
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 38834 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/38834
Details from upstream follow.
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> wrote:
Bump fonttools from 4.33.2 to 4.39.0 in /tools
Bumps fonttools from 4.33.2 to 4.39.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/fonttools/fonttools/releases">fonttools's releases</a>.</em></p>
<blockquote>
<h2>4.39.0</h2>
<ul>
<li>[mtiLib] Optionally add <code>Debg</code> debug info for MTI feature builds (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3018">#3018</a>).</li>
<li>[ttx] Support reading input file from standard input using special <code>-</code> character, similar to existing <code>-o -</code> option to write output to standard output (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3020">#3020</a>).</li>
<li>[cython] Prevent <code>cython.compiled</code> raise AttributeError if cython not installed properly (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3017">#3017</a>).</li>
<li>[OS/2] Guard against ZeroDivisionError when calculating xAvgCharWidth in the unlikely scenario no glyph has non-zero advance (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3015">#3015</a>).</li>
<li>[subset] Recompute xAvgCharWidth independently of --no-prune-unicode-ranges, previously the two options were involuntarily bundled together (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3012">#3012</a>).</li>
<li>[fontBuilder] Add <code>debug</code> parameter to addOpenTypeFeatures method to add source debugging information to the font in the <code>Debg</code> private table (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3008">#3008</a>).</li>
<li>[name] Make NameRecord <code>__lt__</code> comparison not fail on Unicode encoding errors (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3006">#3006</a>).</li>
<li>[featureVars] Fixed bug in <code>overlayBox</code> (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3003">#3003</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3005">#3005</a>).</li>
<li>[glyf] Added experimental support for cubic bezier curves in TrueType glyf table, as outlined in glyf v1 proposal (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2988">#2988</a>):<br />
<a href="https://github.com/harfbuzz/boring-expansion-spec/blob/main/glyf1-cubicOutlines.md">https://github.com/harfbuzz/boring-expansion-spec/blob/main/glyf1-cubicOutlines.md</a></li>
<li>Added new qu2cu module and related qu2cuPen, the reverse of cu2qu for converting TrueType quadratic splines to cubic bezier curves (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2993">#2993</a>).</li>
<li>[glyf] Added experimental support for reading and writing Variable Composites/Components as defined in glyf v1 spec proposal (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2958">#2958</a>):<br />
<a href="https://github.com/harfbuzz/boring-expansion-spec/blob/main/glyf1-varComposites.md">https://github.com/harfbuzz/boring-expansion-spec/blob/main/glyf1-varComposites.md</a>.</li>
<li>[pens]: Added <code>addVarComponent</code> method to pen protocols' base classes, which pens can implement to handle varcomponents (by default they get decomposed).</li>
<li>[misc.transform] Added DecomposedTransform class which implements an affine transformation with separate translate, rotation, scale, skew, and transformation-center components (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2598">#2598</a>)</li>
<li>[sbix] Ensure Glyph.referenceGlyphName is set; fixes error after dumping and re-compiling sbix table with 'dupe' glyphs (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2984">#2984</a>).</li>
<li>[feaLib] Be cleverer when merging chained single substitutions into same lookup when they are specified using the inline notation (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2150">#2150</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2974">#2974</a>).</li>
<li>[instancer] Clamp user-inputted axis ranges to those of fvar (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2959">#2959</a>).</li>
<li>[otBase/subset] Define <code>_getstate__</code> for BaseTable so that a copied/pickled 'lazy' object gets its own OTTableReader to read from; incidentally fixes a bug while subsetting COLRv1 table containing ClipBoxes on python 3.11 (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2965">#2965</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2968">#2968</a>).</li>
<li>[sbix] Handle glyphs with "dupe" graphic type on compile correctly (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2963">#2963</a>).</li>
<li>[glyf] <code>endPointsOfContours</code> field should be unsigned! Kudos to behdad for spotting one of the oldest bugs in FT. Probably nobody has ever dared to make glyphs with more than 32767 points... (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2957">#2957</a>).</li>
<li>[feaLib] Fixed handling of <code>ignore</code> statements with unmarked glyphs to match makeotf behavior, which assumes the first glyph is marked (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2950">#2950</a>).</li>
<li>Reformatted code with <code>black</code> and enforce new code style via CI check (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2925">#2925</a>).</li>
<li>[feaLib] Sort name table entries following OT spec prescribed order in the builder (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2927">#2927</a>).</li>
<li>[cu2quPen] Add Cu2QuMultiPen that converts multiple outlines at a time in interpolation compatible way; its methods take a list of tuples arguments that would normally be passed to individual segment pens, and at the end it dispatches the converted outlines to each pen (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2912">#2912</a>).</li>
<li>[reverseContourPen/ttGlyphPen] Add outputImpliedClosingLine option (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2913">#2913</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2914">#2914</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2921">#2921</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2922">#2922</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2995">#2995</a>).</li>
<li>[gvar] Avoid expanding all glyphs unnecessarily upon compile (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2918">#2918</a>).</li>
<li>[scaleUpem] Fixed bug whereby CFF2 vsindex was scaled; it should not (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2893">#2893</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2894">#2894</a>).</li>
<li>[designspaceLib] Add DS.getAxisByTag and refactor getAxis (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2891">#2891</a>).</li>
<li>[unicodedata] map Zmth<!-- raw HTML omitted -->math in ot_tag{to,from}_script (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/1737">#1737</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2889">#2889</a>).</li>
<li>[woff2] Support encoding/decoding OVERLAP_SIMPLE glyf flags (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2576">#2576</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2884">#2884</a>).</li>
<li>[instancer] Update OS/2 class and post.italicAngle when default moved (L4)</li>
<li>Dropped support for Python 3.7 which reached EOL, fontTools requires 3.8+.</li>
<li>[instancer] Fixed instantiateFeatureVariations logic when a rule range becomes default-applicable (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2737">#2737</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2880">#2880</a>).</li>
<li>[ttLib] Add main to ttFont and ttCollection that just decompile and re-compile the input font (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2869">#2869</a>).</li>
<li>[featureVars] Insert 'rvrn' lookup at the beginning of LookupList, to work around bug in Apple implementation of 'rvrn' feature which the spec says it should be processed early whereas on macOS 10.15 it follows lookup order (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2140">#2140</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2867">#2867</a>).</li>
<li>[instancer/mutator] Remove 'DSIG' table if present.</li>
<li>[svgPathPen] Don't close path in endPath(), assume open unless closePath() (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2089">#2089</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2865">#2865</a>).</li>
</ul>
<h2>4.38.0</h2>
<ul>
<li>[varLib.instancer] Added support for L4 instancing, i.e. moving the default value of an axis while keeping it variable. Thanks Behdad! (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2728">#2728</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2861">#2861</a>).<br />
It's now also possible to restrict an axis min/max values beyond the current default value, e.g. a font wght has min=100, def=400, max=900 and you want a partial VF that only varies between 500 and 700, you can now do that. You can either specify two min/max values (wght=500:700), and the new default will be set to either the minimum or maximum, depending on which one is closer to the current default (e.g. 500 in this case). Or you can specify three values (e.g. wght=500:600:700) to set the new default value explicitly.</li>
<li>[otlLib/featureVars] Set a few Count values so one doesn't need to compile the font to update them (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2860">#2860</a>).</li>
<li>[varLib.models] Make extrapolation work for 2-master models as well where one master is at the default location (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2843">#2843</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2846">#2846</a>).<br />
Add optional extrapolate=False to normalizeLocation() (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2847">#2847</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2849">#2849</a>).</li>
<li>[varLib.cff] Fixed sub-optimal packing of CFF2 deltas by no longer rounding them to integer (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2838">#2838</a>).</li>
<li>[scaleUpem] Calculate numShorts in VarData after scale; handle CFF hintmasks (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2840">#2840</a>).</li>
</ul>
<h2>4.37.4</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/fonttools/fonttools/blob/main/NEWS.rst">fonttools's changelog</a>.</em></p>
<blockquote>
<h2>4.39.0 (released 2023-03-06)</h2>
<ul>
<li>[mtiLib] Optionally add <code>Debg</code> debug info for MTI feature builds (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3018">#3018</a>).</li>
<li>[ttx] Support reading input file from standard input using special <code>-</code> character,
similar to existing <code>-o -</code> option to write output to standard output (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3020">#3020</a>).</li>
<li>[cython] Prevent <code>cython.compiled</code> raise AttributeError if cython not installed
properly (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3017">#3017</a>).</li>
<li>[OS/2] Guard against ZeroDivisionError when calculating xAvgCharWidth in the unlikely
scenario no glyph has non-zero advance (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3015">#3015</a>).</li>
<li>[subset] Recompute xAvgCharWidth independently of --no-prune-unicode-ranges,
previously the two options were involuntarily bundled together (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3012">#3012</a>).</li>
<li>[fontBuilder] Add <code>debug</code> parameter to addOpenTypeFeatures method to add source
debugging information to the font in the <code>Debg</code> private table (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3008">#3008</a>).</li>
<li>[name] Make NameRecord <code>__lt__</code> comparison not fail on Unicode encoding errors (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3006">#3006</a>).</li>
<li>[featureVars] Fixed bug in <code>overlayBox</code> (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3003">#3003</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3005">#3005</a>).</li>
<li>[glyf] Added experimental support for cubic bezier curves in TrueType glyf table, as
outlined in glyf v1 proposal (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2988">#2988</a>):
<a href="https://github.com/harfbuzz/boring-expansion-spec/blob/main/glyf1-cubicOutlines.md">https://github.com/harfbuzz/boring-expansion-spec/blob/main/glyf1-cubicOutlines.md</a></li>
<li>Added new qu2cu module and related qu2cuPen, the reverse of cu2qu for converting
TrueType quadratic splines to cubic bezier curves (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2993">#2993</a>).</li>
<li>[glyf] Added experimental support for reading and writing Variable Composites/Components
as defined in glyf v1 spec proposal (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2958">#2958</a>):
<a href="https://github.com/harfbuzz/boring-expansion-spec/blob/main/glyf1-varComposites.md">https://github.com/harfbuzz/boring-expansion-spec/blob/main/glyf1-varComposites.md</a>.</li>
<li>[pens]: Added <code>addVarComponent</code> method to pen protocols' base classes, which pens can implement
to handle varcomponents (by default they get decomposed) (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2958">#2958</a>).</li>
<li>[misc.transform] Added DecomposedTransform class which implements an affine transformation
with separate translate, rotation, scale, skew, and transformation-center components (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2598">#2598</a>)</li>
<li>[sbix] Ensure Glyph.referenceGlyphName is set; fixes error after dumping and
re-compiling sbix table with 'dupe' glyphs (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2984">#2984</a>).</li>
<li>[feaLib] Be cleverer when merging chained single substitutions into same lookup
when they are specified using the inline notation (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2150">#2150</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2974">#2974</a>).</li>
<li>[instancer] Clamp user-inputted axis ranges to those of fvar (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2959">#2959</a>).</li>
<li>[otBase/subset] Define <code>__getstate__</code> for BaseTable so that a copied/pickled 'lazy'
object gets its own OTTableReader to read from; incidentally fixes a bug while
subsetting COLRv1 table containing ClipBoxes on python 3.11 (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2965">#2965</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2968">#2968</a>).</li>
<li>[sbix] Handle glyphs with "dupe" graphic type on compile correctly (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2963">#2963</a>).</li>
<li>[glyf] <code>endPointsOfContours</code> field should be unsigned! Kudos to behdad for
spotting one of the oldest bugs in FT. Probably nobody has ever dared to make
glyphs with more than 32767 points... (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2957">#2957</a>).</li>
<li>[feaLib] Fixed handling of <code>ignore</code> statements with unmarked glyphs to match
makeotf behavior, which assumes the first glyph is marked (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2950">#2950</a>).</li>
<li>Reformatted code with <code>black</code> and enforce new code style via CI check (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2925">#2925</a>).</li>
<li>[feaLib] Sort name table entries following OT spec prescribed order in the builder (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2927">#2927</a>).</li>
<li>[cu2quPen] Add Cu2QuMultiPen that converts multiple outlines at a time in
interpolation compatible way; its methods take a list of tuples arguments
that would normally be passed to individual segment pens, and at the end it
dispatches the converted outlines to each pen (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2912">#2912</a>).</li>
<li>[reverseContourPen/ttGlyphPen] Add outputImpliedClosingLine option (<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2913">#2913</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2914">#2914</a>,
<a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2921">#2921</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2922">#2922</a>, <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/2995">#2995</a>).</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/fonttools/fonttools/commit/fbc82d9f0a07cc2f59660668cdd0dae75834f367"><code>fbc82d9</code></a> Release 4.39.0</li>
<li><a href="https://github.com/fonttools/fonttools/commit/85e7ad39ee401cc519e8ababbb834d07857bfb82"><code>85e7ad3</code></a> Update changelog</li>
<li><a href="https://github.com/fonttools/fonttools/commit/8ea7e6c7e442561daad779883947c388c16ef5a2"><code>8ea7e6c</code></a> Update changelog [skip ci]</li>
<li><a href="https://github.com/fonttools/fonttools/commit/c24558c57be23a783ef6c380fc9260e1351bb5c0"><code>c24558c</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3018">#3018</a> from fonttools/mtilib-debg</li>
<li><a href="https://github.com/fonttools/fonttools/commit/e0177a99204cc4f4ddfab57d196d1c864dde0d5f"><code>e0177a9</code></a> black</li>
<li><a href="https://github.com/fonttools/fonttools/commit/8d546623d178a218a795de1fc9efdc6f014eece2"><code>8d54662</code></a> update mtiLib expected test files</li>
<li><a href="https://github.com/fonttools/fonttools/commit/e26da961ecbe6463f5a2a151a1588fea4a1e2cb6"><code>e26da96</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/fonttools/fonttools/issues/3020">#3020</a> from fonttools/ttx-stdin</li>
<li><a href="https://github.com/fonttools/fonttools/commit/6c6373a0a47593e76e27d20d65c0f7c309b018a3"><code>6c6373a</code></a> error if no -o option provided when reading input from stdin</li>
<li><a href="https://github.com/fonttools/fonttools/commit/1d6326ea6182036d8c635e6abcdcb3a2e6be305b"><code>1d6326e</code></a> ttx_test: test dumping and compiling from stdin to stdout</li>
<li><a href="https://github.com/fonttools/fonttools/commit/15b450e4a6d684b9ece3c4c87f2aec4851d7f66e"><code>15b450e</code></a> [ttx] support reading font/xml file from standard input as '-'</li>
<li>Additional commits viewable in <a href="https://github.com/fonttools/fonttools/compare/4.33.2...4.39.0">compare view</a></li>
</ul>
</details>
<br />Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.
<details>
<summary>Dependabot commands and options</summary>
<br />You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)</details>
| Assignee | ||
Updated•3 years ago
|
Description
•