Re: PangoFontMetrics: approximate_[char|digit]_width



Sven Neumann <sven gimp org> writes: 
> Do we change approximate_digit_width to max_digit_width then? 

I don't think the field should really indicate what algorithm we
use (max vs. avg vs. whatever). ;-) It's not intended for use where you
care about that...

> Actually the values are supposed to give a good guess on the 
> average glyph advance, not the glyphs width, since they will
> be used to guess the width of a rendered string which is 
> determined by the sum of advances. (The sum of all but the last 
> glyphs advances plus the last glyphs width to be correct, but 
> that would be overly picky.) Propably the fields names should
> be changed keeping that in mind ?

I think that makes things a bit harder to use, but yeah it's
technically correct.

Havoc








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