Skip to content

Keep document text at its own size when the system font is large - #790

Merged
andiwand merged 1 commit into
mainfrom
fix/text-zoom
Dec 4, 2026
Merged

andiwand merged 1 commit into
mainfrom
fix/text-zoom

Conversation

@andiwand

@andiwand andiwand commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

With a system font size above normal, words in a pdf ran together and text ran off the right edge. WebView's text zoom follows the system font size by default, so it enlarged the text while the layout stayed fixed. PageView now sets textZoom to 100. CSS in the page cannot prevent it.

Side effect: a larger system font no longer enlarges text in any document type. Pinch zoom still works.

Tested on an Android 12 emulator with the font size at 1.15: the reported pdf overlapped before and renders correctly now. The instrumented tests were not run.

The same report had missing Cyrillic and overlapping table text, which are fixed in the core and need a core update here.

@andiwand
andiwand marked this pull request as ready for review December 4, 2026 07:32
@andiwand
andiwand merged commit f3e1ec5 into main Dec 4, 2026
6 of 7 checks passed
@andiwand
andiwand deleted the fix/text-zoom branch December 4, 2026 07:32
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.

1 participant