LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 03-23-2007, 02:24 PM   #1
erwinfletch
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Rep: Reputation: 0
Window title font


Hi-

I am trying to set the title for a gtk window dialog. I'd like to know if it is going to fit in the title bar before I set it. Is there a way to determine the font and font size of the window title bar? Or specifically, is there a way to test that my string is going to fit before I set it?

Thanks!
 
Old 03-23-2007, 04:20 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
There's really no way to feasably do it - as every user uses their own custom fonts/font effects on their window titles.

But, this whole thing really begs the question: Just how long is this window title expected to be?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
window without a title bar using xlib CarzyIvan Programming 1 02-11-2006 05:21 PM
Change font COLOR in window title aeruzcar Linux - General 3 09-15-2005 12:26 AM
Title bar font qtrob Linux - Software 3 03-31-2005 07:27 PM
How to change window title font size in Gnome2.2(sawfish) zhaoyoubing Linux - Newbie 0 07-19-2003 10:05 PM
change window title in terminal sandman Linux - General 4 12-15-2002 04:55 AM


All times are GMT -5. The time now is 02:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration