You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Scott Hofmann <ho...@one.net> on 2001/02/09 20:13:56 UTC

Font Dimensions

I'm trying to understand how text is dimensioned vertically. If I put text
into a fo:block I notice space occurring before and after the text in
addition to the height of the font itself. How do I figure out how much
space is placed above and below the font so I can come up with a total
amount of space that will be used vertically in a particular fo:block?

space above the letter + the letter height + the space below the letter  = ?
Is there a way to calculate this? Does the space above and below vary
proportionately to the font size specified for the letter?

Can someone point me in the right direction with a link or an explanation?

Scott Hofmann - hofmanns@one.net


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Font Dimensions

Posted by Scott Jones <sc...@on-sitemanager.com>.
You can control the space before and after a block by using the space-before
and space-after attributes.  For example:

<fo:block font-size="10pt" space-before.optimum="10pt">
     Hi There
</fo:block>

You can check out the spec at
http://www.w3.org/TR/2000/CR-xsl-20001121/slice7.html#space-before

I believe that FOP supports space-before.optimum and space-after.optimum
only (not the other options like minimum, maximum, etc.).  I'm not exactly
sure what the default values are.

Cheers,

Scott


----- Original Message -----
From: "Scott Hofmann" <ho...@one.net>
To: <fo...@xml.apache.org>
Sent: Friday, February 09, 2001 11:13 AM
Subject: Font Dimensions


> I'm trying to understand how text is dimensioned vertically. If I put text
> into a fo:block I notice space occurring before and after the text in
> addition to the height of the font itself. How do I figure out how much
> space is placed above and below the font so I can come up with a total
> amount of space that will be used vertically in a particular fo:block?
>
> space above the letter + the letter height + the space below the letter  =
?
> Is there a way to calculate this? Does the space above and below vary
> proportionately to the font size specified for the letter?
>
> Can someone point me in the right direction with a link or an explanation?
>
> Scott Hofmann - hofmanns@one.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org