The attribute should be "embed-url" not "embed-file" in 0.91. Try
<font metrics-url="file:///C:/MyDocBook/Dev/fonts/Arialuni.xml"
kerning="yes"
embed-url="file:///c:/Windows/fonts/arialuni.ttf">
<font-triplet name="ArialUnicodeMS" style="normal" weight="normal"/>
</font>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Behalf Of Xuan Ngo
> Sent: Tuesday, April 18, 2006 2:56 PM
> To: [email protected]
> Subject: RE: Unable to create font metric file of Arial Unicode MS
>
>
> I did what you said but was unable to embedded Arial Unicode MS
> in the PDF file.
> After the process, I open the PDF and it says that it can't find
> Arial Unicode MS font.
> Here is how I did.
>
> 1-I used FOP 0.20.5 to generate the metric font:
> java -cp build\fop.jar;lib\avalon-framework-4.2.0.jar;
>
> lib\batik-all-1.6.jar;lib\commons-io-1.1.jar;lib\commons-logging-1
> .0.4.jar;
>
> lib\serializer-2.7.0.jar;lib\xalan-2.7.0.jar;lib\xercesImpl-2.7.1.jar;
> lib\xml-apis-1.3.02.jar
> org.apache.fop.fonts.apps.TTFReader
> C:\WINDOWS\fonts\arialuni.ttf arialuni.xml
>
> 2-Run the following command:(In this case, FOP 091beta is used)
> xsltproc --output MinTestPDF.fo
> file:///C:/MyDocBook/Dev/MyDocBook.xsl MinTestPDF.xml
> fop.bat -c C:\MyDocBook\Dev\fop.xconf.xml -fo MinTestPDF.fo
> -pdf MinTestPDF.pdf
>
> Customize layer(MyDocBook.xsl):
> ===========================
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format"
> xmlns:date="http://exslt.org/dates-and-times"
> version="1.0">
>
> <xsl:import href="../docbook-xsl/fo/docbook.xsl"/><!--
> Import original DocBook XSL -->
> <xsl:param name="body.font.family">ArialUnicodeMS</xsl:param>
>
> </xsl:stylesheet>
>
> fop.xconf.xml:
> ===========
> .....
> <font
> metrics-url="file:///C:/MyDocBook/Dev/fonts/Arialuni.xml" kerning="yes"
> embed-file="file:///c:/Windows/fonts/arialuni.ttf">
> <font-triplet name="ArialUnicodeMS" style="normal"
> weight="normal"/>
> </font>
> .....
>
> Input file(MinTestPDF.xml)
> =====================
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
> "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
> <article>
> <articleinfo>
> <date>2006-04-06</date>
>
> <title>Testing printed PDF output</title>
> </articleinfo>
>
> <section>
> <title>Test</title>
>
> <para>Chinese characters follow: ¦Ë®Éú</para>
> </section>
> </article>
>
>
> --- Kai M¨¹tz <[EMAIL PROTECTED]> wrote:
>
> > I had the same problem and "solved" it by using Fop 0.20.5 TTFReader for
> > creating the font metric. No solution but a workaround.
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]