Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

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

Members: 0
Guests: 14

more...

Support us!

Headlines


Recent Replied Topics
Software News : Scalable Vector Graphics (SVG) Datatype
Posted by ssolie on 2006/12/13 17:16:10 (1781 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: 3429
 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: 1899
 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: 3429
 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: 1899
 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
  1741
Logged in last:
  24 hours, 64
  7 days, 126
  30 days, 172

Random Photo
SAM 460ex AmigaOS 4.1 Workbench (17/44)

New Articles List

New Members
n3m3
n3m3 04/19/2025
Estrayk
Estrayk 04/12/2025
E5150
E5150 03/31/2025
stepan
stepan 03/01/2025
spk1966
spk1966 02/24/2025
miikka
miikka 02/20/2025
martinwguy
martinwguy 02/08/2025
OldFart
OldFart 02/04/2025
erik
erik 01/30/2025
Kramo
Kramo 01/29/2025


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project