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 certainly appreciate the suggestion.
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".
What is supposed to translate "normal,700" into "bold"?
When I create a simple document in Word setting the font to Gill Sans Std
and insert bold, italic, and bold-italic and convert the file into PDF
and look at the Document Properties, Fonts, I see:
GillSansStd-Bold (Embedded Subset)
and such for the other three flavors, so I believe I have the right
font names and that they are properly installed.
(I also get bold as desired using a different XML editor and
FO processor.)
If FOP's auto-detection is the problem, is there a way to work
around it? I just don't know enough about FOP's internals to
know what could be going wrong and how to fix it.
thanks,
paul
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org