[GRASS5] 5.7: XDRIVER Freetype support functional (incl Asian fonts)

Hi,

with help of Huidae Cho we got the XDRIVER Freetype support
functional (incl support for Asian fonts).

Usage:

#Japanese Fonts (ojiya sample location from FOSS4G project):
d.mon x0
d.font.freetype font=/usr/X11R6/lib/X11/fonts/TTF/ipag.ttf
d.vect dourokukan
d.vect dourokukan disp=attr attrcol=label
#... displays Japanese characters in the map (atts in DBF file).

#Spearfish with luxisb.ttf (Sans Serif Bold):
d.mon x0
d.font.freetype font=/usr/X11R6/lib/X11/fonts/TTF/luxisb.ttf
d.vect fields
d.vect fields disp=attr attrcol=label
#... displays Western TTF characters in the map.

I'll add a screenshot to
http://grass.itc.it/i18n.html
the next days.

The implementation is a code merge from 5.0-i18N, so special thanks to
GRASS i18n Project Members:
http://www.foss4g.org/FOSS4G/GRASS/nf-grass-i18n-en.html

- Masumoto Shinji, Venkatesh Raghavan, Nonogaki Susumu, Nemoto Tatsuya,
Hirai Naoki (Osaka City University, Japan)
- Hagiwara Akira, Niwa Makoto, Mori Toru (Orkney Inc., Japan)
- Hattori Norihiro (E-Solution Service, Inc., Japan)

Sponsored by:
IPA (Information-technology Promotion Agency, Japan)

TODO:
add gettext message support to the TCL based commands

Enjoy,

Markus

Maybe related...
XDRIVER and other display drivers do not compile on fresh install from
CVS. It has no rule to create libgrass_display.a

The observed consequence is that monitors can not be opened.

On Thu, 2004-10-28 at 06:13 +0200, neteler@itc.it wrote:

Hi,

with help of Huidae Cho we got the XDRIVER Freetype support
functional (incl support for Asian fonts).

Usage:

#Japanese Fonts (ojiya sample location from FOSS4G project):
d.mon x0
d.font.freetype font=/usr/X11R6/lib/X11/fonts/TTF/ipag.ttf
d.vect dourokukan
d.vect dourokukan disp=attr attrcol=label
#... displays Japanese characters in the map (atts in DBF file).

#Spearfish with luxisb.ttf (Sans Serif Bold):
d.mon x0
d.font.freetype font=/usr/X11R6/lib/X11/fonts/TTF/luxisb.ttf
d.vect fields
d.vect fields disp=attr attrcol=label
#... displays Western TTF characters in the map.

I'll add a screenshot to
http://grass.itc.it/i18n.html
the next days.

The implementation is a code merge from 5.0-i18N, so special thanks to
GRASS i18n Project Members:
http://www.foss4g.org/FOSS4G/GRASS/nf-grass-i18n-en.html

- Masumoto Shinji, Venkatesh Raghavan, Nonogaki Susumu, Nemoto Tatsuya,
Hirai Naoki (Osaka City University, Japan)
- Hagiwara Akira, Niwa Makoto, Mori Toru (Orkney Inc., Japan)
- Hattori Norihiro (E-Solution Service, Inc., Japan)

Sponsored by:
IPA (Information-technology Promotion Agency, Japan)

TODO:
add gettext message support to the TCL based commands

Enjoy,

Markus

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

It is fixed when I copied the missing XDRIVER and libgrass_driver.so
from a previous installation into their respective directories:
/usr/local/grass-5.7.cvs/driver/XDRIVER
/usr/local/grass-5.7.cvs/lib/libgrass_driver.so

But still cant find what is buggy in the compilation...

On Fri, 2004-10-29 at 19:37 +0700, yann wrote:

Maybe related...
XDRIVER and other display drivers do not compile on fresh install from
CVS. It has no rule to create libgrass_display.a

The observed consequence is that monitors can not be opened.

On Thu, 2004-10-28 at 06:13 +0200, neteler@itc.it wrote:
> Hi,
>
> with help of Huidae Cho we got the XDRIVER Freetype support
> functional (incl support for Asian fonts).
>
> Usage:
>
> #Japanese Fonts (ojiya sample location from FOSS4G project):
> d.mon x0
> d.font.freetype font=/usr/X11R6/lib/X11/fonts/TTF/ipag.ttf
> d.vect dourokukan
> d.vect dourokukan disp=attr attrcol=label
> #... displays Japanese characters in the map (atts in DBF file).
>
> #Spearfish with luxisb.ttf (Sans Serif Bold):
> d.mon x0
> d.font.freetype font=/usr/X11R6/lib/X11/fonts/TTF/luxisb.ttf
> d.vect fields
> d.vect fields disp=attr attrcol=label
> #... displays Western TTF characters in the map.
>
> I'll add a screenshot to
> http://grass.itc.it/i18n.html
> the next days.
>
> The implementation is a code merge from 5.0-i18N, so special thanks to
> GRASS i18n Project Members:
> http://www.foss4g.org/FOSS4G/GRASS/nf-grass-i18n-en.html
>
> - Masumoto Shinji, Venkatesh Raghavan, Nonogaki Susumu, Nemoto Tatsuya,
> Hirai Naoki (Osaka City University, Japan)
> - Hagiwara Akira, Niwa Makoto, Mori Toru (Orkney Inc., Japan)
> - Hattori Norihiro (E-Solution Service, Inc., Japan)
>
> Sponsored by:
> IPA (Information-technology Promotion Agency, Japan)
>
> TODO:
> add gettext message support to the TCL based commands
>
> Enjoy,
>
> Markus
>
> _______________________________________________
> grass5 mailing list
> grass5@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5
>

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

On Sat, Oct 30, 2004 at 08:25:04PM +0700, yann wrote:

It is fixed when I copied the missing XDRIVER and libgrass_driver.so
from a previous installation into their respective directories:
/usr/local/grass-5.7.cvs/driver/XDRIVER
/usr/local/grass-5.7.cvs/lib/libgrass_driver.so

But still cant find what is buggy in the compilation...

I found it. Fixed in CVS (a definition was missing).

Sorry for the inconvenience

Markus

On Fri, 2004-10-29 at 19:37 +0700, yann wrote:
> Maybe related...
> XDRIVER and other display drivers do not compile on fresh install from
> CVS. It has no rule to create libgrass_display.a
>
> The observed consequence is that monitors can not be opened.
>