Summary: | Tiny fonts scaled up end up too large in Safari | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Larry Baker <baker> | ||||
Component: | SVG | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED DUPLICATE | ||||||
Severity: | Normal | CC: | baker, jeroendelcour, mitz, pdr, zimmermann | ||||
Priority: | P3 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.4 | ||||||
Attachments: |
|
Description
Larry Baker
2008-07-27 22:36:00 PDT
Can you please attach the SVG file to the bug report rather than pasting it into a comment? Created attachment 22518 [details] SVG test plot SVG test plot (plot.svg) fails to render text properly in either Safari Version 3.1.2 (4525.22) or WebKit latest nightly build r35401 Version 3.1.2 (4525.22) (SAME AS SAFARI???). The file renders fine using Mozilla FireFox Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1. Probably some sort of rounding issue. I don't think this should be affected by the minimum font size scaling preference (especially since I have mine off). I think this is the bug where font sizes under 0.5 get rounded to 0, and AppKit replaces font size 0 with 12. (In reply to comment #4) > I think this is the bug where font sizes under 0.5 get rounded to 0, and AppKit > replaces font size 0 with 12. > Except that these are not "tiny" fonts (someone changed the Summary on me). Unit-less font sizes are measured in user coordinate space, which, in this case, can be thought of as inches (the viewBox sets up the user coordinate space for a landscape plot, 11 X 8.5). So, these fonts should render roughly 1/4 inch high, which they do in Firefox. See "font-size=<length>" in SVG 1.1: For SVG, if a <length> is provided without a unit identifier (e.g., an unqualified number such as 128), the SVG user agent processes the <length> as a height value in the current user coordinate system. It is as though the user coordinate space is either being ignored in this case, or not being correctly inherited. CG must have some minimum size threshold that we're exceeding here. Or maybe there is some other bug. 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 *** Unfortunately, this bug needs to be reopened. Simply view the original attachment. Unfortunately, this bug needs to be reopened. Simply view the original attachment to reproduce. (In reply to comment #10) > Unfortunately, this bug needs to be reopened. Simply view the original attachment to reproduce. @Jason, this looks fine to me in Webkit nightly and Safari. Please file a new bug if you are still hitting an issue here. |