Oleg,

You are right. The CSS method of defining font family lists is not supported by FOP (Mainly because they haven't figured out a good way to parse the list.) You can only say font-family="Arial" or font-family="TimesNewRoman" not both.

Chuck Paussa

Oleg Tkachenko wrote:

Hello !

Yes, I do define fonts in userconfig.xml, the problem is in using list of font names in font-family trait, like this one:
font-family="Arial TimesNewRoman", it seems that doesn't work.


Togan Muftuoglu wrote:

* Oleg Tkachenko; <[EMAIL PROTECTED]> on 01 Apr, 2002 wrote:

Wayne Elliott wrote:
[ERROR]: unknown font sans-serif, Arial, Helvetica, Geneva,italic,normal so defaulted font to any


then try
... font-family=" sans-serif"


no error, it works.

Well, it seems to me Mr. J.Pietschmann is right, fop gets it as string so font list is unsupported feature.


Sorry I may have missed the thread but if you use a onfiguration file and define the fonts and their names in it you can use these fonts, currently I am using truetype fonts by this method here is -- Togan Muftuoglu

snipped from userconfig.xml

<!--
************************************************************************
Add fonts here
************************************************************************
-->
<font metrics-file="ttfarial.xml" kerning="yes" embed-file="arial.ttf">
<font-triplet name="Arial" style="normal" weight="normal"/>
<font-triplet name="ArialMT" style="normal" weight="normal"/>
</font>
<font metrics-file="ttfarialbd.xml" kerning="yes" embed-file="arialbd.ttf">
<font-triplet name="Arial" style="normal" weight="bold"/>
<font-triplet name="ArialMT" style="normal" weight="bold"/>
</font>
<font metrics-file="ttfariali.xml" kerning="yes" embed-file="ariali.ttf">
<font-triplet name="Arial" style="italic" weight="normal"/>
<font-triplet name="ArialMT" style="italic" weight="normal"/>
</font>
<font metrics-file="ttfarialbi.xml" kerning="yes" embed-file="arialbi.ttf">
<font-triplet name="Arial" style="italic" weight="bold"/>
<font-triplet name="ArialMT" style="italic" weight="bold"/>
</font>


<font metrics-file="times.xml" kerning="yes" embed-file="times.ttf">
    <font-triplet name="TimesNewRoman" style="normal" weight="normal"/>
    <font-triplet name="Times Roman"  style="normal" weight="normal"/>
</font>

<font metrics-file="timesi.xml" kerning="yes" embed-file="timesi.ttf">
    <font-triplet name="TimesNewRoman" style="italic" weight="normal"/>
    <font-triplet name="Times Roman"  style="italic" weight="normal"/>
</font>
<font metrics-file="timesbd.xml" kerning="yes" embed-file="timesbd.ttf">
    <font-triplet name="TimesNewRoman" style="normal" weight="bold"/>
    <font-triplet name="Times Roman"  style="normal" weight="bold"/>
</font>
<font metrics-file="timesbi.xml" kerning="yes" embed-file="timesbi.ttf">
    <font-triplet name="TimesNewRoman" style="italic" weight="bold"/>
    <font-triplet name="Times Roman"  style="italic" weight="bold"/>
</font>

</configuration>








Reply via email to