Re: [docbook-apps] Using custom fonts

2015-03-12 Thread Alan Oehler
@Martin,

That doesn't work. I get an exception: No output file specified

On Wed, Mar 11, 2015 at 11:07 AM, Martin Doucha next_gh...@quick.cz wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Dne 11.3.2015 v 17:39 Alan Oehler napsal(a):
  Any other ideas about what might be wrong here? I've Googled a
  bunch and I find some places where people had trouble with HTML
  output not being italic or bold when expected, but pretty much
  reached a dead end on fop PDF output.

 Let's check if FOP can really see the fonts you need. Copy your
 /usr/bin/fop somewhere and open it with a text editor. On Gentoo, it
 looks like this:

  #!/bin/bash gjl_package=fop gjl_main=org.apache.fop.cli.Main
  source /usr/share/java-config-2/launcher/launcher.bash

 gjl_main is the name of entry point class: org.apache.fop.cli.Main

 Whatever your script looks like, search for that string (without
 quotation marks) and change it to this:

 org.apache.fop.tools.fontlist.FontListMain

 Now run the modified launcher script like this:

 ./fop -c your/config/file.xml fontlist.pdf

 The output file (fontlist.pdf) will contain samples of all fonts known
 to FOP, one font per page.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2

 iQEcBAEBAgAGBQJVAIRVAAoJEETC23Hm5VDdyjcIAJWMGGeMKubiC2NfMVrtZi2M
 pECGePSgYHS3fc6VPrvfKr7HRZs+iG4+Y+ylTlY8iOsWjooJ+Ov+RPVPBp6VlxBM
 5RtISHZWjpk87nxjRsAaUDoYp88rrqp0/Xolv52lEfl8ldqYh+XtbQmLJGF5ktxU
 Cn9YYssVAJR6nJudgcYyEpW6uWNZUXqJPPC1aWdeeJi16aZ4HVBAlLY6YsWsPQkh
 f/92Ovm6Mq/Gx+XUE3/gtIHJ+OsmJApr0vZZhua+73BVLZqEiV7c/HakITRg4shZ
 ZyPFmwypBvjHR5yJIlIj84mgVbMTlmPY3hrXDM8nHvgCUqz2P0RpLeN6hA3A2dY=
 =Lpim
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
 For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org




-- 
Regards,
Alan

[image: Instart Logic] http://instartlogic.com/

Alan C. Oehler
Senior Technical Writer

Phone: 650-919-8856 | Email: aoeh...@instartlogic.com
Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com


Re: [docbook-apps] Using custom fonts

2015-03-11 Thread Aaron DaMommio
I had problems like this as well when switching to FOP.

I had to be very careful with parameter settings in my customization layer,
like body.font.family.

We had been using XEP, and in modifying my layer for FOP, I found it would
often not find the italics version of the body font. In some cases I
limited some items to an italic font.
With XEP, I'd provide a list of fonts or just the base font name, and it
would find the italic version, but with FOP, it wouldn't.
--Aaron DaMommio

On Wed, Mar 11, 2015 at 11:39 AM, Alan Oehler aoeh...@instartlogic.com
wrote:

 Any other ideas about what might be wrong here? I've Googled a bunch and I
 find some places where people had trouble with HTML output not being italic
 or bold when expected, but pretty much reached a dead end on fop PDF output.

 On Fri, Mar 6, 2015 at 2:40 PM, Alan Oehler aoeh...@instartlogic.com
 wrote:

 Made that change, and it didn't help the emphasis issue.

 On Fri, Mar 6, 2015 at 2:32 PM, Thomas Schraitle tom_s...@web.de wrote:

 Hi Alan,

 Am Freitag, 6. März 2015, 23:28:56 schrieb Thomas Schraitle:
 
   I created a fop config file to register Trebuchet as my basic body
 font
   and Consolas as my monotype font.
  [...]
  
   I added all four variants of both fonts (normal, italic, bold and
 bold
   italic). Is there some other detail I'm missing?
 
  Register Trebuchet? Which version of FOP do you use?
 
  As far as I know, registering a font is not needed anymore for 1.0.

 I forgot to add my example. Here is an excerpt of the PDF renderer:

  renderers
   renderer mime=application/pdf
