nanogui: displaying texts/fonts


Previous by date: 14 Feb 2006 04:46:55 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Greg Haerr
Next by date: 14 Feb 2006 04:46:55 +0000 Re: Transparent window with Nano-X, Greg Haerr
Previous in thread: 14 Feb 2006 04:46:55 +0000 Re: displaying texts/fonts, Robbie
Next in thread:

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



Previous by date: 14 Feb 2006 04:46:55 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Greg Haerr
Next by date: 14 Feb 2006 04:46:55 +0000 Re: Transparent window with Nano-X, Greg Haerr
Previous in thread: 14 Feb 2006 04:46:55 +0000 Re: displaying texts/fonts, Robbie
Next in thread:


Powered by ezmlm-browse 0.20.