Re: [gtk-list] Getting length, in pixels, of a line of text



Chris Malek <cmalek@aves.etho.caltech.edu> wrote:
>How can I determine how long a line of text will be, in pixels, in any 
>given font?

Hi, you want gdk_text_extents(). Do a grep in gdk, you'll find other related
and useful functions too.

John



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