given my limited knowledge of font manipulation, i'm not sure
if i'm asking a reasonable question here, but i'll give it a shot.

  i'm writing in docbook, and generating PDF with the use of 
xsltproc and FOP.  by following the instructions on the web site,
i've added some individual new fonts to the PDF, and they work
fine.  from some individual TTF files, i created the monospaced
Vera Bitstream font metrics files:

  VeraMono.xml (reg)
  VeraMoIt.xml (italic)
  VeraMoBd.xml (bold)
  VeraMoBI.xml (bold, italic)


i then created the userconfig.xml file to reflect the new metrics files:

----------------------------------------------
<configuration>

<fonts>
 <font metrics-file="XSL/fonts/VeraMono.xml" kerning="yes" 
embed-file="XSL/fonts/VeraMono.ttf">
    <font-triplet name="VeraMono" style="normal" weight="normal"/>
 </font>
 <font metrics-file="XSL/fonts/VeraMoIt.xml" kerning="yes" 
embed-file="XSL/fonts/VeraMoIt.ttf">
    <font-triplet name="VeraMoIt" style="normal" weight="normal"/>
 </font>
 <font metrics-file="XSL/fonts/VeraMoBd.xml" kerning="yes" 
embed-file="XSL/fonts/VeraMoBd.ttf">
    <font-triplet name="VeraMoBd" style="normal" weight="normal"/>
 </font>
 <font metrics-file="XSL/fonts/VeraMoBI.xml" kerning="yes" 
embed-file="XSL/fonts/VeraMoBI.ttf">
    <font-triplet name="VeraMoBI" style="normal" weight="normal"/>
 </font>
</fonts>

</configuration>

  (i'm not sure if all of the info above is required for every <font> 
entry, i just stole the above straight from the web page.)

----------------------------------------------

  and finally, as a test, i associated the standard monospaced version of 
this font with inline monospaced sequences using the stylesheet 
customization:

--------------------------------------
<xsl:template name="inline.monoseq">
  <xsl:param name="content">
    <xsl:apply-templates/>
  </xsl:param>
  <fo:inline font-family="VeraMono">
    <xsl:copy-of select="$content"/>
  </fo:inline>
</xsl:template>
--------------------------------------

  and now, my inline monospaced sequences in my document (docbook elements 
such as <filename>, <varname>, <constant> and so on) show up in the 
expected VeraMono font.  so far, so good.

  but this approach (and i'm probably going to mangle terminology here)
requires me to associate those four font variations individually with
different docbook environments.  setting the font for inline.monoseq
doesn't change the monospaced font for block environments like <screen>
and so on.  so i'd like to do a global, document-wide change to use the vera
fonts for all monospaced elements.

  the docbook FO stylesheets have a parameter

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

that i'd obviously like to change to reflect the vera fonts for now.
but this seems to require being able to refer to that collection of font
metrics files by a single name.  is this what is referred to as a
"TrueType Collections Font Metrics" that i see on the FOP fonts page?

  i just want to be able to say, monospaced fonts are all now vera, and
have the appropriate variation (regular, bold, ...) chosen for that
rendering automatically.

  is any of this making sense?  adding the individual metrics files has
worked fine so far.  now i just need a way to refer to an entire font 
family for that stylesheet parameter.  

  hints?

rday


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to