gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Start working on ORA bitmap support


From: David Chisnall
Subject: Re: Start working on ORA bitmap support
Date: Mon, 27 Jun 2011 18:37:05 +0100

Implementing the Tiny subset of SVG (which is all that most people use, and 
more than you need for icons and the like) in GNUstep would be trivial, since 
it's basically an XML serialisation of a subset of PostScript, for people who 
thought PDF was insufficiently bloated.  The only nontrivial bit (by which I 
mean the only bit where you'd need more than a couple of lines of code to 
render an XML node) is the Animation Module, which is not going to be supported 
by something that just generates an NSImageRep anyway (I presume, anyway - what 
happens if you load an animated GIF or PNG into an NSImage?  I've never tried)

The tricky bit with SVG is that people usually don't just use SVG.  For 
example, SVG's support for text is pretty primitive, so it's common to use a 
foreignObject from the extensibility module and just embed HTML + CSS.  It's 
also common to use JavaScript + DOM instead of the SVG animation stuff, because 
it's more flexible.  This is why you end up needing something as huge as WebKit 
to render something as simple as SVG.

On the one hand, this is good because it's actually an example of something 
living up to the XML hype - you can easily combine different XML schemas in the 
same document.  On the other hand, it provides a colossal amount of pain to 
people wanting to implement it.

David

On 27 Jun 2011, at 16:50, Riccardo Mottola wrote:

> Bob: I want to kill a bee
> Fred: here, this is a modified intercontinental ballistic missile
> Bob: I want to display a SVG icon... it contains a circle and a square
> Fred: here, install this small Framework... It just requires a new language, 
> but additionally, you can display your homepage!
> 
> :)
> 
> Lars Sonchocky-Helldorf wrote:
>> Am 26.06.2011 um 23:32 schrieb Fred Kiefer:
>> 
>>> On 26.06.2011 15:52, Bluna Ratimonkey wrote:
>>>> Another (and may be most) important bit is that you can mix svg and
>>>> raster in one file.. ie. you can choose svg on larger size and raster
>>>> for "hinting" smaller icons.. At this point I think I'll just use
>>>> image magick for fallbacking and also for converting svg into raster
>>>> data.
>>> Which just reminds me that we should think about SVG support in GNUstep.
>>> 
>> This is something we would gain with a port of WebKit to GNUstep. If that is 
>> reasonable …
>> 
> 
> 
> 
> _______________________________________________
> Gnustep-dev mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/gnustep-dev


-- Sent from my Cray X1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]