Re: config: interaction between font substitutions and embed-url

2014-07-16 Thread Jason Harrop
I thought someone might ask that :-)

For simplicity in my earlier post, I left out

  





  

I don't include an embed-url for that, and the message for that one
*does* get repeated.

Also, when I omit:

  





  

Acrobat reports that the resulting PDF *does* contain Calibri font.
(The Calibri font is not in the resulting PDF if the substitution is
present.)


On Wed, Jul 16, 2014 at 6:41 PM, Luis Bernardo  wrote:
> Are you sure the fonts are found the second time, or you just say that
> because the message is not repeated? Font setup may be just happening once
> and then reused.
>
>
> On Wed, Jul 16, 2014 at 4:12 AM, Jason Harrop  wrote:
>>
>> Hi all, I'm seeing something which seems a little strange to me..
>>
>> With the fop config below, the first time it is set (via
>> fop.apps.FopConfParser, using March 19 2014 code) , it seems unable to
>> use the destination fonts:-
>>
>> ERROR org.apache.fop.fonts.substitute.FontSubstitutions
>> .adjustFontInfo line 53 - Unable to match font substitution for
>> destination qualifier font-family=[Calibri], font-style=[italic],
>> font-weight=[bold]
>>
>> ERROR org.apache.fop.fonts.substitute.FontSubstitutions
>> .adjustFontInfo line 53 - Unable to match font substitution for
>> destination qualifier font-family=[Times New Roman],
>> font-style=[normal], font-weight=[400]
>>
>> However, if I use the config again in the same thread, well, the
>> second time, the fonts are found and those error messages aren't
>> emitted.
>>
>> I observe the same behaviour using FOP 1.1 (FopFactory).
>>
>> thoughts?  thanks .. Jason
>>
>>
>> 
>>
>>   true
>>
>>   
>>
>> 
>>
>>   
>>
>> > font-weight="700"/>
>>
>> 
>>
>>   
>>
>>   
>>
>> > font-weight="400"/>
>>
>> > font-style="normal"/>
>>
>>   
>>
>> 
>>
>>   
>>
>>   
>>
>> 
>>
>>   
>>
>> 
>>
>>   > weight="normal"/>
>>
>> 
>>
>> 
>>
>>   > weight="bold"/>
>>
>> 
>>
>> 
>>
>>   > weight="bold"/>
>>
>> 
>>
>> 
>>
>>   > weight="normal"/>
>>
>> 
>>
>> 
>>
>>   
>>
>> 
>>
>> 
>>
>>   
>>
>> 
>>
>> 
>>
>>   
>>
>> 
>>
>> 
>>
>>   
>>
>> 
>>
>>   
>>
>> 
>>
>>   
>>
>> 
>>
>> -
>> 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]



Re: config: interaction between font substitutions and embed-url

2014-07-16 Thread Luis Bernardo
Are you sure the fonts are found the second time, or you just say that
because the message is not repeated? Font setup may be just happening once
and then reused.


On Wed, Jul 16, 2014 at 4:12 AM, Jason Harrop  wrote:

> Hi all, I'm seeing something which seems a little strange to me..
>
> With the fop config below, the first time it is set (via
> fop.apps.FopConfParser, using March 19 2014 code) , it seems unable to
> use the destination fonts:-
>
> ERROR org.apache.fop.fonts.substitute.FontSubstitutions
> .adjustFontInfo line 53 - Unable to match font substitution for
> destination qualifier font-family=[Calibri], font-style=[italic],
> font-weight=[bold]
>
> ERROR org.apache.fop.fonts.substitute.FontSubstitutions
> .adjustFontInfo line 53 - Unable to match font substitution for
> destination qualifier font-family=[Times New Roman],
> font-style=[normal], font-weight=[400]
>
> However, if I use the config again in the same thread, well, the
> second time, the fonts are found and those error messages aren't
> emitted.
>
> I observe the same behaviour using FOP 1.1 (FopFactory).
>
> thoughts?  thanks .. Jason
>
>
> 
>
>   true
>
>   
>
> 
>
>   
>
>  font-weight="700"/>
>
> 
>
>   
>
>   
>
> 
>
>  font-style="normal"/>
>
>   
>
> 
>
>   
>
>   
>
> 
>
>   
>
> 
>
>weight="normal"/>
>
> 
>
> 
>
>weight="bold"/>
>
> 
>
> 
>
>weight="bold"/>
>
> 
>
> 
>
>weight="normal"/>
>
> 
>
> 
>
>   
>
> 
>
> 
>
>   
>
> 
>
> 
>
>   
>
> 
>
> 
>
>   
>
> 
>
>   
>
> 
>
>   
>
> 
>
> -
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>