RESOLVED DUPLICATE of bug 12448 14242
SVG <text> with font-size smaller or equal to 1 does not paint correctly
https://bugs.webkit.org/show_bug.cgi?id=14242
Summary SVG <text> with font-size smaller or equal to 1 does not paint correctly
Jean-Pierre Fiset
Reported 2007-06-20 13:19:56 PDT
Text element in SVG are not rendered correctly when the font-size is smaller than or equal to 1, regardless if coordinate transformations make it equivalent to large font size. This might be related to Bug 12172.
Attachments
Test Case (1.21 KB, image/svg+xml)
2007-06-20 13:20 PDT, Jean-Pierre Fiset
no flags
SVG incorrectly renders huge text (5.65 KB, image/svg+xml)
2008-12-28 09:08 PST, Ken Nellis
no flags
svg file, with rendering problems (1.02 KB, image/svg+xml)
2010-04-17 11:37 PDT, Edoardo Panfili
no flags
Jean-Pierre Fiset
Comment 1 2007-06-20 13:20:57 PDT
Created attachment 15144 [details] Test Case
Mark Hubbart
Comment 2 2007-07-20 01:54:11 PDT
(In reply to comment #0) > Text element in SVG are not rendered correctly when the font-size is smaller > than or equal to 1, regardless if coordinate transformations make it equivalent > to large font size. > > This might be related to Bug 12172. It looks like only integer point values are allowed for font-size in SVG, regardless of how a later transformation might change the actual display size. See also bug 12448. The test case there could also be a test case for this bug.
mitz
Comment 3 2007-07-20 09:00:34 PDT
I think this might be 0.5px being rounded to 0, which AppKit maps to 12 (see bug 13891 comment #5 and below).
Ken Nellis
Comment 4 2008-12-28 09:08:55 PST
Created attachment 26281 [details] SVG incorrectly renders huge text The rendered text should fit cleanly in each grid cell, but you can see it does not. Firefox renders correctly.
Edoardo Panfili
Comment 5 2010-04-17 11:37:44 PDT
Created attachment 53602 [details] svg file, with rendering problems
Edoardo Panfili
Comment 6 2010-04-17 11:39:52 PDT
I hope that the test-case can be useful webkit: wrong rendering of text, Firefox and opera correct rendering, Illustrator does not render the text. the rendering problem persist with version 4.0.5 (6531.22.7, r57720)
Nikolas Zimmermann
Comment 7 2011-02-01 04:02:33 PST
The patch on bug 12448 fixes this problem. Thanks a lot for the testcase, I've integrated it in my patch. *** This bug has been marked as a duplicate of bug 12448 ***
Note You need to log in before you can comment on or make changes to this bug.