fonts
 !--
 register all the fonts found in a directory
 use recursive=true to also include subdirectories
  --
  directory/usr/share/fonts/truetype//directory

  !-- automatically detect operating system installed fonts --
  auto-detect/
/fonts
   /renderer
  /renderers


 --
 Gruß/Regards
   Thomas Schraitle


 -
 To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
 For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org




 --
 Regards,
 Alan

 [image: Instart Logic] http://instartlogic.com/

 Alan C. Oehler
 Senior Technical Writer

 Phone: 650-919-8856 | Email: aoeh...@instartlogic.com
 Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com




 --
 Regards,
 Alan

 [image: Instart Logic] http://instartlogic.com/

 Alan C. Oehler
 Senior Technical Writer

 Phone: 650-919-8856 | Email: aoeh...@instartlogic.com
 Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com




-- 
--
Aaron DaMommio: Husband, father, writer, juggler, and expert washer of
dishes.
- My blog: http://aarondamommio.blogspot.com
- Need a juggler?  http://amazingaaronjuggler.blogspot.com/
===


Re: [docbook-apps] Using custom fonts

2015-03-11 Thread Alan Oehler
Thanks for the ideas.

As far as the fop xconf file, I tried both – I first specified the path for
each of the four variants of Trebuchet MS and for Consolas; then I tried
Thomas' suggestion. In both cases it works the same – the italic and bold
do not appear in the PDF output.

I'm thinking maybe I'm missing some parameter settings. In my XSL
customization layer I have

xsl:param name=body.font.familyTrebuchet MS/xsl:param
xsl:param name=monospace.font.familyConsolas/xsl:param

I was assuming that the base family name was the only parameter value,
needed but maybe I'm missing something?

On Wed, Mar 11, 2015 at 9:59 AM, Aaron DaMommio aa...@damommio.com wrote:

 I had problems like this as well when switching to FOP.

 I had to be very careful with parameter settings in my customization
 layer, like body.font.family.

 We had been using XEP, and in modifying my layer for FOP, I found it would
 often not find the italics version of the body font. In some cases I
 limited some items to an italic font.
 With XEP, I'd provide a list of fonts or just the base font name, and it
 would find the italic version, but with FOP, it wouldn't.
 --Aaron DaMommio

 On Wed, Mar 11, 2015 at 11:39 AM, Alan Oehler aoeh...@instartlogic.com
 wrote:

 Any other ideas about what might be wrong here? I've Googled a bunch and
 I find some places where people had trouble with HTML output not being
 italic or bold when expected, but pretty much reached a dead end on fop PDF
 output.

 On Fri, Mar 6, 2015 at 2:40 PM, Alan Oehler aoeh...@instartlogic.com
 wrote:

 Made that change, and it didn't help the emphasis issue.

 On Fri, Mar 6, 2015 at 2:32 PM, Thomas Schraitle tom_s...@web.de
 wrote:

 Hi Alan,

 Am Freitag, 6. März 2015, 23:28:56 schrieb Thomas Schraitle:
 
   I created a fop config file to register Trebuchet as my basic body
 font
   and Consolas as my monotype font.
  [...]
  
   I added all four variants of both fonts (normal, italic, bold and
 bold
   italic). Is there some other detail I'm missing?
 
  Register Trebuchet? Which version of FOP do you use?
 
  As far as I know, registering a font is not needed anymore for 1.0.

 I forgot to add my example. Here is an excerpt of the PDF renderer:

  renderers
   renderer mime=application/pdf
