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


[<<] [<] Page 2 of 2 [>] [>>]
Subject: AW: [nanogui] How to use nano-X fonts in fltk 1.1.9
From: Michael Heiser ####@####.####
Date: 24 Feb 2010 07:34:31 -0000
Message-Id: <4b84d685.1358560a.4cfa.ffff8f44@mx.google.com>

Great work Greg and Ricardo!

After Advice of Ricardo my App does show a Helvetica 25 pt font on my 7" TFT
:). Greg I'll look forward to include nxlib 0.46 and nano-X 0.92RC2 into my
uClinux-Distro. But this may take a while. I will let you know when testing
was ok and how to use fonts.alias and fonts.dir with flkt 1.1.x.

Regards Michael

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

Ricardo - 

Thanks for writing up how to add compiled fonts to 
nano-X.  I will add this to the FAQ on the website!

Regards,

Greg


-------------------------------------------------------------------------
Adding **compiled**-**in** fonts **in** microwindows/nano-x
-------------------------------------------------------------------------



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


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: ####@####.####


Subject: Re: [nanogui] How to use nano-X fonts in fltk 1.1.9
From: "Greg Haerr" ####@####.####
Date: 25 Feb 2010 22:59:20 -0000
Message-Id: <056b01cab66e$208279c0$6564a8c0@winXP>

> 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?

The font path for the (usually .pcf or .ttf) files are set in
the nano-X config file.

The fonts.dir and fonts.alias files are in the "X11" fonts directory,
whose path is setup in the NXLIB Makefile.  There are samples
of these files in NXLIB's src/fonts directory.

Regards,

Greg 

[<<] [<] Page 2 of 2 [>] [>>]


Powered by ezmlm-browse 0.20.