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