Skip to content

Apply the appearance-stream scale factor when text is shown, not on setFont#21525

Merged
timvandermeij merged 1 commit into
mozilla:masterfrom
calixteman:20504_skia_followup
Jul 3, 2026
Merged

Apply the appearance-stream scale factor when text is shown, not on setFont#21525
timvandermeij merged 1 commit into
mozilla:masterfrom
calixteman:20504_skia_followup

Conversation

@calixteman

Copy link
Copy Markdown
Contributor

The font size (Tf) and the text matrix (Tm) can appear in any order in an appearance stream. Applying the scale factor eagerly in setFont missed the case where Tf precedes Tm (e.g. Skia-generated FreeText), yielding a wrong guessed font size.

…etFont

The font size (Tf) and the text matrix (Tm) can appear in any order in an
appearance stream. Applying the scale factor eagerly in setFont missed the
case where Tf precedes Tm (e.g. Skia-generated FreeText), yielding a wrong
guessed font size.
@calixteman calixteman requested a review from timvandermeij July 2, 2026 12:58
@codecov-commenter

codecov-commenter commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.38%. Comparing base (43c2937) to head (d9999dc).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21525      +/-   ##
==========================================
- Coverage   89.40%   89.38%   -0.03%     
==========================================
  Files         262      262              
  Lines       66764    66765       +1     
==========================================
- Hits        59692    59678      -14     
- Misses       7072     7087      +15     
Flag Coverage Δ
browsertest 66.52% <100.00%> (-0.02%) ⬇️
fonttest 9.03% <ø> (ø)
integrationtest 68.70% <100.00%> (-0.02%) ⬇️
unittest 57.33% <100.00%> (-0.01%) ⬇️
unittestcli 56.28% <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 Harness.
📢 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.

@timvandermeij timvandermeij merged commit 5b100c4 into mozilla:master Jul 3, 2026
19 of 21 checks passed
@timvandermeij

Copy link
Copy Markdown
Collaborator

Thank you for fixing this!

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.

3 participants