Closed Bug 1822943 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 39044 - Bump fonttools from 4.33.2 to 4.39.2 in /tools

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 39044 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/39044
Details from upstream follow.

dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> wrote:

Bump fonttools from 4.33.2 to 4.39.2 in /tools

Bumps fonttools from 4.33.2 to 4.39.2.
<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.2</h2>
<ul>
<li>[varLib] Fixed regression introduced in 4.39.1 whereby an incomplete 'STAT' table would be built even though a DesignSpace v5 did contain 'STAT' definitions (<a href="https://redirect.github.com/fonttools/fonttools/issues/3045">#3045</a>, <a href="https://redirect.github.com/fonttools/fonttools/issues/3046">#3046</a>).</li>
</ul>
<p><strong>NOTE</strong>: The 4.39.1 distribution was "yanked" from PyPI to prevent users from accidentally upgrading to it.</p>
<h2>4.39.1</h2>
<ul>
<li>[avar2] Added experimental support for reading/writing avar version 2 as specified in this draft proposal:
<a href="https://github.com/harfbuzz/boring-expansion-spec/blob/main/avar2.md">https://github.com/harfbuzz/boring-expansion-spec/blob/main/avar2.md</a></li>
<li>[glifLib] Wrap underlying XML library exceptions with GlifLibError when parsing GLIFs, and also print the name and path of the glyph that fails to be parsed (<a href="https://redirect.github.com/fonttools/fonttools/pull/3029">fonttools/fonttools#3029</a>).</li>
<li>[feaLib] Consult avar for normalizing user-space values in ConditionSets and in VariableScalars (<a href="https://redirect.github.com/fonttools/fonttools/pull/3042">fonttools/fonttools#3042</a>, <a href="https://redirect.github.com/fonttools/fonttools/pull/3043">fonttools/fonttools#3043</a>).</li>
<li>[ttProgram] Handle string input to Program.fromAssembly() (<a href="https://redirect.github.com/fonttools/fonttools/pull/3038">fonttools/fonttools#3038</a>).</li>
<li>[otlLib] Added a config option to emit GPOS 7 lookups, currently disabled by default because of a macOS bug (<a href="https://redirect.github.com/fonttools/fonttools/pull/3034">fonttools/fonttools#3034</a>).</li>
<li>[COLRv1] Added method to automatically compute ClipBoxes (<a href="https://redirect.github.com/fonttools/fonttools/pull/3027">fonttools/fonttools#3027</a>).</li>
<li>[ttFont] Fixed getGlyphID to raise KeyError on missing glyphs instead of returning None. The regression was introduced in v4.27.0 (<a href="https://redirect.github.com/fonttools/fonttools/pull/3032">fonttools/fonttools#3032</a>).</li>
<li>[sbix] Fixed UnboundLocalError: cannot access local variable 'rawdata' (<a href="https://redirect.github.com/fonttools/fonttools/pull/3031">fonttools/fonttools#3031</a>).</li>
<li>[varLib] When building VF, do not overwrite a pre-existing <code>STAT</code> table that was built with feaLib from FEA feature file. Also, added support for building multiple VFs defined in Designspace v5 from <code>fonttools varLib</code> script (<a href="https://redirect.github.com/fonttools/fonttools/pull/3024">fonttools/fonttools#3024</a>).</li>
<li>[mtiLib] Only add <code>Debg</code> table with lookup names when <code>FONTTOOLS_LOOKUP_DEBUGGING</code> env variable is set (<a href="https://redirect.github.com/fonttools/fonttools/pull/3023">fonttools/fonttools#3023</a>).</li>
</ul>
<h2>4.39.0</h2>
<ul>
<li>[mtiLib] Optionally add <code>Debg</code> debug info for MTI feature builds (<a href="https://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.com/fonttools/fonttools/issues/3006">#3006</a>).</li>
<li>[featureVars] Fixed bug in <code>overlayBox</code> (<a href="https://redirect.github.com/fonttools/fonttools/issues/3003">#3003</a>, <a href="https://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.com/fonttools/fonttools/issues/2150">#2150</a>, <a href="https://redirect.github.com/fonttools/fonttools/issues/2974">#2974</a>).</li>
<li>[instancer] Clamp user-inputted axis ranges to those of fvar (<a href="https://redirect.github.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://redirect.github.com/fonttools/fonttools/issues/2965">#2965</a>, <a href="https://redirect.github.com/fonttools/fonttools/issues/2968">#2968</a>).</li>
<li>[sbix] Handle glyphs with "dupe" graphic type on compile correctly (<a href="https://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.com/fonttools/fonttools/issues/2912">#2912</a>).</li>
<li>[reverseContourPen/ttGlyphPen] Add outputImpliedClosingLine option (<a href="https://redirect.github.com/fonttools/fonttools/issues/2913">#2913</a>, <a href="https://redirect.github.com/fonttools/fonttools/issues/2914">#2914</a>, <a href="https://redirect.github.com/fonttools/fonttools/issues/2921">#2921</a>, <a href="https://redirect.github.com/fonttools/fonttools/issues/2922">#2922</a>, <a href="https://redirect.github.com/fonttools/fonttools/issues/2995">#2995</a>).</li>
<li>[gvar] Avoid expanding all glyphs unnecessarily upon compile (<a href="https://redirect.github.com/fonttools/fonttools/issues/2918">#2918</a>).</li>
<li>[scaleUpem] Fixed bug whereby CFF2 vsindex was scaled; it should not (<a href="https://redirect.github.com/fonttools/fonttools/issues/2893">#2893</a>, <a href="https://redirect.github.com/fonttools/fonttools/issues/2894">#2894</a>).</li>
<li>[designspaceLib] Add DS.getAxisByTag and refactor getAxis (<a href="https://redirect.github.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://redirect.github.com/fonttools/fonttools/issues/1737">#1737</a>, <a href="https://redirect.github.com/fonttools/fonttools/issues/2889">#2889</a>).</li>
<li>[woff2] Support encoding/decoding OVERLAP_SIMPLE glyf flags (<a href="https://redirect.github.com/fonttools/fonttools/issues/2576">#2576</a>, <a href="https://redirect.github.com/fonttools/fonttools/issues/2884">#2884</a>).</li>
</ul>
<!-- 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.2 (released 2023-03-16)</h2>
<ul>
<li>[varLib] Fixed regression introduced in 4.39.1 whereby an incomplete 'STAT' table
would be built even though a DesignSpace v5 did contain 'STAT' definitions (<a href="https://redirect.github.com/fonttools/fonttools/issues/3045">#3045</a>, <a href="https://redirect.github.com/fonttools/fonttools/issues/3046">#3046</a>).</li>
</ul>
<h2>4.39.1 (released 2023-03-16)</h2>
<ul>
<li>[avar2] Added experimental support for reading/writing avar version 2 as specified in
this draft proposal: <a href="https://github.com/harfbuzz/boring-expansion-spec/blob/main/avar2.md">https://github.com/harfbuzz/boring-expansion-spec/blob/main/avar2.md</a></li>
<li>[glifLib] Wrap underlying XML library exceptions with GlifLibError when parsing GLIFs,
and also print the name and path of the glyph that fails to be parsed (<a href="https://redirect.github.com/fonttools/fonttools/issues/3042">#3042</a>).</li>
<li>[feaLib] Consult avar for normalizing user-space values in ConditionSets and in
VariableScalars (<a href="https://redirect.github.com/fonttools/fonttools/issues/3042">#3042</a>, <a href="https://redirect.github.com/fonttools/fonttools/issues/3043">#3043</a>).</li>
<li>[ttProgram] Handle string input to Program.fromAssembly() (<a href="https://redirect.github.com/fonttools/fonttools/issues/3038">#3038</a>).</li>
<li>[otlLib] Added a config option to emit GPOS 7 lookups, currently disabled by default
because of a macOS bug (<a href="https://redirect.github.com/fonttools/fonttools/issues/3034">#3034</a>).</li>
<li>[COLRv1] Added method to automatically compute ClipBoxes (<a href="https://redirect.github.com/fonttools/fonttools/issues/3027">#3027</a>).</li>
<li>[ttFont] Fixed getGlyphID to raise KeyError on missing glyphs instead of returning
None. The regression was introduced in v4.27.0 (<a href="https://redirect.github.com/fonttools/fonttools/issues/3032">#3032</a>).</li>
<li>[sbix] Fixed UnboundLocalError: cannot access local variable 'rawdata' (<a href="https://redirect.github.com/fonttools/fonttools/issues/3031">#3031</a>).</li>
<li>[varLib] When building VF, do not overwrite a pre-existing <code>STAT</code> table that was built
with feaLib from FEA feature file. Also, added support for building multiple VFs
defined in Designspace v5 from <code>fonttools varLib</code> script (<a href="https://redirect.github.com/fonttools/fonttools/issues/3024">#3024</a>).</li>
<li>[mtiLib] Only add <code>Debg</code> table with lookup names when <code>FONTTOOLS_LOOKUP_DEBUGGING</code>
env variable is set (<a href="https://redirect.github.com/fonttools/fonttools/issues/3023">#3023</a>).</li>
</ul>
<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://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.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://redirect.github.com/fonttools/fonttools/issues/3006">#3006</a>).</li>
<li>[featureVars] Fixed bug in <code>overlayBox</code> (<a href="https://redirect.github.com/fonttools/fonttools/issues/3003">#3003</a>, <a href="https://redirect.github.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://redirect.github.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://redirect.github.com/fonttools/fonttools/issues/2993">#2993</a>).</li>
<li>[glyf] Added experimental support for reading and writing Variable Composites/Components</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/fonttools/fonttools/commit/d64a26f7efd1c541cf3b4d9ee3c67dfbfeba69b6"><code>d64a26f</code></a> Release 4.39.2</li>
<li><a href="https://github.com/fonttools/fonttools/commit/809748cd1846e0db87531bf98f7acb8060fed8f1"><code>809748c</code></a> Update changelog [skip ci]</li>
<li><a href="https://github.com/fonttools/fonttools/commit/6fabdff727d135d111c3a4086719ff0e7c52382c"><code>6fabdff</code></a> Merge pull request <a href="https://redirect.github.com/fonttools/fonttools/issues/3046">#3046</a> from fonttools/fix-stat-regression</li>
<li><a href="https://github.com/fonttools/fonttools/commit/cf4a24182ee1c32f791464675ceb2b51816d0f1b"><code>cf4a241</code></a> [varLib] don't skip buildVFStatTable from DSv5 with 'STAT' info</li>
<li><a href="https://github.com/fonttools/fonttools/commit/1216596825f03aca6a2a3699648941a4d4cb4370"><code>1216596</code></a> Bump version: 4.39.1 → 4.39.2.dev0</li>
<li><a href="https://github.com/fonttools/fonttools/commit/199e2c2c6aac58b102b057952e96e607b91d0416"><code>199e2c2</code></a> Release 4.39.1</li>
<li><a href="https://github.com/fonttools/fonttools/commit/b2d19dcf73ca1c0cffda22ae0d106f329ce7519f"><code>b2d19dc</code></a> Update changelog</li>
<li><a href="https://github.com/fonttools/fonttools/commit/7d7b38b769f0105493d3255333b0751322b39f0a"><code>7d7b38b</code></a> [ci] set codecov's fail_ci_if_error: false; it's too flaky!</li>
<li><a href="https://github.com/fonttools/fonttools/commit/5abdd83318f4fa9ca55c5358f4699d4966072839"><code>5abdd83</code></a> Merge pull request <a href="https://redirect.github.com/fonttools/fonttools/issues/3043">#3043</a> from fonttools/fealib-more-avar</li>
<li><a href="https://github.com/fonttools/fonttools/commit/69b1752d806575a39b9ffb25e448bf818159f5a9"><code>69b1752</code></a> variableScalar: make model_cache parameter optional</li>
<li>Additional commits viewable in <a href="https://github.com/fonttools/fonttools/compare/4.33.2...4.39.2">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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
PR 39044 applied with additional changes from upstream: 3426f51fe3ae9913062b02c90338baac1e8cace7
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → INVALID
Whiteboard: [wptsync downstream error] → [wptsync downstream]
You need to log in before you can comment on or make changes to this bug.