nanogui: using fltk fonts system with nano
Subject:
RE: [nanogui] using fltk fonts system with nano
From:
"Martin Kajdas" ####@####.####
Date:
23 Mar 2006 17:48:02 +0000
Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC22914F1@mkmail.MKPROD.COM>
I also work on embedded system and everything works from RAM disk but
the idea is still the same.
The font directory has to be located (match the configuration),
it needs to have the right font files and the font.dir file if names do
not match.
Then it will work.
I use pcf.gz and ttf fonts and after solving similar problems, it works
now.
Martin
-----Original Message-----
From: Kishore Kumar ####@####.####
Sent: Thursday, March 23, 2006 9:01 AM
To: ####@####.####
Subject: RE: [nanogui] using fltk fonts system with nano
Hi,
I work on a embedded system so my fonts directory see a bit different.
I found a directory for fonts at "/lib/fonts"
and it did have "fontdir" with entries for 'fixed'
In fontdir file::
fixed 5x7.bdf BDF n 50 70
fixed 6x13.bdf BDF n 50 120
micro micro.bdf BDF n 50 40
helvetica helvB08.bdf BDF n 75 80
helvetica helvB10.bdf BDF n 75 100
helvetica helvB12.bdf BDF n 75 120 ....
but these are only for the bdf files. I think I can just change bdf file
to pcf to make it work.Anyway ,I hope this tip would
help me move in the right direction.
Regards,
Kishore
Am Donnerstag, den 23.03.2006, 08:16 -0800 schrieb Martin Kajdas:
> I would use a complete path in PCF_FONT_DIR like:
> PCF_FONT_DIR = /usr/lib/X11/fonts/pcf
> Then, this is where your font files need to be on your target.
>
> Do you have a 'fixed.pcf' file in your /usr/lib/X11/fonts/pcf (in my
> case) directory on your target?
>
> If your fixed font has a different file name then you need the
fonts.dir
> file with the line like:
> some_fixed_font_file.pcf fixed
>
> You need to resolve directory and naming issues because your program
> cannot find the fonts.
>
> Also, you may add debugging messages to LoadFont.c and print
'fontdir',
> 'xfontname' and 'font' variables.
> Then you will know everything. This is how I found my problems.
> Martin
>
>
> -----Original Message-----
> From: Kishore Kumar ####@####.####
> Sent: Thursday, March 23, 2006 4:22 AM
> To: ####@####.####
> Subject: RE: [nanogui] using fltk fonts system with nano
>
>
> the debug output look so
>
> >XLoadFont('fixed') = '(null)' [0]
>
> Its not able to find the 'fixed' font.
> Regards,
> Kishore
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####