[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] RE: monospace font-size in FO output
Bob, That was perfect!! One more thing... This doesn't seem to have any effect on the text blocks inside of tables or lists. The line-stacking-strategy doesn't get propagated to fo:block elements. Are there properties that control those as well? Or do I need to customize the templates that generate the fo:blocks? Thanks, Eric -----Original Message----- From: Bob Stayton [mailto:bobs@sagehill.net] Sent: Tuesday, April 07, 2009 7:45 PM To: Eric Johnson; docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] RE: monospace font-size in FO output Hi Eric, If you want constant spacing of lines regardless of the height of the text in the lines, set this property on the fo:block: line-stacking-strategy="font-height" That sets the line spacing to be the line-height for the nominal font used for the block. You could set it in the normal.para.spacing attribute-set. Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Eric Johnson" <EMJOHNSO@progress.com> To: <docbook-apps@lists.oasis-open.org> Sent: Tuesday, April 07, 2009 4:17 PM Subject: RE: [docbook-apps] RE: monospace font-size in FO output Bob, Thanks for the tip. I update my customization layer to use: <xsl:attribute-set name="monospace.properties"> <xsl:attribute name="line-height">0.85em</xsl:attribute> <xsl:attribute name="font-size">0.9em</xsl:attribute> </xsl:attribute-set> But, I still get the extra space between the lines. I tried shrinking the line-height but it doesn't seem to have an effect. It shows up in the FO output, but not in the PDF. I can shrink the font-size and the font shrinks, but the extra space stays. I use XEP so I'm assuming that it supports line-height. Are there other properties that I could have set that would invalidate the line-height setting. TIA, Eric -----Original Message----- From: Bob Stayton [mailto:bobs@sagehill.net] Sent: Tuesday, April 07, 2009 6:54 PM To: Eric Johnson; docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] RE: monospace font-size in FO output Hi Eric, I use something like this: <xsl:attribute-set name="monospace.properties"> <xsl:attribute name="line-height">0.85em</xsl:attribute> <xsl:attribute name="font-size"> <xsl:choose> <xsl:when test="ancestor::note or ancestor::warning or ancestor::important or ancestor::caution or ancestor::title or ancestor::literal or ancestor::filename or ancestor::programlisting or ancestor::literallayout">0.9em</xsl:when> <xsl:otherwise>0.85em</xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:attribute-set> The use of em units means it is proportional to the current font size, so it works for titles. The reason for the xsl:choose is because the sans-serif font I use for the listed elements has a larger x-height, so 0.9em looks better inline than the 0.85em used for body text. You can experiment as needed. Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Eric Johnson" <EMJOHNSO@progress.com> To: <docbook-apps@lists.oasis-open.org> Sent: Tuesday, April 07, 2009 3:14 PM Subject: [docbook-apps] RE: monospace font-size in FO output What I'm trying to fix is the extra spacing between lines when I use courier new. -----Original Message----- From: Eric Johnson Sent: Tuesday, April 07, 2009 2:57 PM To: docbook-apps@lists.oasis-open.org Subject: monospace font-size in FO output Is there a way to adjust the font-size used for monospace fonts that does not for titles and headers to use the same size as the body text? I'm using CourierNew and need to make it shrink about 90% in order to not make my line spacing look all ragged. --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org --------------------------------------------------------------------- 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]