MakeMusic
SmartMusic Finale Garritan MusicXML

Sample Batik font conversion

Moderator: Michael Good

Sample Batik font conversion

Postby Paul Mindrup » Fri Aug 23, 2002 9:56 am

OK, here's some sample ttf2svg output for the first 2 characters from the Jazz font. Assuming you have the ttf2svg binary (available from
http://xml.apache.org/batik/ttf2svg.html), you would use a command line like:

java -jar batik-ttf2svg.jar <path to font location goes here>\Jazz____.ttf -l 33 -h 34 -ascii -id myJazzFont -o myJazzFont.svg

This produces the following output (I realize this may be hard to read in an email - should I just attach this file, or is there another way to post a file to the group?):

<?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="myJazzFont" horiz-adv-x="341" ><font-face
font-family="Jazz"
units-per-em="1000"
panose-1="0 0 4 0 0 0 0 0 0 0"
ascent="1660"
descent="-1111"
alphabetic="0" />
<missing-glyph horiz-adv-x="500" d="M63 0V1660H438V0H63ZM125 63H375V1598H125V63Z" />
<glyph unicode="!" glyph-name="exclam" horiz-adv-x="383" d="M373 173Q373 135 338 107Q332 102 190 50T40 -2Q20 -2 20 25Q20 37 34 69T58 107Q87 126 196 167Q309 209 335 209Q373 209 373 173Z" />
<glyph unicode=""" glyph-name="quotedbl" horiz-adv-x="596" d="M564 583L382 314Q272 153 180 50Q170 84 170 104Q170 125 180 160Q249 251 368 421L564 703Q569 686 574 648Q575 624 564 583ZM446 593L246 323Q138 174 53 48Q43 80 43 104Q43 139 53 158Q58 166 84 205Q284 501 446 712Q456 678 456 658Q456 628 446 593Z" />
</font>
</defs>
</svg>


Paul
Paul Mindrup
 
Posts: 16
Joined: March, 2014
Reputation: 0

Who is online

Users browsing this forum: No registered users and 2 guests

cron