AnsweredAssumed Answered

ProcessDiagramGenerator.generateDiagram platform dependent

Question asked by gromar on Sep 25, 2012
Latest reply on Sep 30, 2013 by gromar
ProcessDiagramGenerator.generateDiagram generates platform dependent images.
The problem is usage of platform specific fonts. The difference is small but it differ. It is causing problems in automated tests. (I was not able to upload images)

How to solve this problem?

http://download.java.net/jdk8/docs/technotes/guides/2d/spec/j2d-intro.html
Truly platform-independent fonts are possible only when the fonts are built-in (provided as part of the JDK software), or when they are mathematically or programmatically generated. The Java 2D API does not currently support built-in or mathematically generated fonts, but it does enable the programmatic definition of entire fonts through their glyph set. Each glyph can in turn be defined by a Shape that consists of line segments and curves. Many fonts of particular styles and sizes can be derived from a single glyph set.

Outcomes