You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Cyril Rognon <cr...@objectiva.fr> on 2001/11/22 16:40:35 UTC
Unable to import ttf font windings
Hi,
I am trying to add a ttf font to fop, using the TTFReader as mentionned in
the documentation.
The ttf font is windings and I every time I do
java org.apache.fop.fonts.apps.TTFReader
C:\WINDOWS\FONTS\wingding.ttf wingdings.xml
I get an exception :
....
TTF Reader v1.1.1
Reading C:\WINDOWS\FONTS\wingding.ttf...
Number of glyphs in font: 226
Unicode cmap table not present
java.util.NoSuchElementException: Vector Enumeration
What do I do to fix this ?
Thanks
Cyril
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: Unable to import ttf font windings
Posted by Attila Kertes <at...@yahoo.com>.
Hi,
I sent a solution for this problem in the list before.
The Windings font has symbol encoding, and TTFReader
requires ansi encoding. You have to convert the
unicode cmap table in the font to ansi (Microsoft
VOLT, FontLab, etc.), or just change the encoding
attribute to ansi (with Softy for eg.) and read the
font metrics. The only problem is, that the generated
.pdf file will not be readable by Acrobat reader if
the cmap table contains symbol encoding, but you can
use GhostView to display the text in the .pdf file.
The best way is to convert the cmap table and you can
use Acrobat to read your .pdf file, too.
I hope this helps.
Cheers,
Attila
--- Cyril Rognon <cr...@objectiva.fr> wrote:
> Hi,
>
> I am trying to add a ttf font to fop, using the
> TTFReader as mentionned in
> the documentation.
>
> The ttf font is windings and I every time I do
>
> java org.apache.fop.fonts.apps.TTFReader
> C:\WINDOWS\FONTS\wingding.ttf wingdings.xml
>
> I get an exception :
>
> ....
> TTF Reader v1.1.1
>
> Reading C:\WINDOWS\FONTS\wingding.ttf...
>
> Number of glyphs in font: 226
> Unicode cmap table not present
> java.util.NoSuchElementException: Vector Enumeration
>
> What do I do to fix this ?
>
> Thanks
>
> Cyril
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-dev-unsubscribe@xml.apache.org
> For additional commands, email:
> fop-dev-help@xml.apache.org
>
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org