I try that next week. Then I'm going to write again.

-----Ursprüngliche Nachricht-----
Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 2. Juni 2006 10:42
An: [email protected]
Betreff: Re: font size and white spaces

Rainer,

I think this is a result of font metrics. The font metrics in TrueType fonts
are a mess (various fonts interpreting the values differently).
I've recently look into this and I think I have been able to improve the
metrics handling for TrueType fonts [1]. For Type 1 fonts the metrics
situation is a lot clearer and that's why Type 1 fonts work better.

[1] http://xmlgraphics.apache.org/fop/changes.html#version_FOP%20Trunk
    ("Bugfix: Improved baseline detection in TTFReader for TrueType fonts.
(JM)")

Would you please do me a favor and test your documents with the latest FOP
from Subversion? Or at least you have to regenerate the font metrics for the
font again with the TTFReader from FOP Trunk. I've just tested it it the
result was better with your snippet.

On 02.06.2006 10:02:38 Kring, Rainer wrote:
> Hello,
> 
> we have problems with fo:blocks and text-size. We use True Type Fonts, 
> but we can't fill the fo:block completely. We have no problem filling 
> it horizontally, but there are white spaces above and below the text 
> after rendering the pdf-file.
> 
> Here an example:
> 
> <fo:table-row height="40.0pt">
> <fo:table-cell>
> </fo:table-cell>
> <fo:table-cell border-bottom-style="solid" border-bottom-width="1.0pt"
> border-left-style="solid" border-left-width="1.0pt"
> border-right-style="solid" border-right-width="1.0pt"
> border-top-style="solid" border-top-width="1.0pt" text-align="center"
> display-align="before">
> <fo:block white-space-collapse="true"  text-align="center" color="#ff0000"
> font-family="FranklinGothic-Heavy" font-size="40.0pt" 
> line-height="40pt"> <xsl:value-of disable-output-escaping="no" 
> select="price_outlet_entire"/> </fo:block> </fo:table-cell>
> 
> [no paddings!]
> 
> 
> Our questions:
> - How can we avoid that white spaces?
> - What does font-size really mean? How is the font-size corresponding 
> with the font-height? How can we detemine the maximum font-height of a 
> certain text? Are there any methods in FOP?
> - We have tested Type1 fonts. White spaces are much smaller there. Why?


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to