[GRASS-dev] discussion: replacing ps.map

Jachym Cepicky jachym.cepicky at gmail.com
Fri Apr 6 08:08:20 EDT 2007

tahanks for you answer

2007/4/6, Glynn Clements <glynn at gclements.plus.com>:
> J-Báchym Čepický wrote:-A
> > the PS driver works nice, thanks!
> >
> > What about d.text.freetype ? I wonder how complicated it would be to
> > implement too..?
> Huh?
> d.text.freetype should work with the PS driver, although it will
> rasterise the bitmaps at a resolution of 1 point, then embed the
> bitmaps.

d.mon PS
d.text.freetype font=luximr text="hallo, world" at=10,10
d.mon stop=PS

gv map.ps

document is not opend

same for d.font && d.text

What am I missing? In standard monitor it works nice, PNG driver too..

Thanks a lot


> Also, d.text.freetype and d.font.freetype are redundant. d.text,
> d.text.new, and d.font all work with FreeType fonts (again, the actual
> fonts will be rasterised).
> If you're talking about using PostScript fonts, it wouldn't be
> particularly hard to pass R_font() along to the driver (R_text() can
> already be overriden by the driver). However:
> 1. PostScript tends to use non-standard encodings. You can reliably
> create ISO-8859-1 versions of built-in fonts (ps.map does this), but
> anything beyond that is problematic.
> 2. Implementing R_get_text_box() would be a lot of work, and would
> require that you had the corresponding AFM/PFM files (and the driver
> would have to know where to find them).
> --
> Glynn Clements <glynn at gclements.plus.com>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev

Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

More information about the grass-dev mailing list