SVG in libAfterImage

Jari Petter Sundell (jaris@student.matnat.uio.no)
Mon, 25 Aug 2003 12:46:31 +0200 (CEST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---259930298-1008918335-1061808391=:16052
Content-Type: TEXT/PLAIN; charset=US-ASCII

This patch will add SVG rendering to libAfterImage. It's kinda an ugly
hack, but it works. Have fun.

http://folk.uio.no/jaris/downloads/sh.png

Rakshasa

"Largo-sama... Hidoi... Hidoi desu..."
---259930298-1008918335-1061808391=:16052
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="as_svg.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.56.0308251246310.16052@assoro.ifi.uio.no>
Content-Description: 
Content-Disposition: attachment; filename="as_svg.diff"

SW5kZXg6IGNvbmZpZ3VyZS5pbg0KPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0K
UkNTIGZpbGU6IC9ob21lL2N2c3Jvb3QvYWZ0ZXJzdGVwLWRldmVsL2xpYkFm
dGVySW1hZ2UvY29uZmlndXJlLmluLHYNCnJldHJpZXZpbmcgcmV2aXNpb24g
MS41MQ0KZGlmZiAtcjEuNTEgY29uZmlndXJlLmluDQo3NmQ3NQ0KPCANCjI0
MWEyNDEsMjQ4DQo+IA0KPiBkbmwgSEFDSyBTVkcgZG8gc29tZXRoaW5nIGVs
c2UgdGhhbiBib3JrIG9uIGVycm9yDQo+IFBLR19DSEVDS19NT0RVTEVTKFNW
RywgbGlicnN2Zy0yLjAsDQo+ICAgICBbDQo+IAlDRkxBR1M9IiRDRkxBR1Mg
JFNWR19DRkxBR1MiDQo+IAlBRlRFUklNQUdFX0xJQlM9IiRBRlRFUklNQUdF
X0xJQlMgJFNWR19MSUJTIC1seiINCj4gCUFDX0RFRklORShIQVZFX1NWRykN
Cj4gICAgIF0pDQpJbmRleDoga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lKCZidWYsIFRydWUpOw0KPiAgICAg
Ly8gRW5kIGN1dA0KPiAgIH0NCj4gDQo+ICAgaWYgKHBpeGJ1ZikNCj4gICAg
IGdka19waXhidWZfdW5yZWYocGl4YnVmKTsNCj4gDQo+ICAgU0hPV19USU1F
KCJzdmcgaW1hZ2UgbG9hZGluZyIsc3RhcnRlZCk7DQo+IA0KPiAgIHJldHVy
biBpbTsNCj4gfQ0KPiANCj4gI2VuZGlmIC8vIFNWRyBTVkcgU1ZHIFNWRyBT
VkcgU1ZHIFNWRyBTVkcgU1ZHIFNWRyBTVkcgU1ZHIA0KSW5kZXg6IGltcG9y
dC5oDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1MgZmlsZTogL2hvbWUv
Y3Zzcm9vdC9hZnRlcnN0ZXAtZGV2ZWwvbGliQWZ0ZXJJbWFnZS9pbXBvcnQu
aCx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTMNCmRpZmYgLXIxLjEzIGlt
cG9ydC5oDQo1OGE1OQ0KPiAJQVNJVF9TdmcsDQo5OWExMDENCj4gQVNJbWFn
ZSAqc3ZnMkFTSW1hZ2UgKCBjb25zdCBjaGFyICogcGF0aCwgQVNGbGFnVHlw
ZSB3aGF0LCBkb3VibGUgZ2FtbWEsIENBUkQ4ICpnYW1tYV90YWJsZSwgaW50
IHN1YmltYWdlLCB1bnNpZ25lZCBpbnQgY29tcHJlc3Npb24gKTsNCg==

---259930298-1008918335-1061808391=:16052--
_______________________________________________
The AfterStep Window Manager for X User's Mailing List
http://mail.afterstep.org/mailman/listinfo/as-users