The 'line-height' property is supposed to specify the height of a text block as a multiple of the font size. The spec* says that the user agent may pick a reasonable multiplier, recommended between 1 and 1.2. I said "Forget that! I want to my spacing to be deterministic, thank you very much. What is this, CSS?" So I specified my own spacing.
*http://www.w3.org/TR/xsl/slice7.html#line-height No matter what line height I pick, the engine seems to add 5pt plus a little more. So if I pick 17pt, I get 22pt+, and if I pick 7pt, I get 12pt+. The compliance page says that the property is fully implemented. So why am I getting this 5pt+ discrepancy? (Yes, line-height="1" gives the same result for me as line-height="14pt" with a 14pt font. That is, 19pt+. Setting force/minimum/maximum etc has no effect.) As you can see, I set the border, padding, and spacing to 0. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="1" page-height="5.25in" page-width="7.75in" margin-top="0cm" margin-bottom="0cm" margin-left="0cm" margin-right="0cm"> <fo:region-body margin-top="0cm" margin-bottom="0cm"/> <fo:region-before extent="0cm"/> <fo:region-after extent="0cm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="1"> <fo:flow flow-name="xsl-region-body"> <fo:block-container font-family="Papyrus" font-size="14pt" color="#ff0000" display-align="center" wrap-option="no-wrap" overflow="hidden" text-align="center" position="absolute" top="1.31in" left="0.37in" height="3.5in" width="7in"> <fo:table table-layout="fixed" width="100%"> <fo:table-column column-width="proportional-column-width(1)"/> <fo:table-body> <fo:table-row height="3.5in"> <fo:table-cell text-align="center" display-align="center"> <fo:block line-height="17pt" space-before="0pt" space-after="0pt" padding="0pt" border-width="0pt">This is line 1.</fo:block> <fo:block line-height="17pt" space-before="0pt" space-after="0pt" padding="0pt" border-width="0pt">This is line 2.</fo:block> <fo:block line-height="17pt" space-before="0pt" space-after="0pt" padding="0pt" border-width="0pt">This is line 3.</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block-container> </fo:flow> </fo:page-sequence> </fo:root> -Adam --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