fonts
 !--
 register all the fonts found in a directory
 use recursive=true to also include subdirectories
  --
  directory/usr/share/fonts/truetype//directory

  !-- automatically detect operating system installed fonts --
  auto-detect/
/fonts
   /renderer
  /renderers


 --
 Gruß/Regards
   Thomas Schraitle


 -
 To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
 For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org




 --
 Regards,
 Alan

 [image: Instart Logic] http://instartlogic.com/

 Alan C. Oehler
 Senior Technical Writer

 Phone: 650-919-8856 | Email: aoeh...@instartlogic.com
 Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com




 --
 Regards,
 Alan

 [image: Instart Logic] http://instartlogic.com/

 Alan C. Oehler
 Senior Technical Writer

 Phone: 650-919-8856 | Email: aoeh...@instartlogic.com
 Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com




 --
 --
 Aaron DaMommio: Husband, father, writer, juggler, and expert washer of
 dishes.
 - My blog: http://aarondamommio.blogspot.com
 - Need a juggler?  http://amazingaaronjuggler.blogspot.com/
 ===




-- 
Regards,
Alan

[image: Instart Logic] http://instartlogic.com/

Alan C. Oehler
Senior Technical Writer

Phone: 650-919-8856 | Email: aoeh...@instartlogic.com
Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com


Re: [docbook-apps] Using custom fonts

2015-03-11 Thread Alan Oehler
Any other ideas about what might be wrong here? I've Googled a bunch and I
find some places where people had trouble with HTML output not being italic
or bold when expected, but pretty much reached a dead end on fop PDF output.

On Fri, Mar 6, 2015 at 2:40 PM, Alan Oehler aoeh...@instartlogic.com
wrote:

 Made that change, and it didn't help the emphasis issue.

 On Fri, Mar 6, 2015 at 2:32 PM, Thomas Schraitle tom_s...@web.de wrote:

 Hi Alan,

 Am Freitag, 6. März 2015, 23:28:56 schrieb Thomas Schraitle:
 
   I created a fop config file to register Trebuchet as my basic body
 font
   and Consolas as my monotype font.
  [...]
  
   I added all four variants of both fonts (normal, italic, bold and bold
   italic). Is there some other detail I'm missing?
 
  Register Trebuchet? Which version of FOP do you use?
 
  As far as I know, registering a font is not needed anymore for 1.0.

 I forgot to add my example. Here is an excerpt of the PDF renderer:

  renderers
   renderer mime=application/pdf
fonts
 !--
 register all the fonts found in a directory
 use recursive=true to also include subdirectories
  --
  directory/usr/share/fonts/truetype//directory

  !-- automatically detect operating system installed fonts --
  auto-detect/
/fonts
   /renderer
  /renderers


 --
 Gruß/Regards
   Thomas Schraitle


 -
 To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
 For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org




 --
 Regards,
 Alan

 [image: Instart Logic] http://instartlogic.com/

 Alan C. Oehler
 Senior Technical Writer

 Phone: 650-919-8856 | Email: aoeh...@instartlogic.com
 Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com




-- 
Regards,
Alan

[image: Instart Logic] http://instartlogic.com/

Alan C. Oehler
Senior Technical Writer

Phone: 650-919-8856 | Email: aoeh...@instartlogic.com
Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com


Re: [docbook-apps] Using custom fonts

2015-03-11 Thread Martin Doucha
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dne 11.3.2015 v 17:39 Alan Oehler napsal(a):
 Any other ideas about what might be wrong here? I've Googled a
 bunch and I find some places where people had trouble with HTML
 output not being italic or bold when expected, but pretty much
 reached a dead end on fop PDF output.

Let's check if FOP can really see the fonts you need. Copy your
/usr/bin/fop somewhere and open it with a text editor. On Gentoo, it
looks like this:

 #!/bin/bash gjl_package=fop gjl_main=org.apache.fop.cli.Main 
 source /usr/share/java-config-2/launcher/launcher.bash

