nanogui: Font usage/setup
Re: [nanogui] Font usage/setup
"Greg Haerr" ####@####.####
4 Jan 2006 22:31:33 +0000
> I enabled PCF fonts support in config file, I copied PCF font files into
/usr/lib/X11/fonts directory of my ram disk.
How exactly fonts work in nano-X:
- are they compiled in?
- if not, where should they be located to be available? where and how are
- what options need to be turned on?
Font locations are set in both the microwindows config file,
as well as in the NXLIB Makefile. Make sure that these
are set properly.
The NXLIB library adds its own paths in front of the file names,
according to code in SetFont.c (or something like that, grep
for GrCreateFont). When Microwindows gets a font spec,
it will attempt to load the file once if it starts with '/', otherwise,
it will use its own search mechanism, dependent on config file
setting and font loader.
If you turn on debug mode, then microwindows should print
the path it tries for every font. Same for NXLIB.