
svg.hwp
=======

This plugin enables Hollywood to load SVG and SVGZ images. After this plugin has
been installed, Hollywood will 'automagically' be able to open SVG images. When
you use LoadBrush() on an SVG image, this plugin will create a vector brush for
you. This means that you can transform it using ScaleBrush(), RotateBrush(), and
TransformBrush() without any losses in quality. In case layers are enabled and
you display a vector brush using DisplayBrush(), the layer graphics can also be
transformed without any quality loss. The same as true for BGPics using vector
graphics.

Please note that svg.hwp will always create images with alpha channel by default.
If you don't want that, you have to manually delete the alpha channel using
DeleteAlphaChannel() after loading the image. In case you want to use an SVG
image as a BGPic, you can also work around this problem by defining a background
for this BGPic, e.g. like this:

@BGPIC 1, "test.svg", {FillStyle = #FILLCOLOR, FillColor = #WHITE}

Note that if you use Miniwood and you want to load SVGZ images, you must make
sure either "compress" or "imageio" library has been loaded. If the SVG image
contains text and you use Miniwood, you also need to load "text" library or
no text will be rendered.


History
=======

Version 1.4:    (24-May-26)
- Change: Changed name from "svgimage.hwp" to "svg.hwp" for consistency with
  other plugins
- Change [WarpOS]: The plugin uses Hollywood's inbuilt FreeType2 library now; this
  decreases the plugin size by several hundreds of kilobytes; it also means that
  the WarpOS version of the SVG plugin will require at least Hollywood 6.1 now
  because of a bug in the FreeType2 version in earlier versions of Hollywood (only
  WarpOS was affected by the bug)
- Fix: When using Miniwood and "text" library hadn't been loaded, the plugin
  crashed when trying to load SVGs that used the <text> tag; when using Miniwood
  and "text" library hasn't been loaded, <text> tags will simply be ignored now
- New: For SVGZ images the plugin will now use Hollywood's inbuilt libz; this
  decreases the plugin size by about 30 kilobytes; note that when using Miniwood
  this means that you need to use either "compress" or "imageio" library or SVGZ
  won't work
- New: Version string in the binary contains the precise CPU arch specification
  now, e.g. "x64-linux" instead of just "Linux"
- New [Linux]: Added build for the Linux arm64 platform
- New [macOS]: Added build for macOS arm64 (Apple Silicon)  
- Change: Amiga installer will now also copy the plugins for all platforms to the
  linker plugins directory so that they can be easily linked to executables
- Change [iOS]: Added arm64 build for the iOS simulator and removed x86 build for
  the iOS simulator because the iOS simulator is no longer compatible with x86
- Change [Android]: Removed build for 32-bit softfloat ARM; nobody uses this any
  longer these days
- New: Added support for Hollywood 10's ability to get the image format name; use
  #ATTRFORMAT for images loaded using the plugin and you'll get "SVG"
- New: Plugin supports Hollywood 10's user tag interface for file adapters now;
  all user tags will be forwarded to the corresponding file adapters now
  
Version 1.3:    (18-Feb-18)
- New: Added build for the 64-bit Android platform
- New: TrueType fonts from *.ttc files are now supported too

Version 1.2:    (02-Jul-15)
- New [Linux]: Added build for Linux ARM
- Fix [Linux/MacOS]: Plugin is now compiled as position-independent code (PIC)
- Fix [OS3]: FPU version will cleanly exit now in case there is no FPU
- New: Added support for adapter-specific file loading (requires Hollywood 6.0)
- No longer accesses chunk loader specifications directly

Version 1.1:    (no public release)
- New: Plugin supports the "ScaleWidth" and "ScaleHeight" tags of Hollywood 5.3 now; can speed things
  up in case you need to load a scaled version of the SVG image
- New: Added file types information for Hollywood 5.3

Version 1.0:    (19-Feb-12)
- First release


Copyright
=========

This plugin was written by Andreas Falkenhahn <andreas@airsoftsoftwair.de>
See the COPYING files in this package for conditions concerning distribution
of this plugin. Visit http://www.hollywood-mal.com/ for more information
on Hollywood and more plugins.
