<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
I am winLauncher to debug the svg fonts course. I have to define my script as a string but the svg font is in a seperate file. The glyphs file you mentioned in layouttests/svg/custom is also giving different font than in chrome. I think this is a file location issue, but I cant find a way to resolve it. I have tried copying it into all locations including debug.<br><br><div><br></div>
<div>Saba Taseer</div><br><br><br><br>> Date: Wed, 25 May 2011 16:37:47 -0400<br>> Subject: Re: [webkit-dev] SVG font file location<br>> From: rwlbuis@gmail.com<br>> To: stehseen@hotmail.com<br>> CC: webkit-dev@lists.webkit.org; webkit-help@lists.webkit.org<br>> <br>> Hi Saba,<br>> <br>> On 25 May 2011 16:08, Saba Taseer <stehseen@hotmail.com> wrote:<br>> > I am trying to study SVG fonts rendering in webkit. I followed the<br>> > instructions at http://frabru.de/c.php/article/SVGFonts-usage and got my SVG<br>> > font running for Chrome. I added the same script as a string in winlauncher<br>> > to see the course of events SVG text goes through to render SVG text, but<br>> > the text displays in sans-serif and not in Tomson Talks font. I have<br>> > copied TomsonTalks.svg file in winLauncher folder. I tried giving the<br>> > absolute path to the font file too but it still doesnt work. Please let me<br>> > know where should I put my svg font file for winlauncher application. Here<br>> > is the script I am using<br>> > <?xml version="1.0" encoding="UTF-8"?><br>> > <svg xmlns="http://www.w3.org/2000/svg"<br>> > xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 400 300"><br>> > <defs ><br>> > <font-face font-family="Tomson Talks"><br>> >   <font-face-src><br>> > <font-face-uri xlink:href="TomsonTalks.svg#TomsonTalks"><br>> >     <font-face-format string="svg"/><br>> >    </font-face-uri><br>> >   </font-face-src><br>> >  </font-face><br>> > </defs><br>> >  <text font-family="'Tomson Talks',sans-serif" font-size="25">hello<br>> >   <tspan x="302" y="60" text-anchor="middle">You cause</tspan><br>> >  </text><br>> > </svg><br>> ><br>> > I am not good at scripting, plz help me if I have done smthing wrong in the<br>> > script.<br>> <br>> If TomsonTalks.svg is in the same dir as the listed svg I think it<br>> should work. You can try removing the spaces in the name as well, I<br>> think it looks valid how you did it but maybe there is a bug there.<br>> Finally, as a sanity check you could try<br>> LayoutTests/svg/custom/glyph-transformation-with-hkern.svg as a SVG<br>> font test that should work. If you don't have source checkout you can<br>> get it here:<br>> <br>> http://svn.webkit.org/repository/webkit/trunk/LayoutTests/svg/custom/<br>> Cheers,<br>> <br>> Rob.<br>                                         </body>
</html>