font width info in GdkFont?



Would it be reasonable to add font width info to GdkFont?

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.



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