GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Oct 22, 2014 7:59 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: gdk_text_width returns incorrect values
PostPosted: Tue Dec 11, 2007 6:21 am 
Offline

Joined: Tue Dec 11, 2007 6:11 am
Posts: 1
Hi,
I am trying to build an application with gtk+ support. The application requires the calculation of the string width thus I was using the API gdk_text_width and it is returning incorrect width values '5' or '10' when the widths are known to be like '7' , '9' , '13' etc.
Any help would be greatly appreciated.
Thanks in anticipation.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 4:25 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
That's a deprecated function. You're going to need to use Pango. Check out this: http://osdir.com/ml/gnome.gtk+.internationalization/2003-05/msg00009.html

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group