There's a bug in 0.94 that may cause this. Acrobat Reader gracefully
works around the problem but other PDF viewers may not. This will be
fixed in the next release. You can also use FOP Trunk instead.

On 10.03.2008 08:40:33 xsltuser wrote:
> 
> I have configured the uming font as described below.
> I'm now able to see chinese characters when I open the generated pdf file
> using Adobe Reader. On viewing the same with Mac's Preview application,
> chinese text does not appear at all. Also, chinese text does not get printed
> when I fire a printout. As per my understanding, if the custom fonts are
> embedded within the pdf document, chinese text should appear irrespective of
> the application used to view the pdf doc.
> 
> Any help is greatly appreciated.
> 
> 
> 
> 
> Peter Sparkes wrote:
> > 
> > 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]
> > 
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Unable-to-render-Chinese-Text-with-uming---uaki-font-files-tp15798235p15950587.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 
> 



Jeremias Maerki


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

Reply via email to