Skip to content

Clamp out-of-range BlueScale to Adobe's valid window#21343

Merged
calixteman merged 1 commit into
mozilla:masterfrom
calixteman:issue9437
May 29, 2026
Merged

Clamp out-of-range BlueScale to Adobe's valid window#21343
calixteman merged 1 commit into
mozilla:masterfrom
calixteman:issue9437

Conversation

@calixteman
Copy link
Copy Markdown
Contributor

Fonts that ship a BlueScale outside the range AFDKO considers valid for their zone heights (0.5/maxZoneHeight <= BlueScale <= 1/maxZoneHeight) cause Firefox's CFF rasterizer to misalign overshooting glyphs against flat-topped ones at body sizes.
Clamp into that window, only apply the lower clamp when BlueScale is also smaller than the default, so foundry fonts that pair the default 0.039625 with small zones are untouched.

Fixes #9437.

Fonts that ship a BlueScale outside the range AFDKO considers valid
for their zone heights (0.5/maxZoneHeight <= BlueScale <= 1/maxZoneHeight)
cause Firefox's CFF rasterizer to misalign overshooting glyphs against
flat-topped ones at body sizes.
Clamp into that window, only apply the lower clamp when BlueScale is
also smaller than the default, so foundry fonts that pair the default
0.039625 with small zones are untouched.

Fixes mozilla#9437.
@calixteman calixteman requested a review from timvandermeij May 26, 2026 19:26
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.43%. Comparing base (e766198) to head (385b1ca).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21343      +/-   ##
==========================================
+ Coverage   81.40%   81.43%   +0.02%     
==========================================
  Files         257      257              
  Lines       65351    65365      +14     
==========================================
+ Hits        53198    53228      +30     
+ Misses      12153    12137      -16     
Flag Coverage Δ
fonttest 9.10% <0.00%> (-0.01%) ⬇️
integrationtest 67.01% <100.00%> (+0.02%) ⬆️
unittest 56.88% <100.00%> (+<0.01%) ⬆️
unittestcli 56.08% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@timvandermeij timvandermeij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r= me, with passing reference tests. Thank you!

@calixteman
Copy link
Copy Markdown
Contributor Author

/botio browsertest

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_browsertest from @calixteman received. Current queue size: 1

Live output at: http://54.241.84.105:8877/479687568c466f1/output.txt

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Received

Command cmd_browsertest from @calixteman received. Current queue size: 1

Live output at: http://54.193.163.58:8877/281c741ac215b42/output.txt

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/479687568c466f1/output.txt

Total script time: 18.34 mins

  • Regression tests: FAILED
  different ref/snapshot: 1

Image differences available at: http://54.241.84.105:8877/479687568c466f1/reftest-analyzer.html#web=eq.log

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/281c741ac215b42/output.txt

Total script time: 25.55 mins

  • Regression tests: FAILED
  errors: 5

Image differences available at: http://54.193.163.58:8877/281c741ac215b42/reftest-analyzer.html#web=eq.log

@calixteman
Copy link
Copy Markdown
Contributor Author

/botio-windows browsertest

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Received

Command cmd_browsertest from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/eaf88277c3117c5/output.txt

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/eaf88277c3117c5/output.txt

Total script time: 24.99 mins

  • Regression tests: Passed

@calixteman calixteman merged commit c7a32c3 into mozilla:master May 29, 2026
21 of 22 checks passed
@calixteman
Copy link
Copy Markdown
Contributor Author

/botio makeref

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/b80e3293031365f/output.txt

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Received

Command cmd_makeref from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/e7ffa60bdff6040/output.txt

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/b80e3293031365f/output.txt

Total script time: 18.33 mins

  • Make references: Passed
  • Check references: Passed

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/e7ffa60bdff6040/output.txt

Total script time: 24.84 mins

  • Make references: Passed
  • Check references: Passed

@calixteman calixteman deleted the issue9437 branch May 29, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Undulating text

4 participants