nanogui: Selecting fonts


Previous by date: 5 May 2004 19:37:23 +0100 Re: porting microwindows to netbsd.., Aaron J. Grier
Next by date: 5 May 2004 19:37:23 +0100 Micorwindows (Win32) and flickering, Curtis Nelson
Previous in thread: 5 May 2004 19:37:23 +0100 Re: Selecting fonts, Greg Haerr
Next in thread:

Subject: Re: [nanogui] Selecting fonts
From: tj ####@####.####
Date: 5 May 2004 19:37:23 +0100
Message-Id: <40993447.90802@comcast.net>

Cool, that worked using
 font_a = GrCreateFont 
("/usr/X11/lib/fonts/75dpi/helvB18-ISO8859-15.pcf.gz",
            18,NULL);

But, I didn't see in the api html or .pdf docs anything about 
GrCreateFont excepting a font file name. They only state ASCII string of 
a built in font face. I assumed that by built in it meant compiled in at 
nano-X build time. My mistake.

Thank You again.

tj


Greg Haerr wrote:

>: How do you select one of those in a nano-X app? Like, say, 
>: winFreeSystem14x16?
>
>Look at drivers/genfont.c, the table shows the fonts included,
>and their string name that is used to look them up using
>GrCreateFont.  Also, as Jonathan suggested, you can give
>a full path to a .fnt, .pcf, or .pcf.gz bitmap font file, and
>Microwindows will use that font.
>
>Regards,
>
>Greg
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ####@####.####
>For additional commands, e-mail: ####@####.####
>
>
>  
>


Previous by date: 5 May 2004 19:37:23 +0100 Re: porting microwindows to netbsd.., Aaron J. Grier
Next by date: 5 May 2004 19:37:23 +0100 Micorwindows (Win32) and flickering, Curtis Nelson
Previous in thread: 5 May 2004 19:37:23 +0100 Re: Selecting fonts, Greg Haerr
Next in thread:


Powered by ezmlm-browse 0.20.