Re: Getting bold fonts with FOP 2.0 and OpenType CFF fonts

2015-07-07 Thread Paul Grosso

I believe the fop.xconf file I am using is the distributed one.
All I am using for application/pdf is auto-detect.

You can access a copy of my xconf and fo file at
http://paulgrosso.name/outgoing/fop/fop.xconf
http://paulgrosso.name/outgoing/fop/topic.fo

thanks,

paul

On 2015-07-07 02:55, A Gian wrote:

Can you provide a copy of your xconf and fo file ?

Thanks ,
Thanasis

 Date: Mon, 6 Jul 2015 13:44:25 -0500
 From: pgrosso-consult...@austin.rr.com
 To: fop-users@xmlgraphics.apache.org
 Subject: Getting bold fonts with FOP 2.0 and OpenType CFF fonts

 I'm producing PDF using FOP, and I need to use some
 OpenType CFF fonts, so I understand I need to use 2.0.

 [I am using FOP with the DITA-OT embedded in Oxygen
 on a Windows 7 machine. I was using FOP 1.1, and the
 OpenType CFF fonts were (unsurpisingly) not getting
 used.]

 I've downloaded and installed 2.0 and was successful
 in producing the desired PDF and getting results using
 the normal versions of my OpenType CFF fonts. However,
 I was not getting bold (or italics). Rather, I am getting
 messages such as:

 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.

 I have the various fonts installed on my machine, and I
 am just using auto-detect in fop.xconf.

 In my Fonts directory, there is a Gill Sans Std folder
 containing the various GillSansStd*.otf files. In other
 document processing applications, I can see all the various
 flavors of Gill Sans Std, so I'm pretty sure they are
 properly installed. I am getting Gill Sans Std normal in
 my output, but (per the error message) not bold.

 What do I need to do the have FOP 2.0 use the bold and
 italic versions of these fonts?

 paul





RE: Getting bold fonts with FOP 2.0 and OpenType CFF fonts

2015-07-07 Thread A Gian
Can you provide a copy of your xconf and fo file ?
Thanks ,Thanasis

 Date: Mon, 6 Jul 2015 13:44:25 -0500
 From: pgrosso-consult...@austin.rr.com
 To: fop-users@xmlgraphics.apache.org
 Subject: Getting bold fonts with FOP 2.0 and OpenType CFF fonts
 
 I'm producing PDF using FOP, and I need to use some
 OpenType CFF fonts, so I understand I need to use 2.0.
 
 [I am using FOP with the DITA-OT embedded in Oxygen
 on a Windows 7 machine.  I was using FOP 1.1, and the
 OpenType CFF fonts were (unsurpisingly) not getting
 used.]
 
 I've downloaded and installed 2.0 and was successful
 in producing the desired PDF and getting results using
 the normal versions of my OpenType CFF fonts.  However,
 I was not getting bold (or italics).  Rather, I am getting
 messages such as:
 
   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.
 
 I have the various fonts installed on my machine, and I
 am just using auto-detect in fop.xconf.
 
 In my Fonts directory, there is a Gill Sans Std folder
 containing the various GillSansStd*.otf files.  In other
 document processing applications, I can see all the various
 flavors of Gill Sans Std, so I'm pretty sure they are
 properly installed.  I am getting Gill Sans Std normal in
 my output, but (per the error message) not bold.
 
 What do I need to do the have FOP 2.0 use the bold and
 italic versions of these fonts?
 
 paul
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
  

RE: Getting bold fonts with FOP 2.0 and OpenType CFF fonts

2015-07-07 Thread Jan Tosovsky
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


HTH, Jan
attachment: winmail.dat
-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Re: Getting bold fonts with FOP 2.0 and OpenType CFF fonts

2015-07-07 Thread Paul Grosso

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=boldGeneral/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



RE: Getting bold fonts with FOP 2.0 and OpenType CFF fonts

2015-07-07 Thread Jan Tosovsky
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=boldGeneral/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