On 2015-07-07 Paul Grosso wrote:
> On 2015-07-07 13:04, Jan Tosovsky wrote:
> > On 2015-07-06 Paul Grosso wrote:
> > >    Font "Stempel Garamond LT Std,normal,700" not found.
> > >    Substituting with "Stempel Garamond LT Std,normal,400".
> > >    Font "Gill Sans Std,normal,700" not found.
> > >    Substituting with "Gill Sans Std,normal,400".
> >
> > In auto-detection font names are taken directly from font info which
> > may return different names for different styles, so you cannot use 
> > simply your font name with bold font-weight, but a dedicated font name 
> > instead.
> >
> > You can try opening the font cache (on Windows
> > %UserProfile%\.fop\fop-fonts.cache ) in any text editor and try to
> > search for your font name. It is surrounded with binary data, but you 
> > can guess the name which FOP expect.
> >
> > For Frutiger in my case I have to specify 4 different styles:
> > FrutigerLT-Light
> > FrutigerLT-LightItalic
> > FrutigerLT-Bold
> > FrutigerLT-BoldItalic
> >
> > e.g. this way...
> > <fo:root
> > font-family="FrutigerLT-Light,FrutigerLT-LightItalic,FrutigerLT-Bold,
> > FrutigerLT-BoldItalic">
> >
> 
> I found the names in the cache as you said, so now my FO looks like:
> 
> <fo:block
> font-family="GillSansStd,GillSansStd-Italic,GillSansStd-
> BoldItalic,GillSansStd-Bold"
> font-size="10.5pt" font-weight="bold">General</fo:block>
> 
> but I'm still getting:
> 
> [fop] 7569 WARN [ main ] org.apache.fop.apps.FOUserAgent -
>   Font "GillSansStd,normal,700" not found.
>   Substituting with "GillSansStd,normal,400".

Sorry for misleading info, the above method doesn't work for me either. It
was based on some recent experiments which seemed to be working, but it was
rather a coincidence.

Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to