[Webkit-unassigned] [Bug 17541] New: SVG font support gets wrong metrics by querying 'font' instead of 'font-face' element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 25 15:37:19 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=17541

           Summary: SVG font support gets wrong metrics by querying 'font'
                    instead of 'font-face' element
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Text
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mark.a at apple.com


WebKit isn't getting the right metrics for SVG fonts because it is falling back
on default metrics when reading correct SVG font definitions with those metrics
supplied.

Looking at SVGFontFaceElement::ascent() and SVGFontFaceElement::descent(), the
code is attempting to query the 'font' element, when according to the specs
here:
http://www.w3.org/TR/SVG/fonts.html#FontElement
http://www.w3.org/TR/SVG/fonts.html#FontFaceElement
the 'ascent' and 'descent' attributes should be defined on the font-face
element.

This is using code checked out from SVN 2008/02/25.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list