xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Gurol <robert.gu...@signavio.com>
Subject ttf2svg not working for 4Byte Unicode?
Date Mon, 05 May 2014 14:39:38 GMT
Hi all,

I was recently trying to convert a ttf font to svg (in order to embed it in
svgs for batik to work correctly).

I stumbled across a problem with unicode characters of the 4-byte range
(U+10000 - U+1FFFFF, cf. http://en.wikipedia.org/wiki/UTF-8#Description ).

The font I tried to convert is called HanaMinA (
http://sourceforge.jp/projects/hanazono-font/releases/ ) , and contains,
among others, glyphs for the range U+2F800 .. U+2FA1D, i.e.  194560 -
195101 in decimal.

However, the call
java -jar batik-ttf2svg.jar HanaMinA.ttf -l 194560 -h 195101 -o
or even
java -jar batik-ttf2svg.jar HanaMinA.ttf -l 32 -h 2097151 -o
only returned a very small file (some 40kB, instead of some 80 MB), in case
of the latter only containing the ASCII part of the font plus 6 glyphs
above U+3000 (instead of some 40000).

It seems ttf2svg ignores the 4-Byte unicode characters?

Is this a known bug? I could not find it among the known issues in JIRA.

Best regards,


PS: In case anyone has the same problem, I used FontForge (
https://sourceforge.net/projects/fontforge/files/fontforge-source/) as a
PPS: -autorange did not work, either.


 *Besuchen Sie uns/Meet us:*
May 06-09, Stuttgart, Germany
Process Solutions
May 13-14, Cologne, Germany
Fraunhofer KODOK
May 15, Stuttgart, Germany
Gartner BPM Summit<http://www.signavio.com/events/gartner-apac-bpm-summit-sydney/>:
May 19-20, Sydney, Australia
MEMO Conference <http://www.signavio.com/events/memo-conference-2014/>:
Jun. 02-03, Münster, Germany

*Folgen Sie uns / Follow us:*

*Robert Gurol*
Software Developer
T +49 30 488 172 50
F +49 30 8562 154-19

Signavio GmbH
Nürnberger Straße 8
10787 Berlin

HRB 121584 B Amtsgericht Charlottenburg, Ust-ID: DE265675123
Geschäftsführer: Dr. Gero Decker, Torben Schreiter

View raw message