Re: [gtk-list] font width info in GdkFont?



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



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