Skip to content

Conversation

@ahausladen
Copy link
Contributor

The unit type "em" for the font-size was read as pixels instead of being a scale factor for the parent font-size. This PR keeps the raw font-size value and the unit type in the element.fDrawInfo.fontInfo record. The UpdateFontInfo() method converts it to pixels for the actual "drawDat".

Original SVG:
TextSizeUnitEm

Without the patch (png):
TextSizeUnitEm

With the patch (png):
TextSizeUnitEm

The unit type "em" for the font-size was read as pixels instead of being a scale factor for the parent font-size. This patch keeps the raw font-size value and the unit type in the element.fDrawInfo.fontInfo record. The UpdateFontInfo() method converts it to pixels for the actual "drawDat".
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