I did try this. But I'm not sure how to use it in the font= representation.
This is what I have in my fop.xconf file:
<font kerning="yes" embed-url="file:///C:/WINDOWS/Fonts/arial.ttf">
<font-triplet name="Arial" style="normal" weight="normal"/>
<font-triplet name="ArialMT" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="file:///C:/WINDOWS/Fonts/arialbd.ttf">
<font-triplet name="Arial" style="normal" weight="bold"/>
<font-triplet name="ArialMT" style="normal" weight="bold"/>
</font>
Thanks!
Ming
----- Original Message ----
From: Chris Bowditch <[email protected]>
To: [email protected]
Sent: Monday, August 17, 2009 11:37:14 AM
Subject: Re: [!! SPAM] Re: font configuration
Ming Yu wrote:
> Thanks for the reply. Yes, I just configured my fop.xconf file by removing
> the metrics-url attribute and the Arial font works.
> But I still cannot make the "bold" work. Whenever I put bold into the font=,
> either warning or SEVERE message will appear.
Arial and Arial Bold are separate Fonts. This isn't clear to Font newbies
because of MS Word's ability to mimic Bold and Italic Font variants from the
regular Font. So if you need Bold and Italic variants of Arial you must
register them separately within fop.xconf, e.g.
<font kerning="yes"
embed-url="file:///C:/windows/fonts/arialbd.ttf">
<font-triplet name="Arial" style="normal" weight="bold"/>
</font>
>
> Do you have any idea how I can configure to make the bold (or the
> font-weight) work in the shorthand representation?
>
> Thanks a lot!
>
> Ming
>
HTH,
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
__________________________________________________
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]