Re: getting string width.



Markus Lausser <sgop users sourceforge net> writes:

I used to get a string width with the function:
  gdk_string_width(font, text);

I took a look at the gdk online reference and there i read:
"gdk_string_width is deprecated and should not be used in newly-written code."

Ok, but what function should is used instead??


You are reading the GTK 2 docs, if you are using GTK 1.2 you should
ignore that comment, because GTK 1.2 has no replacement for that
function.

If you're using GTK 2 betas, then you should be using Pango stuff
instead of GdkFont.

Havoc




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