gtk label text font control

View: New views
2 Messages — Rating Filter:   Alert me  

gtk label text font control

by Gong, Shawn (Contractor) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

gtk label text font control

hi list,

GTK1.2 was used to program button and text entry/display boxes. e.g gtk.GtkLabel(text1), gvutils.GvMenuFactory(), etc

All texts are fine on Windows, and RedHat Linux/Solaris 9 running GTK1.2.

Now we run it on Fedora 8, CentOS 5 and Ubuntu 7.10, which have GTK2.0. The fonts become quite bigger. As result, the texts stick out of the pre-determined frames.

Is there a way to control the above text font (say specify Roman 14)? Or it is an issue with GTK2 and GTK1.2 (meaning more complicated)?

thanks,

Shawn


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openev-discuss mailing list
Openev-discuss@...
https://lists.sourceforge.net/lists/listinfo/openev-discuss

Re: gtk label text font control

by Gillian WALTER-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

gtk label text font control
Hi Shawn,
 
Could environment variables be influencing things?  I have a vague recollection of having to unset the "GTK_RC_FILES" environment variable sometimes to avoid conflicts between OpenEV's gtk 1.2 build and the system's gtk 1.2 build (OpenEV's gtk would try to use the system RC files, with poor results).  I'd try looking at the environment variables and playing with any GTK ones you find to see if something similar could be going on.  Failing that, I'd probably also take a look at the PATH and LD_LIBRARY_PATH variables on the off chance that some gtk-2 library was being seen as gtk-1.
 
 
Good luck,
 

Gillian Walter
Software Developer
Vexcel Canada Inc.
20 Colonnade Road - Suite 110
Ottawa, ON K2E 7M6
Telephone:  (613) 727-1087 #245
Facsimile:  (613) 727-5853
Email:  gwalter@...

This e-mail and any attachments are intended solely for the use of the intended recipient(s) and may contain legally privileged, proprietary and/or confidential information.  Any use, disclosure, dissemination, distribution or copying of this e-mail and any attachments for any purposes that have not been specifically authorized by the sender is strictly prohibited.  If you are not the intended recipient, please immediately notify the sender by reply e-mail and permanently delete all copies and attachments.  The entire content of this e-mail is for "information purposes" only and should not be relied upon by the recipient in any way unless otherwise confirmed in writing by way of letter or facsimile. 

 

 


From: openev-discuss-bounces@... [mailto:openev-discuss-bounces@...] On Behalf Of Gong, Shawn (Contractor)
Sent: Wednesday, March 12, 2008 3:21 PM
To: OpenEV Discussion List
Subject: [Openev-discuss] gtk label text font control

hi list,

GTK1.2 was used to program button and text entry/display boxes. e.g gtk.GtkLabel(text1), gvutils.GvMenuFactory(), etc

All texts are fine on Windows, and RedHat Linux/Solaris 9 running GTK1.2.

Now we run it on Fedora 8, CentOS 5 and Ubuntu 7.10, which have GTK2.0. The fonts become quite bigger. As result, the texts stick out of the pre-determined frames.

Is there a way to control the above text font (say specify Roman 14)? Or it is an issue with GTK2 and GTK1.2 (meaning more complicated)?

thanks,

Shawn


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openev-discuss mailing list
Openev-discuss@...
https://lists.sourceforge.net/lists/listinfo/openev-discuss