nanogui: displaying texts/fonts
Subject:
Re: [nanogui] displaying texts/fonts
From:
"Greg Haerr" ####@####.####
Date:
14 Feb 2006 04:46:55 +0000
Message-Id: <036401c63121$7f4d4510$6401a8c0@winXP>
: If that's the case, (I could use the below function to theoretically
display a character by character), it is this an efficient use of this
function to display character by character message keeping track of the
cursor this way? Or effecient is not an issue here?
Robbie -
As Alex commented, GrGetGCTextSize is the way to calculate
the text string size character by character, or word by word. Also
for centering. The function takes account of whether the font
is proportional or fixed, and returns the correct result.
It's more efficient to draw more characters at a time.
Regards,
Greg