Gabriel,
Did you try specifying text-depth to control the descent below the baseline, e.g.:
[...]
<fo:table-cell border="0.1pt solid black" height="15pt" display-align="center">
<fo:block text-depth="0"> 12345 </fo:block>
</fo:table-cell>
[...]
BRs,
Jacques
-----Original Message-----
From: owner-xep-support@renderx.com [mailto:owner-xep-support@renderx.com] On Behalf Of Gabriel Birke
Sent: woensdag 27 januari 2010 9:57
To: xep-support@renderx.com
Subject: RE: [xep-support] Aligning numbers in tables
Hi,
here is the sample for the alignment problem, a table with four cells. Zoom in to the table and you will see in the upper left cell that the whitespace is bigger at the bottom than at the top - because the renderer (correctly) takes the descender height into consideration when centering. You can see that in the lower left cell: The whitespace distance between the top border and the "M" is the same as the distance between the bottom border and the "gj".
In the right cells I have tried various means of optically aligning the numbers by shifting the baseline by 10% or adding a 3pt padding at the top.
But the values come from experimentation and not from the font metrics. So my question is this: Is there a way to vertically center text in a cell, that takes only the font metrics above the baseline into consideration?
Greetings,
Gabriel
> -----Original Message-----
> From: owner-xep-support@renderx.com
> [mailto:owner-xep-support@renderx.com] On Behalf Of Karl Stubsjoen
> Sent: Tuesday, January 26, 2010 6:17 PM
> To: xep-support@renderx.com
> Subject: RE: [xep-support] Aligning numbers in tables
>
> Gabriel,
> Would you mind sending a sample FO? If none is available, maybe a
> sample XML and XSL source. A small snippet would be fine, and
> possibly a PDF sample demonstrating the alignment issue.
> Thanks,
> Karl..
>
>
> Karl Stubsjoen
> Senior Sales Engineer / Professional Services RenderX, Inc.
> (Phoenix, AZ)
>
> Got XML?
> Get RenderX!
> The Leader in XML to Print Technology
>
> +1 (925) 392-0011 Direct
> +1 (602) 451-6157 Cell +1 (650) 328-8008 Fax
> stubsjoen@renderx.com http://www.renderx.com
>
>
>
> -----Original Message-----
> From: owner-xep-support@renderx.com
> [mailto:owner-xep-support@renderx.com]
> On Behalf Of Gabriel Birke
> Sent: Tuesday, January 26, 2010 9:19 AM
> To: xep-support@renderx.com
> Subject: [xep-support] Aligning numbers in tables
>
> Hi all,
>
> We have some tables that only contain numbers. The number must be
> vertically centered. However, in our font, Franklin Gothic, all the
> numbers start on the baseline and have the same height as the caps.
> This gives the optical effect that vertically centered numbers have
> more whitespace below them than above.
>
> I must confess that I am utterly confused by all the alignment
> properties in the XSL-FO specification. Can someone point out to me
> how I can center the numbers based on the cap height of the font and
> not based on overall the font height?
>
> Greetings,
>
> Gabriel Birke
>
>
>
> -------------------
> (*) To unsubscribe, send a message with words 'unsubscribe
> xep-support'
> in the body of the message to majordomo@renderx.com from the address
> you are subscribed from.
> (*) By using the Service, you expressly agree to these Terms of
> Service http://www.renderx.com/terms-of-service.html
>
>
> -------------------
> (*) To unsubscribe, send a message with words 'unsubscribe
> xep-support'
> in the body of the message to majordomo@renderx.com from the address
> you are subscribed from.
> (*) By using the Service, you expressly agree to these Terms of
> Service http://www.renderx.com/terms-of-service.html
>
>
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Wed Jan 27 01:48:41 2010
This archive was generated by hypermail 2.1.8 : Wed Jan 27 2010 - 01:48:42 PST