nanogui: Re: FLTK font question
Subject:
Re: [nanogui] FLTK font question
From:
"Georg Potthast" ####@####.####
Date:
31 Jul 2011 16:25:56 -0000
Message-Id: <004001cc4f9e$5430c090$6a00a8c0@SCHREIBTISCHGP>
Hi Greg,
I only have a short list of things that do not work. ;-)
I followed your suggestions and found that both nano-x and NXlib do print
Umlauts to the screen. What I had to do was to implement an IBM code page
850 to iso8859-1translation table in my keyboard driver. Then the Umlaut
keys were displayed.
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.
I think I have to make a change to this function in nxlib\text.c:
int XDrawString(Display *dpy, Drawable d, GC gc, int x, int y,_Xconst char
*string, int length)
{ if (length > 0)
GrText(d, gc->gid, x, y, (char *)string, length, GR_TFASCII|GR_TFBASELINE);
return 0; }
How would you recommend to set the GrText flags here? Or what could I do?
Georg