xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Bernardo <lmpmberna...@gmail.com>
Subject Re: Fonts in config file
Date Tue, 17 Apr 2012 15:18:14 GMT
You can do the same with auto-detect. Apparently you do not have the
symbol.ttf file in your system. But you can replace it with other
font, like Arial, the same way:

<font kerning="yes"
embed-url="/usr/share/fonts/truetype/msttcorefonts/Arial.ttf">
    <font-triplet name="Symbol" style="normal" weight="normal"/>
</font>
<auto-detect/>

The name attribute is what you use in the *.fo file.

On Tue, Apr 17, 2012 at 3:31 PM, froglander <Kristina.Heredia@trax.aero> wrote:
>
> So is there no way to leave the auto-detect in there in case someone wants to
> use a random font and just tell FOP to use a different font for Symbol?
>
>
>
> lmpmbernardo wrote:
>>
>> Try to add something like this to the <fonts> element of your
>> renderer. So for PDF that would be the <fonts> element inside
>> <renderer mime="application/pdf">.
>>
>>
>>           <font-triplet name="Arial" style="normal" weight="normal"/>
>>           <font-triplet name="ArialMT" style="normal" weight="normal"/>
>>
>>
>> This with no auto-detect means you get the default FOP Symbol for the
>> bullet, and you get the Ohm from the Arial font configured above. Make
>> sure that the embed-url points to your local Arial.ttf file.
>>
>>
>
> --
> View this message in context: http://old.nabble.com/Fonts-in-config-file-tp33671500p33702176.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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