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: [email protected]
> To: [email protected]
> CC: [email protected]; [email protected]
>
> Hello Saba,
>
> On 24 May 2011 17:16, Saba Taseer <[email protected]> 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.
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev