Re: puzzled by metrics



On Fri, 2004-01-23 at 22:02, Matthias Clasen wrote:
> Ideally draw the diagrams in a form suitable for inclusion in the API
> docs...

let's see if I'm right first: I've put a draft of the diagram here

http://www.cs.unibo.it/~lpadovan/secret/pango_metrics.eps

it is a rather raw draft made with xfig. Caption:
on the l.h.s. the metrics as returned by pango_layout_get_extents. On the
r.h.s the metrics as returned by pango_layout_line_get_extents.
The black dot denotes the reference point, that is the origin. Arrows show the
direction in which the coordinates grow. Hence, in the diagram on
the left, the ascent is negative but the descent is positive. In the diagram
on the right, both properties are positive. Note that, in the diagram on the
left, it is not possible to compute the baseline of the characters (the dotted
line on which the characters lay).

Both the english and the diagram can be improved. Which formats are suitable
for inclusion into Pango's docs?

-- luca




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]