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

NAME

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

KEYWORDS

10       display
11

SYNOPSIS

13       d.font.freetype
14       d.font.freetype help
15       d.font.freetype [-l]  [font=string]   [charset=string]
16
17   Flags:
18       -l  list fonts defined in freetypecap
19
20   Parameters:
21       font=string
22           Font name (not supported interactively, see also -l flag)  or  path
23           to TrueType font (including file name)
24
25       charset=string
26           Character encoding Default: UTF-8
27

DESCRIPTION

29       d.font.freetype  selects  the  freetype font in which text will be dis‐
30       played on the user's graphics monitor.
31       The text (character strings) displayed on the GRASS monitor was  inter‐
32       nationalized.  Internationalization does not use vector (Hershey) fonts
33       as the old version, but it uses instead TrueType  fonts  which  enables
34       the  display  of Double Byte characters such as Japanese character set.
35       To set up TrueType fonts, d.font.freetype performs font  and  character
36       encodings.   This  internationalization  can  now  display Japanese and
37       other (asian) language texts from vector labels, legends, etc.
38

USAGE

40       To enable displaying of a TrueType font on the GRASS monitor, run:
41       d.mon x0
42       d.font.freetype [font=TrueTypefontname] [charset=encoding]
43       #with:
44       # [font]:    TrueType font path (full path including font file name)
45       # [charset]: character encoding (EUC-JP, UTF-8, SJIS)
46       # Examples on Redhat Linux 9.x:
47       d.font.freetype      font=/usr/share/fonts/ja/TrueType/kochi-gothic.ttf
48       charset=EUC-JP
49       d.font.freetype font=/usr/X11R6/lib/X11/fonts/TTF/luximb.ttf
50       # Example on Mandrake 10:
51       d.font.freetype font=/usr/X11R6/lib/X11/fonts/TTF/ipag.ttf charset=EUC-
52       JP
53
54       d.font.freetype font=/usr/share/fonts/openoffice/Vera.ttf
55       d.font.freetype font=/usr/share/fonts/ttf/vera/Vera.ttf
56       # Example using the freetypecap file:
57       d.font.freetype -l
58       d.font.freetype font=batang
59
60
61       To disable to display a TrueType font on the monitor, run:
62       d.font.freetype font=
63
64

DEFINITION FILE

66       To help users select fonts conveniently, the  definition  file,  $(GIS‐
67       BASE)/etc/freetypecap, is provided.  Its format is as follows:
68       font:fontpath:charset:description
69       *default_font:fontpath:charset:description
70        See the file for examples.
71

SEE ALSO

73       d.text
74       d.text.freetype
75       d.font
76       d.vect
77

AUTHOR

79       FOSS4G members.
80       Project  sponsored  by  IPA  (Information-technology  Promotion Agency,
81       Japan)
82
83       Last changed: $Date: 2006/02/13 20:08:15 $
84
85       Full index
86
87
88
89GRASS 6.2.2                                                 d.font.freetype(1)
Impressum