Bug 14242 - SVG <text> with font-size smaller or equal to 1 does not paint correctly
Summary: SVG <text> with font-size smaller or equal to 1 does not paint correctly
Status: RESOLVED DUPLICATE of bug 12448
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-20 13:19 PDT by Jean-Pierre Fiset
Modified: 2011-02-01 04:02 PST (History)
7 users (show)

See Also:


Attachments
Test Case (1.21 KB, image/svg+xml)
2007-06-20 13:20 PDT, Jean-Pierre Fiset
no flags Details
SVG incorrectly renders huge text (5.65 KB, image/svg+xml)
2008-12-28 09:08 PST, Ken Nellis
no flags Details
svg file, with rendering problems (1.02 KB, image/svg+xml)
2010-04-17 11:37 PDT, Edoardo Panfili
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Pierre Fiset 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.
Comment 1 Jean-Pierre Fiset 2007-06-20 13:20:57 PDT
Created attachment 15144 [details]
Test Case
Comment 2 Mark Hubbart 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.
Comment 3 mitz 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).
Comment 4 Ken Nellis 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.
Comment 5 Edoardo Panfili 2010-04-17 11:37:44 PDT
Created attachment 53602 [details]
svg file, with rendering problems
Comment 6 Edoardo Panfili 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)
Comment 7 Nikolas Zimmermann 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 ***