Skip to content

load system fonts to svg image loader - #113

Open
Fallanger wants to merge 3 commits into
pop-os:masterfrom
Fallanger:master
Open

Fallanger wants to merge 3 commits into
pop-os:masterfrom
Fallanger:master

Conversation

@Fallanger

Copy link
Copy Markdown

Load the system fonts into the usvg.font database, allowing to display the fonts in the svg image. Additionally it changes the fallback font from "Times New Roman" to "Liberation Sans" considering that availability of those fonts in Linux.
Fixes #104

Without changes
image
With fixes
image


  • I have not included any LLM (also known as AI) generated content in this PR, including code, comments, and descriptions.
  • I understand these changes in full and will be able to respond to review comments.
  • My change is accurately described in the commit message.
  • My contribution is tested and working as described.
  • I have read the Developer Certificate of Origin and certify my contribution under its conditions.
  • I have read and followed all of the above requirements. For more information, see our contributor guide.

@mmstick
mmstick requested review from a team November 24, 2026 20:59
Comment thread viewer-core/src/loader.rs Resolved
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.

SVG rendering provides no fallback for missing fonts

2 participants