[ft-devel] X-Height CapHeight

2013-08-21 Thread another gol
Hi,

Would be nice to have x-height  capheight published (I know I'm not the
first one to ask).

I fully understand that they're only available in a truetype chunk, but
when the info is there, it beats having to guess it. Both are quite
important for balanced text vertical centering.

How does everyone guess them btw? Here I measure v and V, as those have
little risk of overshoot or serif leaking above.

To me the best vertical centering for text is centering the x-height, or
half-way between x-height  cap height. Sadly most fonts have a/descenders
that aren't suitable for vertical centering.
___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] X-Height CapHeight

2013-08-21 Thread Werner LEMBERG

[I still haven't found time to answer your last e-mail, sorry.]

 Would be nice to have x-height  capheight published (I know I'm not
 the first one to ask).

For TT fonts it is available via the TT_OS2 structure.

 How does everyone guess them btw? Here I measure v and V, as
 those have little risk of overshoot or serif leaking above.

Sounds reasonable.


Werner


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] X-Height CapHeight

2013-08-21 Thread Khaled Hosny
On Wed, Aug 21, 2013 at 04:29:07PM +0200, another gol wrote:
 Hi,
 
 Would be nice to have x-height  capheight published (I know I'm not the
 first one to ask).
 
 I fully understand that they're only available in a truetype chunk, but
 when the info is there, it beats having to guess it. Both are quite
 important for balanced text vertical centering.

If the font has them, they will be in the OS/2 table:
http://www.freetype.org/freetype2/docs/reference/ft2-truetype_tables.html#TT_OS2

Regards,
Khaled

___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel