[GRASS-dev] Re: [GRASS-user] Freetype fonts in gis.m

Hamish hamish_nospam at yahoo.com
Mon Jun 12 04:06:09 EDT 2006


[might as well move this off the -user list]

Michael Barton wrote:
> More generally, to make the d.* commands most efficiently useable from
> the command line and for scripting, it makes sense to add a font=
> option to all that need it. That is, d.legend by itself should be able
> to set which font it uses. It can already set everything else except
> the font.

The question remains how to easily retain a font setting if the display
monitors will be stateless. From the command line having to retype it
for every module is highly annoying. Right now I just need to set my TTF
font once per session.

* I want to be able to set a default font. (optionally TTF)
* I want to keep the modules as simple as possible. (e.g. d.vect+new user)



fyi, Matlab's way:   [each is a child of the one above]

"root" has certain settings (CLI and system wide settings)
  (More = off, ScreenDepth = [24], Children =, etc)

then
"figure" windows have their settings
  (DoubleBuffer = on, PaperType = a4, MenuBar =, Position =, Children =, ...)

then
"axes" have their settings
  (GridLineStyle =, Title =, XTickLabel =, Projection = orthographic, Children =, ...)

then
"lines" [etc] have their settings
  (Color =, LineStyle =, LineWidth =, Data = [X Y], ...)


each level has a pointer you can get() or set() features with. e.g. root
is 0, figure1 is 1, figure2 is 2, etc.


maybe a useful paradigm to consider, as the two programs are
structurally very similar creatures.


Hamish




More information about the grass-dev mailing list