Skip to content

Commit

Permalink
Add output from Graphics2D Tester and update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jfree committed Aug 4, 2021
1 parent 43b8286 commit c885553
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,26 @@ Version 1.0.1, 27 July 2021

Overview
--------
**SkijaGraphics2D** is a free implementation of Java2D's `Graphics2D` API that targets Skia via the [Skija](https://github.com/JetBrains/skija) bindings.
**SkijaGraphics2D** is an implementation of Java2D's `Graphics2D` API that targets Skia via the [Skija](https://github.com/JetBrains/skija) bindings. The project is exploratory at the moment, but potential uses for this are to:

The following sample is created using [Orson Charts](https://github.com/jfree/orson-charts):
- provide a path for Java applications to access the Skia rendering pipeline (potential speed and quality gains plus access to target formats such as SVG and PDF)
- include libraries such as [JFreeChart](https://github.com/jfree/jfreechart) and [Orson Charts](https://github.com/jfree/orsoncharts) in [Jetpack Compose Desktop](https://www.jetbrains.com/lp/compose/) applications

Note that these are **potential** uses, so far I haven't tried those things out...if you have then let us know what worked and what didn't work.

![SkijaGraphics2D sample](sample.png)
Testing
-------
SkijaGraphics2D is being tested using [Graphics2D Tester](https://github.com/jfree/graphics2d-tester) and produces the output shown below. There are several areas that still need work:

- fonts
- mapping of Java logical fonts to physical fonts
- metrics
- the `create()` method is not yet managing the user clip correctly, causing problems in the Swing UI / SteelSeries test
- mapping of `RadialGradientPaint` focus point

Aside from those points, the results are already very promising.

![SkijaGraphics2D test output](skija.png)

Include
-------
Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@
<artifactId>skija-${skija.platform}</artifactId>
<version>0.92.18</version>
</dependency>
<dependency>
<groupId>eu.hansolo</groupId>
<artifactId>SteelSeries</artifactId>
<version>3.9.30</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand Down
Binary file added skija.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c885553

Please # to comment.