gjl_main is the name of entry point class: org.apache.fop.cli.Main

Whatever your script looks like, search for that string (without
quotation marks) and change it to this:

org.apache.fop.tools.fontlist.FontListMain

Now run the modified launcher script like this:

./fop -c your/config/file.xml fontlist.pdf

The output file (fontlist.pdf) will contain samples of all fonts known
to FOP, one font per page.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQEcBAEBAgAGBQJVAIRVAAoJEETC23Hm5VDdyjcIAJWMGGeMKubiC2NfMVrtZi2M
pECGePSgYHS3fc6VPrvfKr7HRZs+iG4+Y+ylTlY8iOsWjooJ+Ov+RPVPBp6VlxBM
5RtISHZWjpk87nxjRsAaUDoYp88rrqp0/Xolv52lEfl8ldqYh+XtbQmLJGF5ktxU
Cn9YYssVAJR6nJudgcYyEpW6uWNZUXqJPPC1aWdeeJi16aZ4HVBAlLY6YsWsPQkh
f/92Ovm6Mq/Gx+XUE3/gtIHJ+OsmJApr0vZZhua+73BVLZqEiV7c/HakITRg4shZ
ZyPFmwypBvjHR5yJIlIj84mgVbMTlmPY3hrXDM8nHvgCUqz2P0RpLeN6hA3A2dY=
=Lpim
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Using custom fonts

2015-03-11 Thread Alan Oehler
Just for grins I tried several other fonts – Verdana, Tahoma, Garamond,
Palatino Linotype – and all come out as they should. So far only Tahoma MS
doesn't.

On Wed, Mar 11, 2015 at 11:27 AM, Alan Oehler aoeh...@instartlogic.com
wrote:

 I tried switching to another font in the same directory as Trebuchet MS –
 this time Georgia – and lo and behold, the italics and boldness are back!
 So clearly fop seems to be able to find the fonts and it seems to be able
 to recognize the variants with Georgia just fine, but not with Trebuchet
 MS. Very strange.

 On Wed, Mar 11, 2015 at 11:18 AM, Alan Oehler aoeh...@instartlogic.com
 wrote:

 @Martin,

 That doesn't work. I get an exception: No output file specified

 On Wed, Mar 11, 2015 at 11:07 AM, Martin Doucha next_gh...@quick.cz
 wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Dne 11.3.2015 v 17:39 Alan Oehler napsal(a):
  Any other ideas about what might be wrong here? I've Googled a
  bunch and I find some places where people had trouble with HTML
  output not being italic or bold when expected, but pretty much
  reached a dead end on fop PDF output.

 Let's check if FOP can really see the fonts you need. Copy your
 /usr/bin/fop somewhere and open it with a text editor. On Gentoo, it
 looks like this:

  #!/bin/bash gjl_package=fop gjl_main=org.apache.fop.cli.Main
  source /usr/share/java-config-2/launcher/launcher.bash

 gjl_main is the name of entry point class: org.apache.fop.cli.Main

 Whatever your script looks like, search for that string (without
 quotation marks) and change it to this:

 org.apache.fop.tools.fontlist.FontListMain

 Now run the modified launcher script like this:

 ./fop -c your/config/file.xml fontlist.pdf

 The output file (fontlist.pdf) will contain samples of all fonts known
 to FOP, one font per page.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2

 iQEcBAEBAgAGBQJVAIRVAAoJEETC23Hm5VDdyjcIAJWMGGeMKubiC2NfMVrtZi2M
 pECGePSgYHS3fc6VPrvfKr7HRZs+iG4+Y+ylTlY8iOsWjooJ+Ov+RPVPBp6VlxBM
 5RtISHZWjpk87nxjRsAaUDoYp88rrqp0/Xolv52lEfl8ldqYh+XtbQmLJGF5ktxU
 Cn9YYssVAJR6nJudgcYyEpW6uWNZUXqJPPC1aWdeeJi16aZ4HVBAlLY6YsWsPQkh
 f/92Ovm6Mq/Gx+XUE3/gtIHJ+OsmJApr0vZZhua+73BVLZqEiV7c/HakITRg4shZ
 ZyPFmwypBvjHR5yJIlIj84mgVbMTlmPY3hrXDM8nHvgCUqz2P0RpLeN6hA3A2dY=
 =Lpim
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
 For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org




 --
 Regards,
 Alan

 [image: Instart Logic] http://instartlogic.com/

 Alan C. Oehler
 Senior Technical Writer

 Phone: 650-919-8856 | Email: aoeh...@instartlogic.com
 Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com




 --
 Regards,
 Alan

 [image: Instart Logic] http://instartlogic.com/

 Alan C. Oehler
 Senior Technical Writer

 Phone: 650-919-8856 | Email: aoeh...@instartlogic.com
 Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com




