nanogui: Problem: XLoadFont() and freetype2 ...


Previous by date: 4 Sep 2004 16:51:45 +0100 cross compiling viewml for arm, ANGELESCU Florin
Next by date: 4 Sep 2004 16:51:45 +0100 white color in images, Hinko Kocevar
Previous in thread:
Next in thread: 4 Sep 2004 16:51:45 +0100 Re: Problem: XLoadFont() and freetype2 ..., Greg Haerr

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


Previous by date: 4 Sep 2004 16:51:45 +0100 cross compiling viewml for arm, ANGELESCU Florin
Next by date: 4 Sep 2004 16:51:45 +0100 white color in images, Hinko Kocevar
Previous in thread:
Next in thread: 4 Sep 2004 16:51:45 +0100 Re: Problem: XLoadFont() and freetype2 ..., Greg Haerr


Powered by ezmlm-browse 0.20.