[GRASS-user] Freetype fonts in gis.m

Glynn Clements glynn at gclements.plus.com
Fri Jun 9 21:22:16 EDT 2006


Michael Barton wrote:

> > 2. gis.m provides no guarantees as to the order in which layers are
> > rendered. If a command changes the font, whether other commands use
> > the default font or the changed font depends upon the order in which
> > the commands are executed.
> 
> The layers are always rendered and composited in bottom to top order in
> gis.m.
> 
> Between each layer rendering, it is necessary to run a d.font command or no
> text will render. Currently this defaults to d.font romans. It could be set
> to a variable which, in turn, could be set by d.font.text or
> d.font.freetype.

You're still restarting the driver for every layer?

Whilst inefficient, that does at least simplify the font issue.

For now, it's simpler to keep the font handling entirely within gis.m,
i.e. provide a user option to control the font used at startup
(ideally, also provide an option to use freetype fonts).

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




More information about the grass-user mailing list