nanogui: BDF and TTF fonts in NanoX


Previous by date: 21 Dec 2006 09:00:57 +0000 Re: BDF and TTF fonts in NanoX, Teemu Keskinarkaus
Next by date: 21 Dec 2006 09:00:57 +0000 Re: BDF and TTF fonts in NanoX, Gil Glass
Previous in thread: 21 Dec 2006 09:00:57 +0000 Re: BDF and TTF fonts in NanoX, Teemu Keskinarkaus
Next in thread: 21 Dec 2006 09:00:57 +0000 Re: BDF and TTF fonts in NanoX, Gil Glass

Subject: RE: [nanogui] RE: BDF and TTF fonts in NanoX
From: Teemu Keskinarkaus ####@####.####
Date: 21 Dec 2006 09:00:57 +0000
Message-Id: <FB4B49604ADFD949A9F32F2D8E6C4D47018F0530@alban.ccs.local>

Hi,

I did some more debugging and found out something strange.

I printed the fontname - variable from engine/font_freetype.c file and for
example for arial I get fonts/truetype/Arial.tff. I copied my arial.tff to
Arial.tff, but it still complains that it cannot find it. 

And for some reason the Courier New font is called Courier New.tff and not
cour.tff or something like that what it supposed to be called regarding the
fonts.dir file.

Maybe I'm still missing something here?

Teemu Keskinarkaus
CC-Systems

-----Original Message-----
From: Kiran Mahajan ####@####.#### 
Sent: 21. joulukuuta 2006 9:14
To: Teemu Keskinarkaus
Cc: Nano-X
Subject: RE: [nanogui] RE: BDF and TTF fonts in NanoX

Hi Teemu,

fonts.dir should be in the directory path which you have mentioned in
the config file of Nano-X. as for example:

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

fonts.dir file contains name of font file, encodings and font attributes.
You need to edit that file for your font. This file should be in the 
directory where your TTF font file is. To have a sample copy how to 
write this file, go to the Nano-X's src/fonts/truetype directory. 
there you will find fonts.dir.pseudoadobe file.

Thanks and regards,
Kirankumar

On Thu, 2006-12-21 at 07:24 +0100, Teemu Keskinarkaus wrote:
> Hi,
> 
> I already has freetype 1.3.1 ported to my platform. Only thing is that I
> don't seem to be able to get TTF fonts work. My program doesn't find them.
> Where should that fonts.dir - file be and what should it contain? My
program
> doesn't have one. Or should that file be in NanoX directory somewhere?
> 
> Teemu Keskinarkaus
> CC-Systems
> 



Previous by date: 21 Dec 2006 09:00:57 +0000 Re: BDF and TTF fonts in NanoX, Teemu Keskinarkaus
Next by date: 21 Dec 2006 09:00:57 +0000 Re: BDF and TTF fonts in NanoX, Gil Glass
Previous in thread: 21 Dec 2006 09:00:57 +0000 Re: BDF and TTF fonts in NanoX, Teemu Keskinarkaus
Next in thread: 21 Dec 2006 09:00:57 +0000 Re: BDF and TTF fonts in NanoX, Gil Glass


Powered by ezmlm-browse 0.20.