version 2, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
defoma-font |
|
|
2 |
!!!defoma-font |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
COMMANDS |
|
|
7 |
OPTIONS |
|
|
8 |
EXAMPLES |
|
|
9 |
SEE ALSO |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
defoma-font - register/unregister font(s) to Debian Font Manager |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__defoma-font__ [[''options''] __register__ |
|
|
19 |
''category font hints...''__ |
|
|
20 |
defoma-font__ [[''options''] __unregister__ |
|
|
21 |
''category font''__ |
|
|
22 |
defoma-font__ [[''options''] __reregister__ |
|
|
23 |
''category font hints...''__ |
|
|
24 |
defoma-font__ [[''options''] __purge__ ''category |
|
|
25 |
font''__ |
|
|
26 |
defoma-font__ [[''options''] __register-all__ |
|
|
27 |
''hintfile''__ |
|
|
28 |
defoma-font__ [[''options''] __unregister-all__ |
|
|
29 |
''hintfile''__ |
|
|
30 |
defoma-font__ [[''options''] __reregister-all__ |
|
|
31 |
''hintfile''__ |
|
|
32 |
defoma-font__ [[''options''] __purge-all__ |
|
|
33 |
''hintfile'' |
|
|
34 |
!!DESCRIPTION |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
__defoma-font__ is a tool to register or unregister |
|
|
38 |
font(s) to Defoma, Debian Font Manager. Defoma then calls |
|
|
39 |
Defoma-configuration-scripts provided by applications to |
|
|
40 |
make the font(s) configured for the applications which can |
|
|
41 |
make use of them. It is supposed to be called from postinst |
|
|
42 |
and prerm scripts, but may be called from console for |
|
|
43 |
not-packaged addon fonts. |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
There are two methods of registering/unregistering font(s): |
|
|
47 |
by specifying one font with its hints, or through a |
|
|
48 |
''hintfile'' , which describes several fonts with their |
|
|
49 |
hints. Font packages may possibly use the latter method, |
|
|
50 |
installing a ''hintfile'' under /etc/defoma/hints as |
|
|
51 |
conffile. The latter method has '-all' added in the |
|
|
52 |
commands. |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
''category'' specifies the category of a font like type1, |
|
|
56 |
truetype and so on. ''font'' specifies the font itself |
|
|
57 |
and is either a full path to the font, or a logical font |
|
|
58 |
name. ''hints'' specify the hints of the font, which |
2 |
perry |
59 |
contain essential information of the font like !FontName, |
1 |
perry |
60 |
Charset and Encoding, appearance information of the font |
2 |
perry |
61 |
representing its face like Weight, Shape, !GeneralFamily and |
1 |
perry |
62 |
Width, and additional informaiton of the font like Alias and |
|
|
63 |
Priority. |
|
|
64 |
!!COMMANDS |
|
|
65 |
|
|
|
66 |
|
|
|
67 |
__register__ |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
Register the specified ''font'' with the specified |
|
|
71 |
''hints'' into the specified ''category'' unless the |
|
|
72 |
font is already registered. |
|
|
73 |
|
|
|
74 |
|
|
|
75 |
__unregister__ |
|
|
76 |
|
|
|
77 |
|
|
|
78 |
Unregister the specified ''font'' which must be already |
|
|
79 |
registered in the specified ''category''. If the font is |
|
|
80 |
marked as use or exclude in an Id cache of a certain |
|
|
81 |
application, the marks are left intact. |
|
|
82 |
|
|
|
83 |
|
|
|
84 |
__reregister__ |
|
|
85 |
|
|
|
86 |
|
|
|
87 |
If the specified ''font'' is already registered, the |
|
|
88 |
registered hints and the specified ''hints'' are |
|
|
89 |
compared. If these hints differs, the font first gets |
|
|
90 |
unregistered and then newly registered with the specified |
|
|
91 |
new hints. If the font is not registered, following process |
|
|
92 |
is the same as __register__ command. |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
__purge__ |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
This command is almost the same as __unregister__ |
|
|
99 |
command, except that this command removes the marks in an Id |
|
|
100 |
cache. |
|
|
101 |
|
|
|
102 |
|
|
|
103 |
__register-all__ |
|
|
104 |
|
|
|
105 |
|
|
|
106 |
__unregister-all__ |
|
|
107 |
|
|
|
108 |
|
|
|
109 |
__reregister-all__ |
|
|
110 |
|
|
|
111 |
|
|
|
112 |
__purge-all__ |
|
|
113 |
|
|
|
114 |
|
|
|
115 |
These commands operate all the fonts written in the |
|
|
116 |
specified ''hintfile''. |
|
|
117 |
!!OPTIONS |
|
|
118 |
|
|
|
119 |
|
|
|
120 |
__-t__ |
|
|
121 |
|
|
|
122 |
|
|
|
123 |
Exit with true value (0) even if error occurs. |
|
|
124 |
|
|
|
125 |
|
|
|
126 |
__-v__ |
|
|
127 |
|
|
|
128 |
|
|
|
129 |
Verbose output. |
|
|
130 |
|
|
|
131 |
|
|
|
132 |
__-d__ |
|
|
133 |
|
|
|
134 |
|
|
|
135 |
More verbose output. |
|
|
136 |
|
|
|
137 |
|
|
|
138 |
__-q__ |
|
|
139 |
|
|
|
140 |
|
|
|
141 |
Quiet output. |
|
|
142 |
!!EXAMPLES |
|
|
143 |
|
|
|
144 |
|
|
|
145 |
defoma-font -vt register type1 /usr/share/fonts/type1/foo.pfa \ |
2 |
perry |
146 |
--!FontName Helvetica --Charset ISO8859-1 --Weight Medium \ |
|
|
147 |
--Shape Upright !NoSerif --!GeneralFamily !SansSerif |
1 |
perry |
148 |
defoma-font reregister-all /etc/defoma/hints/microsoft.hints |
|
|
149 |
!!SEE ALSO |
|
|
150 |
|
|
|
151 |
|
|
|
152 |
defoma(1). |
|
|
153 |
---- |