Re: fonts in gtk-2.0/pango



On 29 Jul 2002, Sven Neumann wrote:

> > and I assumed that was what the function was returning.  But the
> > value is wrong: it is given as 8 by
> > pango_font_metrics_get_approximate_char_width() while in fact it is
> > 7.  This is for Lucidatypewriter 10, where the glyphs themselves are
> > of various widths but are all padded to give an advance of 7 pixels.
>
> which Pango backend did you use to obtain this result? I know that at
> least the FT2 and Xft backends calculate the approximate char width by
> measuring the length of an example string and dividing the result by
> the number of characters in the string. I don't see how this could
> lead to wrong results for a monospace fonts.

I'll be away for a week but when I get back I'll check into this
properly and see which backend was active.

Allin Cottrell.




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