nanogui: BDF and TTF fonts in NanoX


Previous by date: 21 Dec 2006 07:52:22 +0000 Re: BDF and TTF fonts in NanoX, Kiran Mahajan
Next by date: 21 Dec 2006 07:52:22 +0000 Re: BDF and TTF fonts in NanoX, Teemu Keskinarkaus
Previous in thread: 21 Dec 2006 07:52:22 +0000 Re: BDF and TTF fonts in NanoX, Kiran Mahajan
Next in thread: 21 Dec 2006 07:52:22 +0000 Re: BDF and TTF fonts in NanoX, Teemu Keskinarkaus

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

Hi,

It seemed that I was missing the fonts-package. I downloaded it and now I
have that fonts.dir.pseudoadobe. There were some fonts too so I thought I'd
try it since my program was trying to use those same fonts.

I compiled the NanoX and my program. then I copied the fonts-directory to
same directory where my binary was so I had directory structure like this:

prg.binary
fonts/truetype

Still the program keeps complaining that it doesn't found fonts. For example
Times New Roman,12, Courier New, 16, Courier New 11, Arial 10 even though
they are in that fonts.dir file. I tried to copy fonts to same directory as
the binary but still nothing.

It would be nice to someway to see what file and where it's trying to find
so I could see what's wrong. Now I just have to guess.

I tried with freetype1 and freetype2 and the result was same with both. No
fonts were found.

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 07:52:22 +0000 Re: BDF and TTF fonts in NanoX, Kiran Mahajan
Next by date: 21 Dec 2006 07:52:22 +0000 Re: BDF and TTF fonts in NanoX, Teemu Keskinarkaus
Previous in thread: 21 Dec 2006 07:52:22 +0000 Re: BDF and TTF fonts in NanoX, Kiran Mahajan
Next in thread: 21 Dec 2006 07:52:22 +0000 Re: BDF and TTF fonts in NanoX, Teemu Keskinarkaus


Powered by ezmlm-browse 0.20.