You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by William Will <wi...@xemus.com> on 2003/02/08 23:23:24 UTC
Conversion of TrueType Font to SVG
I'm trying to use the TTF2SVG converter on a number of music notation fonts
and am having problems with certain, not all, TTF fonts.
The command I'm issuing is: "C:/jdk1.3/bin/java" -jar
"D:/Archive/Batik/batik-1.5/batik-ttf2svg.jar"
"D:/xemo.org/siteFiles/fonts/fughetta/Fughetta.ttf" -ascii -id Fughetta -o
"D:/xemo.org/siteFiles/fonts/fughetta/Fughetta.svg" -testcard
OS is Windows 2000 server with JDK 1.3. I tried using the latest JDK (1.4.1)
and got no results either. The generated .svg file contains a font
definition without any of the expected glyph definitions. Generated .svg
file is copied below. Anyone have any ideas?
Cheers,
William Will
Project XEMO
www.xemo.org
<?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG
1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" > <svg
width="100%" height="100%">
<defs >
<font id="Fughetta" horiz-adv-x="334" ><font-face
font-family="Fughetta"
units-per-em="1000"
panose-1="0 0 4 0 0 0 0 0 0 0"
ascent="1318"
descent="-904"
alphabetic="0" />
<missing-glyph horiz-adv-x="500" d="M63 0V493H438V0H63ZM125
63H375V431H125V63Z" />
</font>
</defs>
<g style="font-family:
Fughetta
; font-size:18;fill:black">
<text x="20" y="60">
!"#$%&'()*+,-./0123456789:;<>?</text>
<text x="20" y="120">@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_</text>
<text x="20" y="180">`abcdefghijklmnopqrstuvwxyz|{}~</text>
<text x="20"
y="240">€‚ƒ„…†‡ˆ‰Š&#
x8b;ŒŽ‘’“”•–—
˜™š›œžŸ</text>
<text x="20"
y="300"> ¡¢£¤¥¦§¨©ª&#
xab;¬­®¯°±²³´µ¶·
¸¹º»¼½¾¿</text>
<text x="20"
y="360">ÀÁÂÃÄÅÆÇÈÉÊ&#
xcb;ÌÍÎÏÐÑÒÓÔÕÖ×
ØÙÚÛÜÝÞß</text>
<text x="20"
y="420">àáâãäåæçèéê&#
xeb;ìíîïðñòóôõö÷
øùúûüýþÿ</text>
</g>
</svg>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org