-- 
Regards,
Alan

[image: Instart Logic] http://instartlogic.com/

Alan C. Oehler
Senior Technical Writer

Phone: 650-919-8856 | Email: aoeh...@instartlogic.com
Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com


Re: [docbook-apps] Using custom fonts

2015-03-11 Thread Alan Oehler
I tried switching to another font in the same directory as Trebuchet MS –
this time Georgia – and lo and behold, the italics and boldness are back!
So clearly fop seems to be able to find the fonts and it seems to be able
to recognize the variants with Georgia just fine, but not with Trebuchet
MS. Very strange.

On Wed, Mar 11, 2015 at 11:18 AM, Alan Oehler aoeh...@instartlogic.com
wrote:

 @Martin,

 That doesn't work. I get an exception: No output file specified

 On Wed, Mar 11, 2015 at 11:07 AM, Martin Doucha next_gh...@quick.cz
 wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Dne 11.3.2015 v 17:39 Alan Oehler napsal(a):
  Any other ideas about what might be wrong here? I've Googled a
  bunch and I find some places where people had trouble with HTML
  output not being italic or bold when expected, but pretty much
  reached a dead end on fop PDF output.

 Let's check if FOP can really see the fonts you need. Copy your
 /usr/bin/fop somewhere and open it with a text editor. On Gentoo, it
 looks like this:

  #!/bin/bash gjl_package=fop gjl_main=org.apache.fop.cli.Main
  source /usr/share/java-config-2/launcher/launcher.bash

 gjl_main is the name of entry point class: org.apache.fop.cli.Main

 Whatever your script looks like, search for that string (without
 quotation marks) and change it to this:

 org.apache.fop.tools.fontlist.FontListMain

 Now run the modified launcher script like this:

 ./fop -c your/config/file.xml fontlist.pdf

 The output file (fontlist.pdf) will contain samples of all fonts known
 to FOP, one font per page.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2

 iQEcBAEBAgAGBQJVAIRVAAoJEETC23Hm5VDdyjcIAJWMGGeMKubiC2NfMVrtZi2M
 pECGePSgYHS3fc6VPrvfKr7HRZs+iG4+Y+ylTlY8iOsWjooJ+Ov+RPVPBp6VlxBM
 5RtISHZWjpk87nxjRsAaUDoYp88rrqp0/Xolv52lEfl8ldqYh+XtbQmLJGF5ktxU
 Cn9YYssVAJR6nJudgcYyEpW6uWNZUXqJPPC1aWdeeJi16aZ4HVBAlLY6YsWsPQkh
 f/92Ovm6Mq/Gx+XUE3/gtIHJ+OsmJApr0vZZhua+73BVLZqEiV7c/HakITRg4shZ
 ZyPFmwypBvjHR5yJIlIj84mgVbMTlmPY3hrXDM8nHvgCUqz2P0RpLeN6hA3A2dY=
 =Lpim
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
 For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org




 --
 Regards,
 Alan

 [image: Instart Logic] http://instartlogic.com/

 Alan C. Oehler
 Senior Technical Writer

 Phone: 650-919-8856 | Email: aoeh...@instartlogic.com
 Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com




