glynn at gclements.plus.com
Tue Sep 18 15:15:12 EDT 2007
Wolf Bergenheim wrote:
> I just committed a change to the v.label.sa module which adds support
> for using fonts in the fontcap. I would have wanted to use standard
> GRASS functions for parsing the fontcap, but since it is placed in the
> display driver library it means to do that I'd require an open monitor.
> This seems a bit silly to me. I mean other things might want to use the
> fontcap without needing the overhead of a display. I wonder would it be
> possible to move the fontcap stuff to gislib?
The only thing that you can do with the font names returned by
R_font_list() is to pass them to R_font(). If you don't have a
monitor, you have no use for the font list.
The reason why the code is in the driver library is because the set of
available fonts is allowed to depend upon the driver. E.g. the
PostScript driver could return the built-in PostScript fonts, the X
driver could return fonts which are available on the X display, etc.
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev