[webkit-help] SVG text not rendered

2011-01-20 Thread Gregoire
Hi,

I'm facing a strange behaviour with SVG text elements. To put it
simple, if I call a SVG from HTML using img src=/, the text doesn't
appear.

With the included files, the text appears with Opera and Firefox 4 but
not with Chrome.

Is this a bug? If so, is there a work-around to display text content?

Thank you for your help!

Grégoire

attachment: text.svgTitle: Testing chrome SVG text




  There should be somewhere an SVG text.
  


___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] SVG text not rendered

2011-01-20 Thread Gregoire
Hi,

I just realized that the SVG text is rendered but with an extremely tiny
font size! The characters look like little dots. Adding a font-size
attribute solves the issue. Sorry for the noise!

Grégoire

Le 20/01/2011 18:59, Gregoire a écrit :
 Hi,
 
 I'm facing a strange behaviour with SVG text elements. To put it
 simple, if I call a SVG from HTML using img src=/, the text doesn't
 appear.
 
 With the included files, the text appears with Opera and Firefox 4 but
 not with Chrome.
 
 Is this a bug? If so, is there a work-around to display text content?
 
 Thank you for your help!
 
 Grégoire
 
 
 
 
 ___
 webkit-help mailing list
 webkit-help@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] rendering HTML to a bitmap (wincairo port)

2011-01-20 Thread Chris Hatko
I've found this challenging (wincairo port) especially when Flash is
displayed on a website, I've only been able to get it working by forcing
flash plugins into windowless mode. I've used the backingstore bitmap as the
source and just copy the contents to a buffer on every update.

Would be very nice to have the webkit separate from HWND, I wonder if QT
port does a good job of this?

Chris


On Thu, Jan 20, 2011 at 11:55 AM, Adam Roben aro...@apple.com wrote:

 On Jan 20, 2011, at 6:02 AM, Daan Nusman wrote:

 Hello everyone,

 Is it possible to use the WebKit(2) API to render directly to a memory
 bitmap or texture?

 I've already built the WinCairo port. It works nicely in a window
 (WinLauncher), very cool! However, I'd like to render to a fixed bitmap,
 without any window to embed WebKit in (somewhat like a console application).
 Is this possible without a huge effort?

 Options:
 - hack the COM object?
 - create a completely new platform layer/port?
 - am I completely missing a convenient WebKit2 API call? :)
 - modify/use the print functionality?

 [Some context: I would like to start using WebKit for creating reports,
 from inside our full-screen DirectX9-based simulator (Windows-based). It
 just works like any other DX9 full-screen game, and has its own UI toolkit.
 To integrate a simple static report, generated from HTML, into our UI, we
 need to render the HTML to a texture so we can use that to show the report.
 Nothing interactive required, and no networking required. I'm a newcomer to
 WebKit so any pointers are greatly appreciated.]


 Both WebKit and WebKit2 are very reliant on having an actual HWND. The HWND
 is used to determine the size of the viewport, whether the page is focused,
 etc. I don't think there's an easy way to render content without an HWND
 currently. However, you can hide the HWND (either by moving it offscreen or
 never making it visible) and capture its contents using WM_PRINT.

 -Adam


 ___
 webkit-help mailing list
 webkit-help@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] rendering HTML to a bitmap (wincairo port)

2011-01-20 Thread Ariya Hidayat
 Would be very nice to have the webkit separate from HWND, I wonder if QT
 port does a good job of this?

Something like http://labs.qt.nokia.com/2009/01/15/capturing-web-pages/?


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help