[GRASS-dev] discussion: replacing ps.map

Glynn Clements glynn at gclements.plus.com
Fri Apr 6 07:27:12 EDT 2007

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..?


d.text.freetype should work with the PS driver, although it will
rasterise the bitmaps at a resolution of 1 point, then embed the

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>

More information about the grass-dev mailing list