Hi,

I think you generate the font metrics file in the right way. MS Word can
display fonts in bold, even when there is no special font file available,
that's right. Sorry, I don't know, if there is a solution in FOP to create a
bold font xml without the appropriate font file. 

==> Does anybody else in this mailing list know, how to do that ???

The FOP website does not tell anything about this...

MM

$> -----Urspr�ngliche Nachricht-----
$> Von: Lee Fergus [mailto:[EMAIL PROTECTED] 
$> Gesendet: Montag, 14. April 2003 11:49
$> An: '[EMAIL PROTECTED]'
$> Betreff: RE: Chinese character in bold
$> 
$> 
$> Hi Markus,
$> 
$> Thanks for your timely response.
$> Unlike other fonts which have different files for different 
$> weight/style
$> (like arialb.ttf, ariali.ttf for Arial), I can only find one file
$> mingliu.ttc for the MingLiU font.  Furthermore, MS Word is 
$> able to show
$> MingLiU in bold.
$> 
$> Is there any special parameters that I should use in 
$> generating the metrics
$> file for bold?  The following is what I've done:
$> 
$> java -cp build/fop.jar org.apache.fop.fonts.apps.TTFReader -ttcname
$> "MingLiU" C:\winnt\fonts\mingliu.ttc MingLiU.xml
$> 
$> Fergus
$> 
$> -----Original Message-----
$> From: "Muller, Markus" [mailto:[EMAIL PROTECTED]
$> Sent: Monday, April 14, 2003 5:38 PM
$> To: [EMAIL PROTECTED]
$> Subject: AW: Chinese character in bold
$> 
$> 
$> Hi,
$> 
$> AFAIK you have to generate different XML font metrics files 
$> for different
$> font styles / weigths, so your userconfig.xml should look like this:
$> 
$> <font metrics-file="D:\fop\fop-0.20.4\conf\MingLiU.xml"
$> embed-file="C:\winnt\fonts\mingliu.ttc" kerning="yes">
$>      <font-triplet name="MingLiU" style="normal" weight="normal"/>
$> </font>
$> <font metrics-file="D:\fop\fop-0.20.4\conf\MingLiUBold.xml"
$> embed-file="[dont know]" kerning="yes">
$>      <font-triplet name="MingLiU" style="normal" weight="bold"/>
$> </font>
$> and so on.
$> 
$> Markus
$> 
$> $> -----Urspr?gliche Nachricht-----
$> $> Von: Lee Fergus [mailto:[EMAIL PROTECTED] 
$> $> Gesendet: Montag, 14. April 2003 11:32
$> $> An: '[EMAIL PROTECTED]'
$> $> Betreff: Chinese character in bold
$> $> 
$> $> 
$> $> Hi all,
$> $> 
$> $> I have problem showing chinese characters in bold.  I have 
$> $> generated the
$> $> MingLiU.xml file with the TTFReader utility from the 
$> $> mingliu.ttc file and
$> $> here's what I put inside my userconfig.xml
$> $> 
$> $>  <font metrics-file="D:\fop\fop-0.20.4\conf\MingLiU.xml"
$> $> embed-file="C:\winnt\fonts\mingliu.ttc" kerning="yes">
$> $>     <font-triplet name="MingLiU" style="normal" weight="normal"/>
$> $>     <font-triplet name="MingLiU" style="normal" weight="bold"/>
$> $>     <font-triplet name="MingLiU" style="italic" weight="normal"/>
$> $>     <font-triplet name="MingLiU" style="italic" weight="bold"/>
$> $>  </font>
$> $> 
$> $> The resulting PDF file can shows Chinese character when the 
$> $> font-family is
$> $> set to MingLiU.  However, when I set the weight="bold", the 
$> $> character is
$> $> still show as normal.
$> $> 
$> $> Is there anything that I'm doing wrong or missing out?
$> $> 
$> $> Regards,
$> $> Fergus Lee
$> $> 
$> 
$> ---------------------------------------------------------------------
$> 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]

Reply via email to