nanogui: displaying texts/fonts


Previous by date: 10 Feb 2006 21:38:01 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Martin Kajdas
Next by date: 10 Feb 2006 21:38:01 +0000 Color problems with MWPF_PSEUDOCOLOR and VNC Server, Pete Klemm
Previous in thread:
Next in thread: 10 Feb 2006 21:38:01 +0000 Re: displaying texts/fonts, Alex Holden

Subject: displaying texts/fonts
From: "Robbie" ####@####.####
Date: 10 Feb 2006 21:38:01 +0000
Message-Id: <20060210213745.1FA96BD63A@xprdmxin.myway.com>

Hi All,
I've ran into a few snags with texts and I'm trying to understand nanogui's implemsntation.

If for instance I have a text "nanogui is the best" and I want to display each phase ("nanogui" , "is" , etc.) with a different size and color it appears that I'll have to know more details of the font used to do this.
It appears that I'll have to know (calculate, maybe) the number of pixels and display each separately using GrText(). That implies fixed sized fonts.What about proportional fonts? 
Is this the way it is done? Do I understand this correctly? 
If I want to center this text in a window, is this approach used to do this as well?

Much Thanks,
Robbie,


_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



Previous by date: 10 Feb 2006 21:38:01 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Martin Kajdas
Next by date: 10 Feb 2006 21:38:01 +0000 Color problems with MWPF_PSEUDOCOLOR and VNC Server, Pete Klemm
Previous in thread:
Next in thread: 10 Feb 2006 21:38:01 +0000 Re: displaying texts/fonts, Alex Holden


Powered by ezmlm-browse 0.20.