gdk font metrics
- From: Allin Cottrell <cottrell wfu edu>
- To: <gtk-list gnome org>
- Subject: gdk font metrics
- Date: Sat, 24 Feb 2001 16:06:34 -0500 (EST)
I've been trying to make certain sizing calculations based on the
return value from gdk_char_width(), on the assumption that if the font
is monospaced the value would be the same for all glyphs, so that I
could use, say, 'X', as an exemplar.
When my calculations turned out askew, I printed out the values
returned by gdk_char_width(), and I now see that they're _not_ the
same for, e.g. 'X' and 'x' even for a monospaced font.
Can anyone point me towards a function that returns the overall
horizontal space occupied by each character in a given monospaced
font? Thanks.
Allin Cottrell.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]