1d.font.freetype(1)            Grass User's Manual           d.font.freetype(1)
2
3
4

NAME

6       d.font   -  Selects  the  font  in  which text will be displayed on the
7       user's graphics monitor.
8

KEYWORDS

10       display
11

SYNOPSIS

13       d.font
14       d.font help
15       d.font   [-lL]    [font=string]     [path=string]      [charset=string]
16       [--verbose]  [--quiet]
17
18   Flags:
19       -l
20           List fonts
21
22       -L
23           List fonts verbosely
24
25       --verbose
26           Verbose module output
27
28       --quiet
29           Quiet module output
30
31   Parameters:
32       font=string
33           Choose new current font
34           Default: romans
35
36       path=string
37           Path to Freetype-compatible font including file name
38
39       charset=string
40           Character encoding
41           Default: UTF-8
42

DESCRIPTION

44       d.font.freetype  selects  the  freetype font in which text will be dis‐
45       played on the user's graphics monitor.
46       The text (character strings) displayed on the GRASS monitor was  inter‐
47       nationalized.  Internationalization does not use vector (Hershey) fonts
48       as the old version, but it uses instead TrueType  fonts  which  enables
49       the  display  of Double Byte characters such as Japanese character set.
50       To set up TrueType fonts, d.font.freetype performs font  and  character
51       encodings.   This  internationalization  can  now  display Japanese and
52       other (asian) language texts from vector labels, legends, etc.
53

USAGE

55       To enable displaying of a TrueType font on the GRASS monitor, run:
56       d.mon x0
57       d.font.freetype [font=TrueTypefontname] [charset=encoding]
58       #with:
59       # [font]:    TrueType font path (full path including font file name)
60       # [charset]: character encoding (EUC-JP, UTF-8, SJIS)
61       # Examples on Redhat Linux 9.x:
62       d.font.freetype      font=/usr/share/fonts/ja/TrueType/kochi-gothic.ttf
63       charset=EUC-JP
64       d.font.freetype font=/usr/X11R6/lib/X11/fonts/TTF/luximb.ttf
65       # Example on Mandrake 10:
66       d.font.freetype font=/usr/X11R6/lib/X11/fonts/TTF/ipag.ttf charset=EUC-
67       JP
68
69       d.font.freetype font=/usr/share/fonts/openoffice/Vera.ttf
70       d.font.freetype font=/usr/share/fonts/ttf/vera/Vera.ttf
71       # Example using the freetypecap file:
72       d.font.freetype -l
73       d.font.freetype font=batang
74
75

DEFINITION FILE

77       To help users select fonts conveniently, the  definition  file,  $(GIS‐
78       BASE)/etc/freetypecap, is provided.  Its format is as follows:
79       font:fontpath:charset:description
80       *default_font:fontpath:charset:description
81        See the file for examples.
82

SEE ALSO

84       d.text
85       d.text.freetype
86       d.font
87       d.vect
88

AUTHOR

90       FOSS4G members.
91       Project  sponsored  by  IPA  (Information-technology  Promotion Agency,
92       Japan)
93
94       Last changed: $Date: 2007-04-07 13:34:10 +0200 (Sat, 07 Apr 2007) $
95
96       Full index
97
98       © 2003-2008 GRASS Development Team
99
100
101
102GRASS 6.3.0                                                 d.font.freetype(1)
Impressum