[webkit-dev] SVG Fonts in webkit

Saba Taseer stehseen at hotmail.com
Tue May 24 15:42:15 PDT 2011


It executes the code in the following #if ENable but the if statement returns false. Thus I presume that SVG_FONTS is enabled. It is instead going to drawSimpleText. #if ENABLE(SVG_FONTS)    if (primaryFont()->isSVGFont()) {        drawTextUsingSVGFont(context, run, point, from, to);        return;    }#endif
    if (codePath(run) != Complex)        return drawSimpleText(context, run, point, from, to);I am running a simple svg script <?xml version="1.0" standalone="yes"?> <svg width="400px" height="300px" version="1.1"  xmlns = 'http://www.w3.org/2000/svg'>   	<text x="100" y="100"  style="font-family: impact, georgia, times, serif;   font-weight: normal; font-style: normal"> 		    Text using web safe font	</text></svg>
Regards,
Saba Taseer



> Date: Tue, 24 May 2011 18:20:51 -0400
> Subject: Re: [webkit-dev] SVG Fonts in webkit
> From: rwlbuis at gmail.com
> To: stehseen at hotmail.com
> CC: webkit-dev at lists.webkit.org; webkit-help at lists.webkit.org
> 
> Hello Saba,
> 
> On 24 May 2011 17:16, Saba Taseer <stehseen at hotmail.com> wrote:
> > I was trying to study fonts rendering in Webkit. I was successfully able to
> > see the path html text tag follows to be drawn in inlinetextbox.cpp. Then I
> > tried to study SVG fonts rendering in webkit, but I didnot reach any of
> > SVGFont element related calls. Can some one please explain how SVG fonts are
> > handled in Webkit? I have ENABLE_SVG switch enabled in my webkit, do I have
> > to enable SVG fonts seperately?
> 
> You can find the code by grepping in Source/WebCore for SVG_FONTS.
> AFAIK it is disabled when SVG is enabled. Hope that helps!
> Cheers,
> 
> Rob.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20110524/02135e68/attachment.html>


More information about the webkit-dev mailing list