Skip to content

Run convert_text on svg trees so text renders correctly#1908

Merged
hecrj merged 1 commit intoiced-rs:masterfrom
alec-deason:bug/convert_text
Nov 11, 2023
Merged

Run convert_text on svg trees so text renders correctly#1908
hecrj merged 1 commit intoiced-rs:masterfrom
alec-deason:bug/convert_text

Conversation

@alec-deason
Copy link
Contributor

@alec-deason alec-deason commented Jun 10, 2023

Resvg will not render text unless .convert_text has been run on the tree first. This PR does that. This takes one approach to sharing the font database between the text pipeline and the vector pipeline but I'm open to alternatives.

Fixes #870.

@alec-deason alec-deason marked this pull request as ready for review July 12, 2023 20:45
@hecrj hecrj added bug Something isn't working rendering svg labels Jul 12, 2023
@hecrj hecrj added this to the 0.10.0 milestone Jul 12, 2023
@hecrj hecrj modified the milestones: 0.10.0, 0.11.0 Jul 28, 2023
@hecrj hecrj added the fix label Nov 11, 2023
`tiny-skia` does not support text rendering, so we
convert the text nodes to path nodes prior to that.
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Rebased on top of master. Thanks! 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fix rendering svg

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invisible text in svgs after updating to 0.3.0

2 participants

Comments