nanogui: Font usage/setup


Previous by date: 10 Jan 2006 20:59:51 +0000 Re: Font usage/setup, Martin Kajdas
Next by date: 10 Jan 2006 20:59:51 +0000 TIMERS & VTSWITCH, Robbie
Previous in thread: 10 Jan 2006 20:59:51 +0000 Re: Font usage/setup, Martin Kajdas
Next in thread: 10 Jan 2006 20:59:51 +0000 Re: Font usage/setup, Greg Haerr

Subject: RE: [nanogui] Font usage/setup
From: "Martin Kajdas" ####@####.####
Date: 10 Jan 2006 20:59:51 +0000
Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC229149C@mkmail.MKPROD.COM>

I believe that the nxlib-0.45, specifically XLoadFont() in LoadFont.c will not work with truetype fonts.
It does the straight font name comparison in _nxFindX11Font(), but it should do something similar (parsing font names) to ListFonts.c and use requested font size in GrCreateFont() call.

Am I confusing something?
Did anyone make freetype 1.3.1 work with nxlib and nano-X (using FLTK and X11 calls)?
My program works perfectly well with X11.
Martin


-----Original Message-----
From: Martin Kajdas 
Sent: Tuesday, January 10, 2006 9:23 AM
To: Greg Haerr; ####@####.####
Subject: RE: [nanogui] Font usage/setup


I enabled debug mode to see what is going on and the problem became obvious.

The nano-X server (actually nxlib in LoadFont.c) searches for:
'-adobe-helvetica-medium-r-normal--12-0-0-0-p-0-iso8859-1'
which my application requires and the truetype font available is described as:
'-adobe-helvetica-medium-r-normal--0-0-0-0-p-0-iso8859-1'

They do not match and the server does not find the font correctly.
The only difference is in the font size (the app wants size 12).
However, this being the truetype font, does not specify size (equals to 0).

How can I tell/configure the server/nxlib to match these properly?
Martin


-----Original Message-----
From: Martin Kajdas ####@####.####
Sent: Monday, January 09, 2006 4:00 PM
To: Greg Haerr; ####@####.####
Subject: RE: [nanogui] Font usage/setup


Another problem: truetype fonts.
I have the fonts working and I can see the truetype fonts in the list of fonts (with my application on my target system), but I cannot make them work.
The other ones work fine.

I compiled nano-X with HAVE_FREETYPE_SUPPORT enabled and linked with freetype 1.3.1 library.
I added the font files to the fonts directory and added them to the fonts.dir file.
- is there anything else that needs to be done to get them working?
- does nxlib-0.45 support truetype fonts?
- anything else I need to know?

Regards,
Martin

Previous by date: 10 Jan 2006 20:59:51 +0000 Re: Font usage/setup, Martin Kajdas
Next by date: 10 Jan 2006 20:59:51 +0000 TIMERS & VTSWITCH, Robbie
Previous in thread: 10 Jan 2006 20:59:51 +0000 Re: Font usage/setup, Martin Kajdas
Next in thread: 10 Jan 2006 20:59:51 +0000 Re: Font usage/setup, Greg Haerr


Powered by ezmlm-browse 0.20.