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 m....@gmx.de on 2003/06/30 12:45:42 UTC
font embedding problem (embed-file attribute)
Hello,
I'm using fop-0.20.4 and jdk 1.4.0. I'm embedding a True Type Font into my
documents. Thats works great. Here is a snippet from my userconfig.xml file:
<font
metrics-file="file:D:/Asfr/unchangedfopsrc/fop-0.20.4/conf/ARIALUNI.XML"
kerning="yes"
embed-file="file:D:/Asfr/unchangedfopsrc/fop-0.20.4/conf/ARIALUNI.TTF">
<font-triplet name="ArialUnicodeMS" style="normal" weight="normal"/>
<font-triplet name="ArialUnicodeMS" style="italic" weight="bold"/>
<font-triplet name="ArialUnicodeMS" style="normal" weight="bold"/>
<font-triplet name="ArialUnicodeMS" style="italic" weight="normal"/>
</font>
But if I remove the embed-file attribute I end up with an error. What is the
propper way to only reference the font?
This is my changed userconfig.xml file:
<font
metrics-file="file:D:/Asfr/unchangedfopsrc/fop-0.20.4/conf/ARIALUNI.XML"
kerning="yes"
<font-triplet name="ArialUnicodeMS" style="normal" weight="normal"/>
<font-triplet name="ArialUnicodeMS" style="italic" weight="bold"/>
<font-triplet name="ArialUnicodeMS" style="normal" weight="bold"/>
<font-triplet name="ArialUnicodeMS" style="italic" weight="normal"/>
</font>
This is the error message I get:
[INFO] FOP 0.20.4
[INFO] building formatting object tree
[ERROR] Failed to read font metrics file
D:/Asfr/unchangedfopsrc/fop-0.20.4/conf
/ARIALUNI.XML : null
[INFO] [1]
[ERROR] unknown font ArialUnicodeMS,normal,normal so defaulted font to any
[ERROR] unknown font ArialUnicodeMS,normal,normal so defaulted font to any
[ERROR] unknown font ArialUnicodeMS,normal,normal so defaulted font to any
[INFO] [2]
Please note: I only changed the userconfig.xml. The font-metrics file is
still there.
--
Thanks for any help
Markus Schäffler
------------------------------------------------------
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: font embedding problem (embed-file attribute)
Posted by Jeremias Maerki <de...@greenmail.ch>.
This is something I've also experienced but haven't taken the time to
investigate, yet. The work-around is to always embed TrueType fonts at
the moment.
If it's important to you please file a bug report in BugZilla.
On 30.06.2003 12:45:42 m.schaeffler wrote:
> I'm using fop-0.20.4 and jdk 1.4.0. I'm embedding a True Type Font into my
> documents. Thats works great. Here is a snippet from my userconfig.xml file:
<snip/>
> But if I remove the embed-file attribute I end up with an error. What is the
> propper way to only reference the font?
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org