You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Raghava Reddy Narapa Reddy <ra...@wipro.com> on 2003/07/25 10:01:21 UTC
How to generate xml file for particular Font
HI EveryOne
I need to to use arail font in the document, which require arial.xml in
the UserConfig.xml.
I have tried to generate arail.xml using PFMReader
C:\fop-0.20.5rc2>java -cp
build\fop.jar;lib\Avalon-4.1.4\avalon-framework-4.1.4.jar;lib\xml-apis.j
ar;lib\xercesImpl.jar;lib\xalan.jar; org.apache.fop.fonts.apps.PFMReader
C:\WINNT\Fonts\Arial.TTF arial.xml
I got the exception OutOfMemoryError
[INFO] PFM Reader v1.1
[INFO]
[INFO] Reading C:\WINNT\Fonts\Arial.TTF...
[INFO]
Exception in thread "main" java.lang.OutOfMemoryError
<<no stack trace available>>
Can any body tell how to generte .xml file for Font
<fonts>
<font metrics-file="arial.xml" kerning="yes" embed-file="arial.ttf">
<font-triplet name="Arial" style="normal" weight="normal"/>
<font-triplet name="ArialMT" style="normal" weight="normal"/>
</font>
<font metrics-file="arialb.xml" kerning="yes" embed-file="arialb.ttf">
<font-triplet name="Arial" style="normal" weight="bold"/>
<font-triplet name="ArialMT" style="normal" weight="bold"/>
</font>
<font metrics-file="ariali.xml" kerning="yes" embed-file="ariali.ttf">
<font-triplet name="Arial" style="italic" weight="normal"/>
<font-triplet name="ArialMT" style="italic" weight="normal"/>
</font>
<font metrics-file="arialbi.xml" kerning="yes"
embed-file="arialbi.ttf">
<font-triplet name="Arial" style="italic" weight="bold"/>
<font-triplet name="ArialMT" style="italic" weight="bold"/>
</font>
thanks
Raghava Reddy
Re: How to generate xml file for particular Font
Posted by Jeremias Maerki <de...@greenmail.ch>.
Wrong program. You're using the PFMReader on a TrueType file. You need
to use the TTFReader.
On 25.07.2003 10:01:21 Raghava Reddy Narapa Reddy wrote:
> I need to to use arail font in the document, which require arial.xml in
> the UserConfig.xml.
>
> I have tried to generate arail.xml using PFMReader
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org