xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Douglas" <edoug...@blockhouse.com>
Subject RE: Does FOP 0.95 supports Chinese Fonts?
Date Wed, 07 Apr 2010 12:13:52 GMT
I'll ask again, what renderer are you using?
Problems can't be solved when the one having the problem fails to
provide requested information.

I actually did create an xml metrics file..
When I added my custom font to the PDFRenderer, I used the setFontList
method using the TTFFontLoader class, which required the EmbedFontInfo
class which requires a metrics file.  It didn't seem to recognize the
font from the path.
When I added my custom font to the AWTRenderer, I just added the path to
the file in the setFontBaseURL method.
I don't remember which method if any works for the direct PrintRenderer,
since I haven't solved the issue of telling it which network printer to
send to.  Until I figure that out, the direct print option is creating
and opening a PDF for the user to print manually.
I haven't tested the Trunk version yet to see if there are solutions for
the issues I've had.


-----Original Message-----
From: Charanpreet Arora [mailto:carora@apple.com] 
Sent: Wednesday, April 07, 2010 12:53 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Does FOP 0.95 supports Chinese Fonts?

Yes, I'm using FOP 0.95.

Can you please let me know the special encoding required and also how we
can make xslt pick the font file without using metrics file.


On Apr 6, 2010, at 5:31 PM, Eric Douglas wrote:

> You are using 0.95?
> Have you tried the Trunk?
> What renderer are you using?
> From my tests with a custom font in 0.95, one renderer recognized it, 
> another needed special coding.
>
>
> -----Original Message-----
> From: Charanpreet Arora [mailto:carora@apple.com]
> Sent: Tuesday, April 06, 2010 4:47 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Does FOP 0.95 supports Chinese Fonts?
>
>> This (&#14;) is not a Chinese character, it's a control character 
>> (see
>
>> http://en.wikipedia.org/wiki/Shift_Out ). It's either a wrong input 
>> file, which means that the file should be checked so that no control 
>> characters are present, or the file is read using the wrong encoding.
>
>> With FOP 0.95 you don't need to generate metrics files anymore, just 
>> use the font file directly.
>
> After I removed the metrics file, I stopped getting &#14; related 
> error.
> It might be possible that the control character got introduced while 
> creating metrics file.
>
> I'm now able to generate the PDF file but it does not display Chinese 
> characters. Instead, its showing sequence of # characters wherever 
> chinese characters are expected. This seems to be occurring because 
> PDF is not able to find the supported fonts to display these 
> characters.
>
> In my xsl file, I have set font-family attribute to "uming" wherever I

> want to display chinese characters but the font is not being picked 
> up.
> I have also tried to install it to my System Library (Macintosh HD
> -> Library -> Fonts) but all in vain.
>
> Can you please guide me the steps to display Chinese characters 
> properly using uming.ttf file (custom font file to display Simplified 
> Chinese Characters). Where should I place this font file or what 
> configuration changes I should do so that font file is correctly 
> picked up.
>
> Thanks & Regards,
> Charanpreet Arora
> Apple POS Team
>
> On Apr 6, 2010, at 12:50 AM, Sergiu Dumitriu wrote:
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>






---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message