File: README.md

package info (click to toggle)
javafxsvg 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 196 kB
  • sloc: java: 319; xml: 160; makefile: 4
file content (32 lines) | stat: -rw-r--r-- 988 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# JavaFxSVG

A simple library to add SVG support to JavaFX, allowing to use SVG
graphics just like any other image type.

More details about the project can be found at the codecentric blog: 
[Adding a custom image renderer to JavaFX 8](https://blog.codecentric.de/en/2015/03/adding-custom-image-renderer-javafx-8/)

## Installation

If you are using maven, just add JavaFxSVG to the dependencies

		<dependency>
			<groupId>de.codecentric.centerdevice</groupId>
			<artifactId>javafxsvg</artifactId>
			<version>1.2.1</version>
		</dependency>

## Usage

Add this line to your application:

    SvgImageLoaderFactory.install();
    
preferably before any JavaFX code is executed. After this, you can use 
SVG images just as any other Image in your application.

## Known Issues

Currently, SVGs are required to start with either "<svg" or "<?xml" 
due to some rather static signature matching. As a result, svg might
not be displayed when starting with whitespace characters or comment.