nanogui: Right justify text


Previous by date: 20 Mar 2006 23:54:19 +0000 Re: valgrind log, Aaron J. Grier
Next by date: 20 Mar 2006 23:54:19 +0000 FreeType2 with Portrait Mode, Reynoso Luis-A19257
Previous in thread: 20 Mar 2006 23:54:19 +0000 Right justify text, Tim Kline
Next in thread:

Subject: RE: [nanogui] Right justify text
From: "Martin Kajdas" ####@####.####
Date: 20 Mar 2006 23:54:19 +0000
Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC22914EE@mkmail.MKPROD.COM>

1. See fl_draw() function for info. Use FL_ALIGN_RIGHT for align
parameter.
2. You can draw each character by itself but why bother. Use any
mono-space font that you like and you won't have to do anything, just
change the name of the font and specify the size.
Start with all the fonts you have on your linux development system.
This is how I pick my fonts.

Martin


-----Original Message-----
From: Tim Kline ####@####.####
Sent: Monday, March 20, 2006 9:39 AM
To: ####@####.####
Subject: [nanogui] Right justify text


Hi all,

I'm a total newbie to Nano-X. So far everything is going fine. I can do
just about everything I need to. 

 

I just have a couple of issues:

I don't see a way to right justify text. Is there a flag or something
that I haven't found? I feel like I'm missing something obvious...

 

Also, I will need to add a feature to my app that displays text in
columns. The client had previously specified Helvetica as the font,
which of course, is proportional. Is there a way to make it act like a
mono-space font (i.e. a flag or something that would add the appropriate
space or maybe a way to specify number of pixels per char)? Since that
seems unlikely, does anyone know of a free mono-space font that has
characters that look just like Helvetica? 

 

Thanks,

   Tim


Previous by date: 20 Mar 2006 23:54:19 +0000 Re: valgrind log, Aaron J. Grier
Next by date: 20 Mar 2006 23:54:19 +0000 FreeType2 with Portrait Mode, Reynoso Luis-A19257
Previous in thread: 20 Mar 2006 23:54:19 +0000 Right justify text, Tim Kline
Next in thread:


Powered by ezmlm-browse 0.20.