nanogui: BDF and TTF fonts in NanoX


Previous by date: 18 Dec 2006 15:03:28 +0000 BDF and TTF fonts in NanoX, Teemu Keskinarkaus
Next by date: 18 Dec 2006 15:03:28 +0000 Re: server background], Roberto
Previous in thread: 18 Dec 2006 15:03:28 +0000 BDF and TTF fonts in NanoX, Teemu Keskinarkaus
Next in thread: 18 Dec 2006 15:03:28 +0000 Re: BDF and TTF fonts in NanoX, Kiran Mahajan

Subject: RE: BDF and TTF fonts in NanoX
From: "Gil Glass" ####@####.####
Date: 18 Dec 2006 15:03:28 +0000
Message-Id: <6ECE57DF49376146B91A92A3C37EFC0E027FBF26@SJEXCH03.ds.jdsu.net>

Teemu,

You can definitely use TTF fonts with Nano-X; I've been doing it for
some time.  Nano-X works very well with TTF fonts.

Among the things you have to do are:

1.  Get hold of the FreeType library (available at the Nano-X
website???) and build it for your platform.  I've been using version
1.3.1.  I don't know much about FreeType 2 but it may have some
advantages.

2.  Set up the config file in Nano-X to indicate that TrueType fonts are
supported and to specify the location of the FreeType library (libttf.a)
and  the location of font files.  For example, my config file reads:

####################################################################
# TrueType font support thru FreeType 1.x
####################################################################
HAVE_FREETYPE_SUPPORT    = Y
INCFTLIB                 = /usr/include/freetype1
LIBFTLIB                 = ./lib/libttf.a
FREETYPE_FONT_DIR        = "fonts/truetype"

There are some hidden gotchas regarding the cross-compiling the FreeType
library for some non-x86 platforms such as ARM as I've done.  Post again
if you run into trouble.

Have I missed any details?

Cheers,
Gil Glass

-----Original Message-----
From: Teemu Keskinarkaus ####@####.#### 
Sent: Monday, December 18, 2006 6:51 AM
To: ####@####.####
Subject: BDF and TTF fonts in NanoX

Hi,

 

I'm using program that uses NanoX. That program doesn't care about fonts
so
it passes the request straight to NanoX. Now I need to add more fonts to
NanoX. 

 

I already added one font to NanoX. That was BDF font that I converted to
C-file and then linked it with the NanoX. I was wondering is it possible
to
use TTF fonts instead? I could use same font for several size. With BDF
fonts you need separate font for each size. I couldn't find
documentation
about that or even for the BDF. I just some reverse engineering for the
NanoX and figure out how it's done. : )

 

Teemu Keskinarkaus

CC-Systems

 


Previous by date: 18 Dec 2006 15:03:28 +0000 BDF and TTF fonts in NanoX, Teemu Keskinarkaus
Next by date: 18 Dec 2006 15:03:28 +0000 Re: server background], Roberto
Previous in thread: 18 Dec 2006 15:03:28 +0000 BDF and TTF fonts in NanoX, Teemu Keskinarkaus
Next in thread: 18 Dec 2006 15:03:28 +0000 Re: BDF and TTF fonts in NanoX, Kiran Mahajan


Powered by ezmlm-browse 0.20.