[GRASS5] d.text.freetype enhancement

I just added some sutff to d.text.freetype which hopefully will make it
a bit more useful & standardized.

- added a flag to place text as percentage of frame window
   (already has a flag to do so by pixels or by easting,northing)

- changed the color= option to accept R:G:B triplets in the same way
    that d.vect.line & d.vect.area do. The old way was color=0xRRGGBB
    I've kept it backwards compatible, but the old usage is now an
    undocumented feature.

still to do:

a) figure out why some microsoft/mac TrueType fonts don't work.

b) figure out why the new Debian freetype2 library requires
#include <ft2build.h>"
#include FT_FREETYPE_H"
instead of
#include <freetype/freetype.h>

(see ft2build.h header comments)

not sure how this affects older systems so I'm leaving it as-is.

Hamish

Moving right along..

I just added some stuff to d.text which hopefully will make it
a bit more useful & standardized.

* added an at= option to place text as a percentage of window
   height/width in the current display frame.

* added support to the color= option for R:G:B triplets

* added a -b flag to allow you to bold text from the command line.

Behaviour is same as before if you don't use the new options.

The common theme here is to be able to resize windows without having to
redo all your text, and have access to whatever colours you want.

enjoy (& let me know if it breaks),

Hamish

Hamish -

There is a dev version of freetype 2.1.8 that's been out a while (it's pretty stable as far as I can tell). Debian might be using that now (tho I couldn't say, since I'm on a Mac). This is a documented change in the whole freetype setup as of v2.1.6. I also had to 'fix' the d.text.freetype build after installing the new freetype. You probably need to add a conditional thingy in the configure script and d.text.freetype source to catch this.

On Jan 15, 2004, at 9:51 PM, Hamish wrote:

b) figure out why the new Debian freetype2 library requires
#include <ft2build.h>"
#include FT_FREETYPE_H"
instead of
#include <freetype/freetype.h>

(see ft2build.h header comments)

not sure how this affects older systems so I'm leaving it as-is.

-----
William Kyngesburye <kyngchaos@charter.net>
http://webpages.charter.net/kyngchaos/

"Those people who most want to rule people are, ipso-facto, those least suited to do it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy