nanogui: How to use nano-X fonts in fltk 1.1.9


Previous by date: 25 Feb 2010 09:54:48 -0000 Re: How to use nano-X fonts in fltk 1.1.9, Michael Heiser
Next by date: 25 Feb 2010 09:54:48 -0000 Re: How to use nano-X fonts in fltk 1.1.9, Greg Haerr
Previous in thread: 25 Feb 2010 09:54:48 -0000 Re: How to use nano-X fonts in fltk 1.1.9, Michael Heiser
Next in thread: 25 Feb 2010 09:54:48 -0000 Re: How to use nano-X fonts in fltk 1.1.9, Greg Haerr

Subject: AW: [nanogui] How to use nano-X fonts in fltk 1.1.9
From: Michael Heiser ####@####.####
Date: 25 Feb 2010 09:54:48 -0000
Message-Id: <4b8648e6.0437560a.0779.144a@mx.google.com>

Hi Greg,

I'm on the approach to test nano-X 0.92RC2 with nxlib 0.46 on my
uClinux-Dist. Porting nano-X and nxlib was no problem, I only had to change
some values in config, Arch.rules ando so on.

Now my question:
You wrote about fonts.alias and fonts.dir files which nxlib can handle with.
Where do I have to create this files on target and where can I set the font
paths? Is this done in nxlib or nano-X?

Regards Michael

-----Ursprüngliche Nachricht-----
Von: Greg Haerr ####@####.#### 
Gesendet: Mittwoch, 24. Februar 2010 05:55
An: Ricardo Jasinski; ####@####.####
Betreff: Re: [nanogui] How to use nano-X fonts in fltk 1.1.9

> it is a shame fltk 2.0 didn't work for you; I find it much more 
> resourceful
than fltk 1.x and easier to use, integrate and undestand. If you haven't
done so yet, maybe you could try to compile a simple demo (one of those
bundled with the fltk distribution) to sort the errors you are finding.

I'll have to look into this.  I've been playing around alot with
FLTK 1.1(.10), and making changes to NXLIB for bug
fixes and enhanced font support.


> Anyway, I think I can't help much with fltk 1.x fonts; however, there's 
> one
alternative that may be suitable for you. You could change the default
nano-X system font (it is compiled-in with the nano-X server) or add many
other fonts if necessary. This would be completely fltk-independent.

I have recently updated nano-X to v0.92RC2 and NXLIB
to 0.46RC2, both in the git repository.  There is one
big change that could help, which is support for the
newer X11 fonts.alias file.  This file sits in the X11 font
directory like fonts.dir, and is looked first to find a listed
alias for any requested font.  For instance, FLTK 1.1.10
has it's X11 font list in src/fl_fonts.cxx.  By default,
FLTK asks for a long-named "-adobe-....." font,
which, in Ubuntu 9.10, is aliased to another long named
XLFD font, which ultimately is found in fonts.dir to
be...  HelvR14.pcf.gz, the old-fashioned helvetica 14 point
font.

Now that NXLIB supports the fonts.alias file, this could
be used to translate fonts requested by any X11 application
automatically to installed (or core) nano-X fonts.


Regards,

Greg 


---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####



Previous by date: 25 Feb 2010 09:54:48 -0000 Re: How to use nano-X fonts in fltk 1.1.9, Michael Heiser
Next by date: 25 Feb 2010 09:54:48 -0000 Re: How to use nano-X fonts in fltk 1.1.9, Greg Haerr
Previous in thread: 25 Feb 2010 09:54:48 -0000 Re: How to use nano-X fonts in fltk 1.1.9, Michael Heiser
Next in thread: 25 Feb 2010 09:54:48 -0000 Re: How to use nano-X fonts in fltk 1.1.9, Greg Haerr


Powered by ezmlm-browse 0.20.