xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Neumann <neum...@karto.baug.ethz.ch>
Subject Re: Problem converting TTF to SVG
Date Wed, 27 Apr 2005 20:23:17 GMT
just save it as svg font instead of saving it as ttf, opentype, type1, 
etc. font. It is a font format like any other.

Andreas

Hiral Parikh wrote:

>Hi Thomas,
>I looked for that option as well, but couldn't find one.  I am sure it's a
>dumb question, but can't help asking, how do we do that in fontforge?
>I feel I am really close to the solution but not there yet!
>
>Thanks,
>Hiral
>
> -----Original Message-----
>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com] 
>Sent: Wednesday, April 27, 2005 3:58 PM
>To: batik-users@xmlgraphics.apache.org
>Subject: Re: Problem converting TTF to SVG
>
>Hi Hiral,
>
>    Why not use FontForge to create the SVG font directly?
>
>
>Hiral Parikh wrote:
>  
>
>>- File --> Generate Fonts --> Sabon-Bold.ttf (TTF Options in fontforge 
>>that were selected were: PS Glyph Name, Open Type, Apple )
>>    
>>
>
>    I would not select OpenType this might just embed the Type 1 font in a
>TrueType wrapper.
>
>  
>
>>- java -jar batik-ttf2svg.jar Sabon-Bold.ttf
>>java.lang.ArrayIndexOutOfBoundsException: -1
>>        at
>>org.apache.batik.svggen.font.table.GlyfSimpleDescript.<init>(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.batik.svggen.font.table.GlyfTable.init(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.batik.svggen.font.Font.read(Unknown Source)
>>        at org.apache.batik.svggen.font.Font.create(Unknown Source)
>>        at org.apache.batik.svggen.font.SVGFont.main(Unknown Source)
>>        at org.apache.batik.apps.ttf2svg.Main.main(Unknown Source)
>>-1
>>usage: java org.apache.batik.svggen.font.SVGFont <ttf-path> [-l 
>><range-begin>] [-h <range-end>] [-autorange] [-ascii] [- id <id>]
[-o 
>><output-path>] [-testcard]
>>
>>So now I got a different error than before. First, I thought that the 
>>fonts that the graphic designer gave me were corrupted. But now I am 
>>using original Type 1 fonts from Adobe and still the conversion fails. 
>>I am totally baffled here. Help!
>>
>>Thanks,
>>Hiral
>>
>>
>>
>>
>>
>>-----Original Message-----
>>From: Andreas Neumann [mailto:neumann@karto.baug.ethz.ch]
>>Sent: Wednesday, April 27, 2005 3:21 AM
>>To: batik-users@xmlgraphics.apache.org
>>Subject: Re: Problem converting TTF to SVG
>>
>>Hiral,
>>
>>fontforge can directly generate SVG fonts. I once converted an open 
>>type font and the generated SVG font works well with Batik.
>>
>>Andreas
>>
>>--
>>----------------------------------------------
>>Andreas Neumann - Institute of Cartography Swiss Federal Institute of 
>>Technology (ETH) ETH Hoenggerberg
>>CH-8093  Zurich, Switzerland
>>Phone: ++41-1-633 3031, Fax: ++41-1-633 1153
>>e-mail: neumann@karto.baug.ethz.ch
>>www: http://www.carto.net/neumann/
>>SVG.Open: http://www.svgopen.org/
>>Carto.net: http://www.carto.net/
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
>>For additional commands, e-mail: 
>>batik-users-help@xmlgraphics.apache.org
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
>>For additional commands, e-mail: 
>>batik-users-help@xmlgraphics.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
>For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
>For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message