Hi all,
I have been struggling with various unexpected behaviour with Text
components when using the ImageTranscoder export for a short while now,
and have managed to distil an example into a small test case.
The problem is that, if I reference two style classes which define the
characteristics of the font, although the SVG in both cases is fine, the
PNG/JPEG export is not. The order of referencing the style classes
determines how the font is styled.
For example, two style classes:
.graphHeaderFontColour {
fill: red;
}
.graphHeaderFont {
font-family: courier new;
font-weight: bold;
font-size: 32px;
}
I have these styles defined within "defs" in a CDATA within the SVG
file.
And when referenced as below, the PNG is fine:
class="graphHeaderFont graphHeaderFontColour"
But when referenced as below, only the colour is picked up, and the font
family and size etc, is ignored:
class="graphHeaderFontColour graphHeaderFont"
As I say, I have this in a standalone test case which I can post to the
list, if that is permitted? (its 2mb, including all the relevant Batik
libraries).
(I am also witnessing problems with occasional skewing of text
locations, which may be related this, or more likely not).
Many thanks as ever,
Dylan