Skip to content

Reduce duplication in the type1FontGlyphMapping function - #22104

Merged
timvandermeij merged 1 commit into
mozilla:masterfrom
Snuffleupagus:type1FontGlyphMapping-reduce-duplication
Oct 8, 2026
Merged

timvandermeij merged 1 commit into
mozilla:masterfrom
Snuffleupagus:type1FontGlyphMapping-reduce-duplication

Conversation

@Snuffleupagus

Copy link
Copy Markdown
Collaborator

Currently the same exact code is duplicated three times, which seems completely unnecessary, however that can be avoided with the introduction of a new helper function.

Currently the same exact code is duplicated three times, which seems completely unnecessary, however that can be avoided with the introduction of a new helper function.
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Reference tests

Results for e3b563d (run, references from mozilla/pdf.js.refs@cfb07bcc7a).

Platform Status Tests Total runtime Errors Different FBF No reference Report
Linux ✅ 1382 12m 10s 0 0 0 0
Windows ⚠️ 1382 16m 34s 0 14 0 0 view differences

The report is kept for 30 days and replaced by the next run.

Problems on Linux
TEST-UNEXPECTED-FAIL | test failed issue16114-partial | in firefox-0 | page1 round 1 | Optimized rendering differs from full rendering.
Problems on Windows
TEST-UNEXPECTED-FAIL | test failed issue16114-partial | in firefox-1 | page1 round 1 | Optimized rendering differs from full rendering.

@codecov-commenter

codecov-commenter commented Oct 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.22%. Comparing base (89b500f) to head (e3b563d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #22104   +/-   ##
=======================================
  Coverage   90.21%   90.22%           
=======================================
  Files         275      275           
  Lines       67838    67834    -4     
=======================================
+ Hits        61202    61203    +1     
+ Misses       6636     6631    -5     
Flag Coverage Δ
browsertest 66.18% <100.00%> (+0.02%) ⬆️
fonttest 8.98% <0.00%> (+<0.01%) ⬆️
integrationtest 70.02% <91.66%> (-0.01%) ⬇️
unittest 59.90% <100.00%> (-0.03%) ⬇️
unittestcli 58.30% <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.

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Viewer preview

🗑️ Viewer previews removed.

sync-pdfs-for-pdf-js Bot pushed a commit to mozilla/pdf.js.refs that referenced this pull request Oct 7, 2026
sync-pdfs-for-pdf-js Bot pushed a commit to mozilla/pdf.js.refs that referenced this pull request Oct 7, 2026
@timvandermeij
timvandermeij merged commit f5e56f0 into mozilla:master Oct 8, 2026
34 checks passed
@timvandermeij

Copy link
Copy Markdown
Collaborator

Thank you for deduplicating this!

sync-pdfs-for-pdf-js Bot pushed a commit to mozilla/pdf.js.refs that referenced this pull request Oct 8, 2026
@Snuffleupagus
Snuffleupagus deleted the type1FontGlyphMapping-reduce-duplication branch October 8, 2026 22:31

This branch was successfully deployed

1 active deployment
sync_pdfs — e3b563d2 Deployed Oct 7, 2026 by Snuffleupagus via request #318
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