Skip to content

Support Type3 fonts with an incomplete /FontDescriptor dictionary (issue 19954) #19955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 19, 2025

Conversation

Snuffleupagus
Copy link
Collaborator

We have a fallback for the common case of Type3 fonts without a /FontDescriptor dictionary, however we also need to handle the case where it's present but lacking the required /FontName entry.

…sue 19954)

We have a fallback for the common case of Type3 fonts without a /FontDescriptor dictionary, however we also need to handle the case where it's present but lacking the required /FontName entry.
@nicolo-ribaudo
Copy link
Contributor

Ok well this matches exactly what I was thinking about :) I was however also removing the descriptor.set("FontName", ...) in the "barebones descriptor", since it's not needed anymore now that we have this extra fallback here.

@Snuffleupagus
Copy link
Collaborator Author

Ok well this matches exactly what I was thinking about :) I was however also removing the descriptor.set("FontName", ...) in the "barebones descriptor", since it's not needed anymore now that we have this extra fallback here.

We might actually be able to simplify things even more here, unless I'm overlooking something obvious.

@Snuffleupagus Snuffleupagus marked this pull request as draft May 19, 2025 11:20
@mozilla mozilla deleted a comment from moz-tools-bot May 19, 2025
@mozilla mozilla deleted a comment from moz-tools-bot May 19, 2025
@mozilla mozilla deleted a comment from moz-tools-bot May 19, 2025
@mozilla mozilla deleted a comment from moz-tools-bot May 19, 2025
@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@mozilla mozilla deleted a comment from moz-tools-bot May 19, 2025
@mozilla mozilla deleted a comment from moz-tools-bot May 19, 2025
@mozilla mozilla deleted a comment from moz-tools-bot May 19, 2025
@mozilla mozilla deleted a comment from moz-tools-bot May 19, 2025
@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/8dc3fe3ba8f98e4/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/79f862156c6d4a7/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/8dc3fe3ba8f98e4/output.txt

Total script time: 30.13 mins

  • Unit tests: FAILED
  • Integration Tests: FAILED
  • Regression tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/79f862156c6d4a7/output.txt

Total script time: 56.84 mins

  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: Passed

@Snuffleupagus Snuffleupagus marked this pull request as ready for review May 19, 2025 13:24
Part of this is very old code, which we can now simplify a little bit.
@Snuffleupagus
Copy link
Collaborator Author

/botio browsertest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/727ef8e95a44a47/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/727ef8e95a44a47/output.txt

Total script time: 25.58 mins

  • Regression tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

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

Total script time: 16.12 mins

  • Regression tests: Passed

@Snuffleupagus Snuffleupagus requested a review from calixteman May 19, 2025 13:54
Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you.

@Snuffleupagus Snuffleupagus merged commit 36b40d9 into mozilla:master May 19, 2025
9 checks passed
@Snuffleupagus
Copy link
Collaborator Author

/botio makeref

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/2001c6742065a4c/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

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

Total script time: 16.04 mins

  • Make references: Passed
  • Check references: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/2001c6742065a4c/output.txt

Total script time: 25.19 mins

  • Make references: Passed
  • Check references: Passed

@Snuffleupagus Snuffleupagus deleted the issue-19954 branch May 19, 2025 15:52
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.

[Bug]: Missing text later in PDF with probably broken font
4 participants