Re: PangoFontMetrics: approximate_[char|digit]_width



On 4 Mar 2001, Havoc Pennington wrote:

> > Especially in this case (most prominently GtkSpinButtons) I'd 
> > say that using a max value would make much more sense than 
> > using an average.
> > 
> 
> You're probably right here, since the max of those 10 digits won't
> ever be huge, as the max of the characters may be.

For numbers it shouldn't be much of a problem, as most fonts make all the
digits the same width (so things line up nicely.

James.

-- 
Email: james daa com au
WWW:   http://www.daa.com.au/~james/






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