Skip to content
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

mupdf: fixes #1821

Merged
merged 2 commits into from
Jun 13, 2024
Merged

Conversation

benoit-pierre
Copy link
Contributor

@benoit-pierre benoit-pierre commented Jun 12, 2024

Rework external fonts patch to fix second variant of koreader/koreader#11959.

Fix mupdf_fz_resolve_link backward incompatible change when link position cannot be resolved: don't return (NaN, NaN).


This change is Reviewable

Pre-update to 1.24.2, MuPDF would return `(0, 0)` when the position
cannot be resolved, but the new version returns `(NaN, NaN)` instead,
which breaks backward compatibility.
We still need the patch to `fz_new_base14_font` (from 22a6e4f,
dropped in 3f00257) as `fz_encode_character_with_fallback` will
call it as last resort if our fallback (`FreeSerif`) font does not
contain the required character.

Additionally, rework the whole `NOBUILTINFONT` patch: simplify
so the number of stubs can be reduced.
Copy link
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

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

Somewhere in front is also fine by me; I don't know if it needs to be compatible in that way. ^^

@Frenzie Frenzie merged commit f6e72d0 into koreader:master Jun 13, 2024
3 checks passed
@benoit-pierre benoit-pierre deleted the pr/third_time_is_the_charm branch June 13, 2024 19:21
Frenzie pushed a commit to koreader/koreader that referenced this pull request Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants