nanogui: Scalable font support ...


Previous by date: 15 Mar 2000 23:28:00 -0000 Re: Scalable font support ..., Greg Haerr
Next by date: 15 Mar 2000 23:28:00 -0000 Re: Scalable font support ..., Rod Boyce
Previous in thread: 15 Mar 2000 23:28:00 -0000 Re: Scalable font support ..., Greg Haerr
Next in thread: 15 Mar 2000 23:28:00 -0000 Re: Scalable font support ..., Rod Boyce

Subject: Re: Scalable font support ...
From: Martin Jolicoeur ####@####.####
Date: 15 Mar 2000 23:28:00 -0000
Message-Id: <38D01A03.2D811139@visuaide.com>

Greg Haerr wrote:

>
> I propose something simple.  (Isn't that what I always propose on this
> list?)

;-)

>
>
> Other strings would be parsed according to the font engine
> that is loaded.  So "times" could either directly load "times.ttf" for
> truetype, or "times.afm" for T1.   The flags word would
> also be checked to for italic/bold, and possibly come up with
> other filenames to load.  Ideally, the font engine enumerates all fonts
> that might match, gets their hdr data, and then loads the one it feels
> is the best match.
>

Then, to enumerate fonts available, you'll have to set a font path ...
GdFontSetPath ?
Or you hard-code the path in the microwindows directory ? [yechh :-(]


>
> In addition, in rev 2, we support a separate fontalias file that
> gives more specific instructions to a font engine regarding this
> string name.  With a table like this:
>
> Times    bitstream-*-Times-12-*-x-x
> etc
>

You wouldn't need to specify the point size since this is a scalable font ...
:-)


>
> Martin, do you have code for Freetype to enumerate TTF files and get
> their hdrs?  I see this as the answer to this.
>

See the demo "ftdump.c" in the test directory of the freetype library. Or
execute "ftdump" on your linux box if freetype is installed. This program is
simple and it prints all the information available in a truetype file.

Regards,

Martin Jolicoeur
GVT Project
####@####.####



Previous by date: 15 Mar 2000 23:28:00 -0000 Re: Scalable font support ..., Greg Haerr
Next by date: 15 Mar 2000 23:28:00 -0000 Re: Scalable font support ..., Rod Boyce
Previous in thread: 15 Mar 2000 23:28:00 -0000 Re: Scalable font support ..., Greg Haerr
Next in thread: 15 Mar 2000 23:28:00 -0000 Re: Scalable font support ..., Rod Boyce


Powered by ezmlm-browse 0.20.