nanogui: Problem: XLoadFont() and freetype2 ...
Subject:
Problem: XLoadFont() and freetype2 ...
From:
Steven Scholz ####@####.####
Date:
4 Sep 2004 16:51:45 +0100
Message-Id: <4139E48B.3020207@imc-berlin.de>
Hi there,
I am able to run microwindow's "fontdemo" programm with rotated truetype fonts
using freetype2.
Now I am trying the same from an X11 (actually FLTK) application.
I see that nxlib's XLoadFont() calls GrCreateFont(). But why does
nxlib-0.45/LoadFont.c contain:
/* found font, load into server*/
if (fontname)
font = GrCreateFont(fontname, 0, NULL);
This means that the (true type) font will be created with hight=0 which is
hardly readable. When I change the above to something like
font = GrCreateFont(fontname, 20, NULL);
I get nice, huge output.
So should we determine the hight of the font to load first (by parsing the name
string maybe) and then call GrCreateFont?
Why does it work with .pcf.gz fonts?
Thanks!
--
Steven