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] Re: Generating font metricss file for Helvetica-Bold, Helvetica and Times-Roman?


Thanks Vincent,

I am using FC6 and there does seem to be a gsfonts rpm available on my
yum server.
There is a ghostscript rpm and I have that installed but it doesn't seem to have
files for the Helvetica fonts.  I decided to give up on Helvetica fonts and just
use the the Roman font I found.  To make sure that all fonts used in my PDF
I did this in my custome style sheet ...

<xsl:param name="body.font.family">LMRomanDemi10-Regular</xsl:param>
<xsl:param name="title.font.family">LMRomanDemi10-Regular</xsl:param>

and this in my userconf.xml file ...

<fonts>
 <font metrics-file="lmb10.xml" kerning="yes" embed-file="lmb10.pfb">
    <font-triplet name="LMRomanDemi10-Regular" style="normal" weight="normal"/>
 </font>
 <font metrics-file="lmb10.xml" kerning="yes" embed-file="lmb10.pfb">
    <font-triplet name="LMRomanDemi10-Regular" style="normal" weight="bold"/>
 </font>
</fonts>
... now when I make my PDF I get this output from pdffonts ...

[plankton@dell002 LULU_BOOKS]$ pdffonts ideal_bartender_g.pdf
name                                 type         emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
LMRomanDemi10-Regular                Type 1       yes no  no     116  0
LMRomanDemi10-Regular                Type 1       yes no  no     120  0

... and this acceptable to lulu.com so its ok by me :)


On 9/21/07, Vincent Hennebert <vincent.hennebert@anyware-tech.com> wrote:
> Hi,
>
> You appear to be on a Linux box. Install the gsfonts package ("Fonts for
> the Ghostscript interpreter(s)"). You will get clones of the 35
> well-known Postscript fonts, among which the base 14 PDF fonts (Times,
> Helvetica, Courier...).
> Go to the directory where these fonts are installed (probably
> /usr/share/fonts/type1/gsfonts)
>     $ grep FullName *.afm
> You will get, for each file, the name of the font described in it.
> "Nimbus Roman No9 L" corresponds to Times, "Nimbus Sans L" to Helvetica,
> "Nimbus Mono L" to Courier. Pick up the corresponding pfm files and
> generate the xml metrics like you did. You're done.
>
> HTH,
> Vincent
>
>
> Sheldon Plankton a écrit :
> > I have had a minor success.  I realized that I do not have to use
> > Helvetic-Bold, Helvetica or Times-Roman (At least I hope I do not.)
> > Because I was able to subsitutue Times-Roman for
> > LMRomanDemi10-Regular.  This is the font in the lmb10.pfm PFM file.
> > What I had to do was this ...
> <snip/>
> >> ... the problem I am having is that lmb10.pfm is not the pfm file for
> >> Helvetic-Bold, Helvetica or Times-Roman.  Where are the pfm files for
> >> these fonts?
> >>
> >> Thanks
>
> ---------------------------------------------------------------------
> 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]