I have corrected error in para 1 below:
On the advice of Jeremias Maerki

"Anyway, you're on 0.94, so just skip generating the font metrics file.
Instead use the <directory> tag to let FOP find your fonts:
http://xmlgraphics.apache.org/fop/0.94/fonts.html#register";

1. I put uming.ttf and a copy of config.xml in  file:///C:/fop-fonts/
2. I amended the copy of config.xml as follows

   <fonts>
        <directory>C:\fop-fonts</directory>
   </fonts>

3. After having a look at uming.ttf by building the metric file as per http://xmlgraphics.apache.org/fop/0.94/fonts.htm
I found that the font name is <font-name>ARPLShanHeiSunUni</font-name>

4. I then used

<fo:block space-after="2mm" font-size="10pt" font-family="ARPLShanHeiSunUni" font-weight="normal" text-align="left">

5. Ran it from the following command line
java -jar C:/fop-094/build/fop.jar -c C:/fop-fonts/config.xml -fo C:/Data/chinese.fo -pdf C:/Data/Chinese.pdf

This produced a pdf with embedded Chinese characters
Hope this helps

Peter

It is not working in my case. Can you please tell me the corresponding
mapping ARPLShanHeiSunUni font defined in your FOP configuration file.


Peter Sparkes wrote:
I am using uming, however, the font is called ARPLShanHeiSunUni. All I do is

<fo:block space-after="2mm" font-size="10pt" font-family="ARPLShanHeiSunUni" font-weight="normal" text-align="left">

and everything works fine

Peter


<font-triplet> element is indeed embedded inside  element.
Not sure why it is getting stripped off my message while posting reply.



xsltuser wrote:
FOP version I'm using is 0.94

Entry in the FOP configuration file is as per the specification:

<font-triplet name="uming" style="normal" weight="normal"/> When I run xslt through the FOP processor, everything goes on smoothly with no errors thrown but the generated pdf does not display any chinese
text as expected.





xsltuser wrote:
Dear All,

I'm trying to render Chinese text on output pdf file generated through
XSL transformation. I have added the corresponding mapping in FOP
configuartion file as follows:

<font-triplet name="uming" style="normal" weight="normal"/> Following is the snippet of the XML and XSL file:

XML:
 <footer>&#x4e1a;&#x52a1;</footer>

XSL:
       <xsl:for-each select="//footer">
            <fo:block text-align="center" font-family="uming">
                <xsl:value-of select="."/>
            </fo:block>
        </xsl:for-each>

I'm using Oxygen editor to perform above transformation from XML ->
XSL-FO -> PDF.
On however, running the same, output pdf does not display anything in
the
place where it is expected to print Chinese text.
Below are the system details:
OS : Mac OS 10.4
XSLT processor: Xalan 1.0

It'll be great if someone can give me some clue to resolve this.

Thanks,
Charanpreet.





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to