[publican-list] [Bug 497462] feature request: smaller font size for code samples

bugzilla at redhat.com bugzilla at redhat.com
Thu Oct 1 00:57:36 UTC 2009


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=497462





--- Comment #3 from Jeff Fearn <jfearn at redhat.com>  2009-09-30 20:57:35 EDT ---
(In reply to comment #0)
> Description of problem:
> 
> The monospaced font used for code samples is sized larger than the regular
> text.  This is often a problem with java code samples due to the verbosity of
> the language.  A smaller font size would be preferred.
> 
> /usr/share/publican/xsl/pdf.xsl has 
> 
> 114 <xsl:attribute-set name="monospace.properties">
> 115     <!-- xsl:attribute name="font-size">9pt</xsl:attribute -->
> 116     <xsl:attribute name="font-family">
> 117         <xsl:value-of select="$monospace.font.family"/>
> 118     </xsl:attribute>
> 119 </xsl:attribute-set>
> 
> Uncommenting the font-size attribute applies to all instances of the monospace
> font. 9pt looks ok, even 8pt is readable for me.  I don't know what
> typographical issues this could lead to.  

Personally I'd rather make the font size a ratio of body.font.master, which
defaults to 10.

e.g.

 <xsl:attribute name="font-size">
  <xsl:value-of select="$body.font.master * 0.9"/>
  <xsl:text>pt</xsl:text>
 </xsl:attribute>

That way if you increase body.font.master, say for a large print version, then
you only need to change one variable.

Does anyone else have an opinion on changing the monospace font size? Changing
it here will affect ALL uses of monospace, including verbatim items such as
screen and synopsis.

Cheers, Jeff.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the publican-list mailing list