xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Sancho <pascal.san...@takoma.fr>
Subject Re: Font substitution
Date Wed, 23 Dec 2009 09:38:09 GMT
Hi,

Both Symbol and ZapfDingbats are available only in regular form: neither 
italic, nor bold.
Fallback to "normal, 400" is an expected behaviour.

If you don't want to see such Warning in log, I see 3 tips:

1/ Explicitely set both font-style and font-weight properties to 
"normal" when such fonts are used.

2/ add bold, italic and bold+italic triplets in your config file, using 
the same font file as regular font:
<font kerning="yes" embed-url="my_font_file">
  <font-triplet name="MyFont" style="normal" weight="400"/>
  <font-triplet name="MyFont" style="italic" weight="400"/>
  <font-triplet name="MyFont" style="normal" weight="700"/>
  <font-triplet name="MyFont" style="italic" weight="700"/>
</font>

3/ not tried: play with font-substitution

<substitution>
  <from font-family="theirFont" font-style="italic"/>
  <to font-family="MyFont" font-style="normal"/>
</substitution>

<substitution>
  <from font-family="theirFont" font-weight="bold"/>
  <to font-family="MyFont" font-weight="normal"/>
</substitution>

<substitution>
  <from font-family="theirFont" font-style="italic" font-weight="bold"/>
  <to font-family="MyFont" font-style="normal" font-weight="normal"/>
</substitution>

HTH,
Pascal

Chris Bowditch a écrit :
> Gregory Buchenberger wrote:
>   
>> Hello,
>>     
>
> Hi,
> <snip/>
>   
>> The gsfonts are registering OK. Where I've used an explicit font it
>> gets embedded. Yet when FOP has to make a choice it still uses
>> Helvetica and doesn't embed the Nimbus font in it's place. What am I
>> missing in the configuration? Also, when I run FOP it always reports:
>>     
>
> Are you sure you have specified the font family for the entire document?
> If you forget to specify the font-family then it defaults to
> "sans-serif,Symbol,ZapfDingbats" By default sans-serif maps to
> Helvetica, so that may be how it ends being used in your case.
>   
>> WARNING: Font "Symbol,normal,700" not found. Substituting with
>> "Symbol,normal,400".
>> Dec 22, 2009 12:00:29 PM org.apache.fop.events.LoggingEventListener processEvent
>> WARNING: Font "ZapfDingbats,normal,700" not found. Substituting with
>> "ZapfDingbats,normal,400".
>>     
>
> These warnings are actually a known bug, see:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=47279. However, this
> does suggest there are some parts of your XSL-FO for which no font has
> been specified.
>   
>> What are those fonts generally used for? Where might FOP need them?
>> Thanks ahead and Merry Christmas to you all.
>>     
> Thanks,
> Chris
>   
>> Best Regards,
>> Gregory Buchenberger


---------------------------------------------------------------------
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