OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] embedding fonts in generated pdf

I second the suggestion of using fonts other than the "standard" fonts for embedding in PDFs. The Type 1 fonts you list are not embeddable unless you purchase the font outlines from Adobe and install them on your system. The font outlines (the code that draws the letter shapes) are not included in any operating system that I know of because of that licensing fee. They were originally built into every printing device, and so the operating system only needed to the font metric files to set type in those fonts. Windows substitutes Arial and Times New Roman TrueType fonts, which are embeddable.

Bob Stayton
Sagehill Enterprises

----- Original Message ----- From: "Thomas Schraitle" <tom_schr@web.de>
To: <docbook-apps@lists.oasis-open.org>
Cc: "Stefan Seefeld" <stefan@seefeld.name>
Sent: Monday, July 16, 2012 9:25 AM
Subject: Re: [docbook-apps] embedding fonts in generated pdf

Hi Stefan,

Am Montag, 16. Juli 2012, 10:55:48 schrieb Stefan Seefeld:

[...] I hope that the question is
common enough in this community that someone may actually be able to help.

But it's related to DocBook. ;-)

For an IEEE paper submission I need to embed the used fonts into the
pdf. I'm using fop, and `pdffonts paper.pdf` reports

name                  type              emb sub uni object ID
--------------------- ----------------- --- --- --- ---------
Helvetica             Type 1            no  no  no     181  0
Times-Roman           Type 1            no  no  no     182  0
Times-BoldItalic      Type 1            no  no  no     183  0
Courier               Type 1            no  no  no     184  0
Times-Italic          Type 1            no  no  no     185  0
Times-Bold            Type 1            no  no  no     186  0

http://www.sagehill.net/docbookxsl/AddFont.html suggests that I need to
generate a font metrics file for the fonts I'd like to embed. So I'm
looking for the above fonts on my system (Fedora 17).

I don't think you need the font metric files anymore. FOP can automatically
detect any font, see [1]. You just need to tell FOP what directory it needs to
be searched:

  <renderer mime="application/pdf">
        <!-- register all the fonts found in a directory -->

        <!-- automatically detect operating system installed fonts -->

Any suggestion as to how to embed the standard (default) fonts when
generating pdf from DocBook ?

Does it really need to be the "standard" fonts? There are so many fonts out
there that are more legible and aesthetically more pleasant than these boring
"standard" fonts.

I've collected a small, but incomplete list in my book's project[2].
Unfortunately, the topic isn't finished yet and contains some FIXMEs and TBDs.
:) Maybe you find some fonts which is for your needs.

If you have found some, make sure to set the font parameters in [3]. Set at
least body.font.family, sans.font.family, and monospace.font.family.

Have fun!

------ References
[1] http://xmlgraphics.apache.org/fop/trunk/fonts.html
[2] http://doccookbook.sf.net/html/en/dbc.common.fonts.html
[3] http://docbook.sourceforge.net/release/xsl/current/doc/fo/fonts.html

 Thomas Schraitle

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

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]