-- 
Regards,
Alan

[image: Instart Logic] http://instartlogic.com/

Alan C. Oehler
Senior Technical Writer

Phone: 650-919-8856 | Email: aoeh...@instartlogic.com
Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com


Re: [docbook-apps] Using custom fonts

2015-03-06 Thread Alan Oehler
Made that change, and it didn't help the emphasis issue.

On Fri, Mar 6, 2015 at 2:32 PM, Thomas Schraitle tom_s...@web.de wrote:

 Hi Alan,

 Am Freitag, 6. März 2015, 23:28:56 schrieb Thomas Schraitle:
 
   I created a fop config file to register Trebuchet as my basic body font
   and Consolas as my monotype font.
  [...]
  
   I added all four variants of both fonts (normal, italic, bold and bold
   italic). Is there some other detail I'm missing?
 
  Register Trebuchet? Which version of FOP do you use?
 
  As far as I know, registering a font is not needed anymore for 1.0.

 I forgot to add my example. Here is an excerpt of the PDF renderer:

  renderers
   renderer mime=application/pdf
fonts
 !--
 register all the fonts found in a directory
 use recursive=true to also include subdirectories
  --
  directory/usr/share/fonts/truetype//directory

  !-- automatically detect operating system installed fonts --
  auto-detect/
/fonts
   /renderer
  /renderers


 --
 Gruß/Regards
   Thomas Schraitle


 -
 To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
 For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org




-- 
Regards,
Alan

[image: Instart Logic] http://instartlogic.com/

Alan C. Oehler
Senior Technical Writer

Phone: 650-919-8856 | Email: aoeh...@instartlogic.com
Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com


Re: [docbook-apps] Using custom fonts

2015-03-06 Thread Thomas Schraitle
Hi Alan,

Am Freitag, 6. März 2015, 14:13:40 schrieb Alan Oehler:
 I created a fop config file to register Trebuchet as my basic body font and
 Consolas as my monotype font. Worked beautifully – except it seems like all
 the places where I'd used emphasis.../emphasis are no longer
 italicized, and where I'd used emphasis role=bold.../emphasis are
 no longer bolded (emboldened?).
 
 I added all four variants of both fonts (normal, italic, bold and bold
 italic). Is there some other detail I'm missing?

Register Trebuchet? Which version of FOP do you use?

As far as I know, registering a font is not needed anymore for 1.0. You only 
have to insert your base directory of all your fonts and FOP does the rest. 
See [1] of an example of FOP's configuration file.

If you use an older version than 1.0, I would strongly suggest to upgrade to 
the latest version.

[1] https://xmlgraphics.apache.org/fop/1.1/configuration.html#general-elements

-- 
Gruß/Regards
  Thomas Schraitle


-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Using custom fonts

2015-03-06 Thread Thomas Schraitle
Hi Alan,

Am Freitag, 6. März 2015, 23:28:56 schrieb Thomas Schraitle:
 
  I created a fop config file to register Trebuchet as my basic body font
  and Consolas as my monotype font. 
 [...]
  
  I added all four variants of both fonts (normal, italic, bold and bold
  italic). Is there some other detail I'm missing?
 
 Register Trebuchet? Which version of FOP do you use?
 
 As far as I know, registering a font is not needed anymore for 1.0. 

I forgot to add my example. Here is an excerpt of the PDF renderer:

 renderers
  renderer mime=application/pdf
   fonts
!--
register all the fonts found in a directory
use recursive=true to also include subdirectories
 --
 directory/usr/share/fonts/truetype//directory

 !-- automatically detect operating system installed fonts --
 auto-detect/
   /fonts
  /renderer
 /renderers


-- 
Gruß/Regards
  Thomas Schraitle


-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org