Re: getting string width.
- From: Havoc Pennington <hp redhat com>
- To: sgop users sourceforge net
- Cc: gtk-app-devel-list gnome org
- Subject: Re: getting string width.
- Date: 03 May 2001 14:28:03 -0400
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]