[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ONE MORE TIME. Help !!!!!!!!!!!!!!!!!!!! with line height
From: |
David Turner |
Subject: |
Re: ONE MORE TIME. Help !!!!!!!!!!!!!!!!!!!! with line height |
Date: |
Thu, 22 Jun 2000 11:41:03 +0200 |
Hi Tomas,
>
> > > Hi all,
> > >
> > > Help someone with line height. If i get Big Glyph Metrics vertical
> advance
> > > and add lineGap from face properties header, it's not enought, at least
> > not
> > > for all fonts. And if i count maximum sum of Big Glyph Metrics bbox.yMax
> > and
> > > abs(bbox.yMin) - it's too much. How to get real, exact height?
> > >
The linegap and vertical advance are not related, you should not try
to add them.. !!
The text height can be computed as "ascender+descender+linegap".
If believe that if you take the values from the horizontal header,
you'll compute the baseline-to-baseline distance for horizontal
layouts.
I assume that the values from the vertical header correspond to
the baseline-to-baseline distance for vertical layouts, even
though it's a bit unclear from the spec..
You can't use both the advance height and the text height to
advance the vertical pen position, it's either one or the other..
Good luck,
- David