[webkit-help] SVG font file load in resource loader
Saba Taseer
stehseen at hotmail.com
Sat May 28 15:20:51 PDT 2011
I want to reach the point during svg script execution where svg font is being loaded into the cache. I followed the DOM tree building and reached the function loadfont in SVGFontfaceUriElement and then in beginLoadifNeeded in CacheFont, but I am missing the step when the svg font file is opened and read. Can someone please pin point the location. I want to understand the data structure in which the svg font file is saved after reading. Any help would be greatly appreciated
Sample script is
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 400 300"><defs ><font-face font-family="Tomson Talks"> <font-face-src><font-face-uri xlink:href="TomsonTalks.svg#TomsonTalks"> <font-face-format string="svg"/> </font-face-uri> </font-face-src> </font-face></defs> <text font-family="'Tomson Talks',sans-serif" font-size="25">hello <tspan x="302" y="60" text-anchor="middle">You cause</tspan> </text></svg>
Regards,Saba Taseer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20110528/1250cbaf/attachment.html>
More information about the webkit-help
mailing list