[GRASS-user] d.text fail to load the font (osx)

Hi,

i'm tring to use

d.text on grass-6.3.cvs builded from source on a mac osx

i'm tring to use it as described inthe help menu, but it fail to load the font:

GRASS 6.3.cvs (wgs):~ > d.text << EOF
> .C yellow
> .S 4
> .B 1
> This is a test of d.text
> EOF
WARNING: unable to open font map
          '/Applications/GRASS-6.3.app/Contents/MacOS/fonts/.hmp': No such
          file or directory
GRASS 6.3.cvs (wgs):~ >

while using a line like :

d.mon x0
d.text 'text=text to display' size=5 color=gray align=ll rotation=0 linespacing=1.25 path=/Applications/GRASS-6.3.app/Contents/MacOS/fonts/italiccs.hmp

nothing is displayed.

i tried again using interactive place text flag :

d.text -m 'text=text to display' size=5 color=gray align=ll rotation=0 linespacing=1.25 font=italics path=/Applications/GRASS-6.3.app/Contents/MacOS/fonts/italiccs.hmp

but while the menu :

Click!
Left: Place text here
Right: Quit

is corrected displayed,

in the window "Output - Gis.m"
i've the same message :

unable to open font map '/Applications/GRASS-6.3.app/Contents/MacOS/fonts/.hmp': No such file or directory

seems that it do not use a "name" for the font, but only the extension is passed to the command.

i'm missing something, like i need to set a font first ?

or it is a knowed problem?

instead of d.text, now i'm using d.text.freetype without problems (works really fine)
using as font the path to the x11 font (as described in the help).

Hi Adam,

Yes it works fine now!

thanks a lot :smiley:

Massimo.

Il giorno 25/set/07, alle ore 16:45, Adam Dershowitz ha scritto:

Try running:

g.mkfontcap -o

and see if that helps. I had a similar error on the binary Mac release, and that solved it.

–Adam