This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] want to add extra fonts to docbook -> fo processing


  my current project consists of a sizable manual written in docbook, run
through xsltproc to generate .fo, and finally through FOP to generate PDF.  
so far, so good, although i'd really like to replace the default monospace
font.

  at the moment, the default monospace courier just looks too wide and
takes up too much space, so i'd like to replace it with the monospace font
that o'reilly is using in their newer books -- they list it as
"LucasFont's TheSans Mono Condensed."  although it appears that that's a
commercial font, so i'll take anything resaonably close i don't have to
pay for. :-)  i just want a monospace font that's noticeably narrower,
that's all.  so how to go about this?

  first, if i want all monospaced environments to use whatever replacement
font i come up with, i assume all i need to do is set the parameter

<xsl:param name='monospace.font.family' select="'whatever','monospace'"/>

  (at the moment, it's set to just 'monospace', so if i want to add a
higher-priority selection, is that how i'd do it?)

  once i do the above, i assume i can redefine whatever elements i want
using "inline.monoseq", "inline.boldmonoseq" and so on.

  so the questions:

  1) any recommendations for decent narrow monospaced fonts?

  2) what would i need to put in place of "whatever" above?  from what
     i read, i can name the font any way i want since all i have to do
     is use the same name in the FOP step.

  3) anyone successfully added additional fonts to FOP, based on the 
     web page http://xml.apache.org/fop/fonts.html ??  

in short, if anyone has gone through this process, i'd be delighted
to hear how you did it.

rday

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]