Closed GoogleCodeExporter closed 8 years ago
I should have noted that the problem is with native fonts, not SVG fonts.
Original comment by k...@svgmaker.com
on 11 Dec 2009 at 7:16
After some searching it appears that there is a limit to the value which can be
assigned to TextFormat.size (127). I made the attached patch as a workaround
to
this apparent limit.
Essentially, in SVGTextNode.setAttributes(), set textFormat.size to a nominal
value
(I chose 72.0). Do all the positioning calculations based on the nominal
value, then
later scale the _textField by the amount fontSizeNum/72.0. Some repositioning
of
_textField.x and y is also required.
This patch appears to also fix the problem with Issue 264: Text with fractional
font-size not displayed.
Original comment by k...@svgmaker.com
on 11 Dec 2009 at 7:29
Attachments:
Patch integrated from Issue 405 in r1048.
Original comment by grick23@gmail.com
on 27 Feb 2010 at 11:01
Original issue reported on code.google.com by
k...@svgmaker.com
on 11 Dec 2009 at 6:55Attachments: