nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Re: Is HFONT implemented?
From: Greg Haerr
Date: Wed, 30 Aug 2000 10:00:50 -0600

: I try: FLightFont=CreateFont
: (14,0,0,0,FW_LIGHT,0,0,0,ANSI_CHARSET,OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS
: , DEFAULT_QUALITY,DEFAULT_PITCH,"/usr/ttfonts/verdana.ttf");
: Freetype is installed, and used in config. Than
: SelectObject(hdc,FLightFont); And nothing happens.

HFONT is definetely implemented.

The above code should work, it seems,  but only because the
full path name of the file is passed to GdCreateFont.  I suggest
first checking that FLightFont is in fact not zero, and then
take a quick look at src/engine/devfont.c, function GdCreateFont.

In any case, I'll look at this shortly, I've been travelling and
haven't had much time lately ;-(

Regards,

Greg


nanogui@linuxhacker.org