monospace.verbatim.font.width.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <refentry xmlns="http://docbook.org/ns/docbook"
  2. xmlns:xlink="http://www.w3.org/1999/xlink"
  3. xmlns:xi="http://www.w3.org/2001/XInclude"
  4. xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
  5. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  6. version="5.0" xml:id="monospace.verbatim.font.width">
  7. <refmeta>
  8. <refentrytitle>monospace.verbatim.font.width</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">length</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>monospace.verbatim.font.width</refname>
  13. <refpurpose>Width of a single monospace font character</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="monospace.verbatim.font.width.frag">
  17. <xsl:param name="monospace.verbatim.font.width">0.60em</xsl:param>
  18. </src:fragment>
  19. </refsynopsisdiv>
  20. <refsection><info><title>Description</title></info>
  21. <para>Specifies with em units the width of a single character
  22. of the monospace font. The default value is <literal>0.6em</literal>.</para>
  23. <para>This parameter is only used when a <tag>screen</tag>
  24. or <tag>programlisting</tag> element has a
  25. <tag class="attribute">width</tag> attribute, which is
  26. expressed as a plain integer to indicate the maximum character count
  27. of each line.
  28. To convert this character count to an actual maximum width
  29. measurement, the width of the font characters must be provided.
  30. Different monospace fonts have different character width,
  31. so this parameter should be adjusted to fit the
  32. monospace font being used.
  33. </para>
  34. </refsection>
  35. </refentry>