[GRASS-dev] figureing out fonts - part 3 correction

Glynn Clements glynn at gclements.plus.com
Tue May 1 01:18:20 EDT 2007


Michael Barton wrote:

> Thanks for the ideas. To clarify, will the fonts be listed in $GRAS_FT_CAP
> such that I can just parse this?

The mkftcap script will generate a freetypecap file containing all
.ttf files found in its hard-coded list of directories. The user may
subsequently edit the file.

For binary distributions, the mkftcap script will need to be run on
the target system after installation, or the user will need to create
the file by other means.

Any fonts which are added after the freetypecap file is created won't
appear until the file is explicitly updated.

IOW, there can be fonts which are installed but which aren't listed in
the freetypecap file. This may be an explicit choice on the user's
part, or it may be an oversight. If you could guarantee that all fonts
were listed in that file, there wouldn't be any need to support
specifying fonts by an absolute path.

One reason why the freetypecap file may not list all available fonts
is that some users may have a lot of fonts, and don't want an
excessively-long list of options for any font= parameters.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list