nanogui: Re: FLTK font question
Subject:
Re: [nanogui] FLTK font question
From:
"Greg Haerr" ####@####.####
Date:
1 Aug 2011 05:54:05 -0000
Message-Id: <34D02DF0B1C24B89B3E97EDDE552FA6A@winXP>
: Then I found that FLTK 1.1.10 does display the fonts with Umlauts while
FLTK
: 1.3.0 does not. The reason is apparently that FLTK 1.1.10 loads an
iso8895-1
: font while FLTK 1.3.0 loads an iso10646-1 font. FLTK 1.3.0 is using UTF-8
: now.
In looking at this a little deeper, I can see that FLTK 1.1.11 uses
XDrawString,
while FLTK 1.3.0 uses a combination of either
fl_font_x.cxx::XUtf8DrawString(),
or is configurable to use the Xft library for X11 antialiased fonts, in
which
case fl_font_xft.cxx::XftDrawString32() is used (along with what looks
like a new and different font list).
I would suggest configuring 1.3.0 without Xft for now, and working
on adding XUtf8DrawString() to nxlib/Text.c, having the same
implementation as XDrawString except passing the GR_TFUTF8
flag as discussed in the previous email. I'm not sure which library
XUtf8DrawString is coming from now, you might check in to it,
and look at it as a basis for other mods to nxlib.
Regards,
Greg