Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
156 user(s) are online (4 user(s) are browsing News)

Members: 0
Guests: 156

more...

Support us!

Headlines


Recent Replied Topics
Software News : Scalable Vector Graphics (SVG) Datatype
Posted by ssolie on 2006/12/13 17:16:10 (1804 reads) News by the same author

Fredrik Wikstrom has managed to put together an SVG datatype for OS4.

Grab it from OS4 Depot.

Installation:

1. Copy svg.datatype to SYS:Classes/DataTypes/.
2. Copy SVG to DEVS:DataTypes/.

SDK users can just use "make install".

The OS4 native expat.library is needed in order for the datatype to work (it is not enough to just use a .l.main glue file!). This library can be found as part of the expat-ppc archive on OS4Depot.

Compiling:

"make".

Bugs:

None known.

Printer friendly page Send this story to a friend
The comments are owned by the author. We aren't responsible for their content.
Author Thread
Chris
Published: 2006/12/13 19:01  Updated: 2006/12/13 19:01
Amigans Defender
Joined: 11/17/2006
From: England
Comments: 3441
 Re: Scalable Vector Graphics (SVG) Datatype
Something OS4 could do with is a scalable graphics datatype superclass - so you can specify the picture size you want (Multiview could then scale it to the size of the current window).

Chris
yoodoo2
Published: 2006/12/13 20:09  Updated: 2006/12/13 20:09
Just popping in
Joined: 12/09/2006
From: The Bostin' Black Country
Comments: 113
 Re: Scalable Vector Graphics (SVG) Datatype
Indeed. This is a good start though, and I'm sure I'll find a use for it in MindSpace.
eXec
Published: 2006/12/14 1:17  Updated: 2006/12/14 1:17
Just popping in
Joined: 12/04/2006
From:
Comments: 33
 Re: Scalable Vector Graphics (SVG) Datatype
salass00
Published: 2006/12/14 14:26  Updated: 2006/12/14 14:26
Just can't stay away
Joined: 11/30/2006
From: Finland
Comments: 1912
 Re: Scalable Vector Graphics (SVG) Datatype
I've uploaded a new version (0.2) to OS4Depot which fixes some of the crashing. It's not perfect (see the Bugs section in the readme) but at least it doesn't crash so often (instead it fails silently...).

BTW I tried increasing the priority on the descriptor file like someone suggested, only it didn't work so well, so I changed it back. With the priority 1 descriptor all svg files were opened as text files. It seems the priority works the opposite to what you would expect, and there is unfortunately no way to set a negative priority...
Chris
Published: 2006/12/15 0:20  Updated: 2006/12/15 0:20
Amigans Defender
Joined: 11/17/2006
From: England
Comments: 3441
 Re: Scalable Vector Graphics (SVG) Datatype
I've set negative priorities before using dtdesc. However, it sounds like Sebastian Bauer might need to fix the priority of the HTML descriptor, or make it a bit more strict.
salass00
Published: 2006/12/15 9:29  Updated: 2006/12/15 9:29
Just can't stay away
Joined: 11/30/2006
From: Finland
Comments: 1912
 Re: Scalable Vector Graphics (SVG) Datatype
@Chris

I checked one of the datatypes header files and the priority field is an unsigned 16-bit integer. I even tried inputting 65535 which would produce -1 if it was treated as signed and it gave the same result as before...
Raziel
Published: 2006/12/16 18:58  Updated: 2006/12/16 18:58
Home away from home
Joined: 11/26/2006
From: a dying planet
Comments: 5622
 Re: Scalable Vector Graphics (SVG) Datatype
Thanks a lot Fredrik, another one from you, cool
poweramiga
Published: 2006/12/29 3:41  Updated: 2006/12/29 3:41
Amigans Defender
Joined: 11/18/2006
From: Flinders NSW Australia
Comments: 772
 Re: Scalable Vector Graphics (SVG) Datatype
insalled and using but not 100% sure what its doing
General
Site sponsors
 
Contact us on discord to advertise here.

Site statistics
Registered members
  1755
Logged in last:
  24 hours, 67
  7 days, 134
  30 days, 175

Random Photo
Trekbench 3.9

New Articles List

New Members
mschulz
mschulz 08/09/2025
ddacunha
ddacunha 07/19/2025
digitally
digitally 07/13/2025
Bifford
Bifford 07/01/2025
MarisaG1967
MarisaG1967 06/28/2025
rubach
rubach 06/25/2025
Shinji344
Shinji344 06/14/2025
emulajavi
emulajavi 06/06/2025
SteffJay
SteffJay 05/31/2025
Cyber-Bob
Cyber-Bob 05/28/2025


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project