I'm trying to print some rotated text in a document, and in the absence of 'reference-orientation' am trying to use
in-line SVG.
Problem is the characters come out v e r y w i d e l y spaced. The code renders 'correctly' if I try it directly in Batik.
<!-- Column 2 -->
<!-- This will be the rotated page center for mailing address -->
<fo:block break-before="column">
<fo:instream-foreign-object width="90mm" height="190mm">
<svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="90mm" height="190mm" viewBox="0 0 360 760">
<svg:g transform="rotate(-90, 213, 600)">
<svg:text x="213" y="600" style="font-family:sans-serif;font-size:9">Mr Zmaryalay Razaqi</svg:text>
<svg:text x="213" y="612" style="font-family:sans-serif;font-size:9">8/7 Coombs Ave</svg:text>
<svg:text x="213" y="624" style="font-family:sans-serif;font-size:9">OAKLIEGH SOUTH VIC 3167</svg:text>
</svg:g>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
I have tried various fonts, but they all seem to have the same effect.
Trev
- SVG Text. Character spacing problems. Help! Trevor_Campbell
- SVG Text. Character spacing problems. Help! Trevor_Campbell
- Re: SVG Text. Character spacing problems. Help! Keiron Liddle
- Font metrics Henrik Holle