[webkit-dev] SVG access for native application
I am building a graphics application and want to use SVG for drawing curves and ellipses. As I am short of time, I dont want to implement SVG, or communicate to the underlying graphics hardware on any platform. I want to use SVG library in webkit for my native graphics app but I cant find a place to hook in my code. Is it possible to access SVG library in webkit from my native app? If yes how can I use it. Regards, Saba Taseer ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] SVG font file location
I am trying to study SVG fonts rendering in webkit. I followed the instructions at http://frabru.de/c.php/article/SVGFonts-usage and got my SVG font running for Chrome. I added the same script as a string in winlauncher to see the course of events SVG text goes through to render SVG text, but the text displays in sans-serif and not in Tomson Talks font. I have copied TomsonTalks.svg file in winLauncher folder. I tried giving the absolute path to the font file too but it still doesnt work. Please let me know where should I put my svg font file for winlauncher application. Here is the script I am using ?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 300defs font-face font-family=Tomson Talks font-face-srcfont-face-uri xlink:href=TomsonTalks.svg#TomsonTalksfont-face-format string=svg/ /font-face-uri /font-face-src /font-face/defs text font-family='Tomson Talks',sans-serif font-size=25hello tspan x=302 y=60 text-anchor=middleYou cause/tspan /text/svg I am not good at scripting, plz help me if I have done smthing wrong in the script. Saba Taseer ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] SVG font file location
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. Saba Taseer Date: Wed, 25 May 2011 16:37:47 -0400 Subject: Re: [webkit-dev] SVG font file location From: rwlb...@gmail.com To: stehs...@hotmail.com CC: webkit-dev@lists.webkit.org; webkit-h...@lists.webkit.org Hi Saba, On 25 May 2011 16:08, Saba Taseer stehs...@hotmail.com wrote: I am trying to study SVG fonts rendering in webkit. I followed the instructions at http://frabru.de/c.php/article/SVGFonts-usage and got my SVG font running for Chrome. I added the same script as a string in winlauncher to see the course of events SVG text goes through to render SVG text, but the text displays in sans-serif and not in Tomson Talks font. I have copied TomsonTalks.svg file in winLauncher folder. I tried giving the absolute path to the font file too but it still doesnt work. Please let me know where should I put my svg font file for winlauncher application. Here is the script I am using ?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=25hello tspan x=302 y=60 text-anchor=middleYou cause/tspan /text /svg I am not good at scripting, plz help me if I have done smthing wrong in the script. If TomsonTalks.svg is in the same dir as the listed svg I think it should work. You can try removing the spaces in the name as well, I think it looks valid how you did it but maybe there is a bug there. Finally, as a sanity check you could try LayoutTests/svg/custom/glyph-transformation-with-hkern.svg as a SVG font test that should work. If you don't have source checkout you can get it here: http://svn.webkit.org/repository/webkit/trunk/LayoutTests/svg/custom/ Cheers, Rob. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] SVG Fonts in webkit
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: rwlb...@gmail.com To: stehs...@hotmail.com CC: webkit-dev@lists.webkit.org; webkit-h...@lists.webkit.org Hello Saba, On 24 May 2011 17:16, Saba Taseer stehs...@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. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] webkit vs webkit 2 , svg functionality
Hi Everyone,I am new to webkit and trying to understand its api and processes. I have been experimenting with winlaumcher and mini browser projects on windows. I tried to load an svg circle from winlauncher and I was able to trace a call to svg circle element :: create function. Then I moved to mini browser. I wrote the circle code in a file and wrote its url in the minibrowser window. I couldnot trace a call to svg circle elelent :: create function. The code in the svg file was : ?xml version=1.0 standalone=no?!DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.1//EN http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd; svg width=100% height=100% version=1.1 xmlns=http://www.w3.org/2000/svg; circle cx=100 cy=50 r=40 stroke=black stroke-width=2 fill=red//svg I am confused now and want to know what is the main difference between the two projects. One idea is that minibrowser is using webkit2 instead of webkit. Even if that is the case, I think svg call should still be there if the main difference between webkit2 and webkit is only of the processes. I would be glad if some one would clear this issue. Regards, Saba Taseer ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev