nanogui: truetype with fltk
Subject:
truetype with fltk
From:
Hinko Kocevar ####@####.####
Date:
23 Sep 2004 16:54:29 +0100
Message-Id: <4152F1B2.3070004@iskramedical.si>
Hi,
I've managed to build freetype-2.1.3 lib and I can see truetype fonts -
tested with fontdemo. I have this simple app using fltk that just lists
all found fonts and then displayed hello string using selected font.
PCF fonts are working but with treutype fonts nano-X and nxlib are
seraching for the wrong name of the font. Eg. I want to use bitstream
vera sans at size 14; this is printk() output around XLoadFont:
before _nxFindX11Font: -bitsteam-Bitstream Vera
Sans-medium-r-normal--14-0-0-0-p-0-iso8859-1
after _nxFindX11Font: (null)
XLoadFont('-bitsteam-Bitstream Vera
Sans-medium-r-normal--14-0-0-0-p-0-iso8859-1') = '(null)' [0]
In fonts dir only '-bitsteam-Bitstream Vera
Sans-medium-r-normal--0-0-0-0-p-0-iso8859-1' exists, since this font is
variable height it does not contain size in it name.
How can this be overcome?
regards,
h
--
hinko <dot> kocevar <at> iskramedical <dot> si
Hinko Kocevar, developer
Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU
"Aì rén" | [Analects XII:22]