[10206] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: font width info in GdkFont?
daemon@ATHENA.MIT.EDU (Jan Gentsch)
Tue Nov 17 06:37:08 1998
Date: Tue, 17 Nov 1998 12:18:36 +0100
From: Jan Gentsch <gentsch@ifm.uni-hamburg.de>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
Wayne roberts wrote:
>
> Would it be reasonable to add font width info to GdkFont?
>
I just had a short look, but I think gdk_text_width will give you the
information
you are seeking. Get the width of an m and you can now make an educated
guess at what
you want.
Jan
> as in "short XfontStruct->max_bounds.width"
>
> the reason i ask is that GtkEntry has a fixed requisition width
> of MIN_ENTRY_WIDTH of 150, which may be to large for certian layouts
> and applications of a text entry widget.
>
> if GdkFont contained the max_bounds.width in XfontStruct, then the
> size request function could set requisition->width appropriately.
> This would also require some text to be passed to the contsructor
> gdk_entry_new() so the width of this entry can be initialized properly.
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null