Re: [gtk-list] GdkFont: Getting ascent/descent for char

Matthias Koester wrote:
> How can i get the ascent/descent of an individual char? Looking at the GDK
> doc, it seems to me, that there only exists functions to retieve the
> ascent/descent of the font. Or can i call the functions with a single char
> string to get the ascent/descent of the given char?

Yes, you can call the function with a single char and get the ascent
and descent for just that one-character string.

The ascent and descent in the font structure are MIN and MAX values for
all characters in the font.

/ Johan
  -- -- --

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