[GRASS-dev] using system fonts?

Hamish hamish_nospam at yahoo.com
Tue Apr 24 01:57:34 EDT 2007


Glynn Clements wrote:
> 
> Nope; that information simply isn't available.
> 
> The way that fonts work in a GUI is that the GUI (usually) provides
> some way to obtain a list of names, and (invariably) provides some way
> to select a font using a name.


perhaps add a script to the GUI Config menu to search the system for
.ttf fonts and dump to a .grass fontcap file?

eg for {`uname -s` = "Darwin"} look in wherever Mac dumps fonts, for
Windows use a .bat file that looks in C:\Windows\fonts\*.ttf (or
wherever), and for Linux /usr/X11R6/lib/X11/fonts/* or other common
dumping grounds.

if any files are on that list you get an easy picker, if not you can
always select the <file broswer>.


??,
Hamish




More information about the grass-dev mailing list