[GRASS-dev] font path question for Linux and Windows
glynn at gclements.plus.com
Thu May 3 00:41:03 EDT 2007
Glynn Clements wrote:
> > Then there is the other problem - resource fonts, dfonts and otf
> > fonts can have, and most do in the OSX system, multiple faces per
> > file. The font display routines in GRASS need an option to specify a
> > face in a font file, either by index number or name. Otherwise most
> > of the fonts included in OSX are of limited usefulness.
> That's easy enough to implement.
> One option is to pick an arbitrary character to separate the index
> from the filename. If the path ends with that character followed by a
> number, the number is the index.
> That has the advantage that only the lowest level of the driver code
> needs to change (draw_main(), in lib/driver/text3.c; the function
> which calls FT_New_Face()).
One disadvantage is that it won't work with options with:
opt->gisprompt = "old_file,..."
I'm strongly leaning towards eliminating the option to specify fonts
by paths, and just require the use of a name which is looked up in the
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev