Debian Codegraph @

doc/sphinx/olddocs/old/ja/scripting-alpha.html

raw symbols SCIP
1 <HTML>
2 <HEAD>
3 <!-- Created with AOLpress/2.0 -->
4 <!-- AP: Created on: 9-Apr-2006 -->
5 <!-- AP: Last modified: 14-Jul-2006 -->
6 <!--
7 <TITLE>Scripting functions</TITLE> -->
8 <TITLE>スクリプト関数一覧</TITLE>
9 <LINK REL="icon" href="../../_static/fftype16.png">
10 <LINK REL="stylesheet" TYPE="text/css" HREF="FontForge.css">
11 </HEAD>
12 <BODY id="framed">
13 <DIV id="framed-in">
14 <H1 ALIGN=Center>
15 <!--Scripting functions -->
16 スクリプト関数一覧
17 </H1>
18 <P ALIGN=Center>
19 - <A HREF="#A">A</A> - <A HREF="#B">B</A> - <A HREF="#C">C</A> -
20 <A HREF="#D">D</A> - <A HREF="#E">E</A> - <A HREF="#F">F</A> -
21 <A HREF="#G">G</A> - <A HREF="#H">H</A> - <A HREF="#I">I </A>- <A HREF="#J">J
22 </A>- <A HREF="#K">K</A> - <A HREF="#L">L</A> - <A HREF="#M">M</A> -
23 <A HREF="#N">N</A> - <A HREF="#O">O</A> - <A HREF="#P">P</A> -
24 <A HREF="#Q">Q</A> - <A HREF="#R">R</A> - <A HREF="#S">S</A> - <A HREF="#T">T
25 </A>- <A HREF="#U">U </A>- <A HREF="#V">V </A>- <A HREF="#W">W</A> -
26 <A HREF="#X">X </A>- <A HREF="#Y">Y</A> - <A HREF="#Z">Z </A>-
27 <P>
28 <!--
29 The built in procedures are very similar to the menu items with the same
30 names. Often the description here is sketchy, look at the menu item for more
31 information. -->
32 組み込み <A NAME="procedures">手続き</A> の動作は、同じ名前のメニュー項目とほとんど同じです。ここでの説明はしばしば概要しか示されていませんので、より詳しい情報は当該のメニュー項目を調べてください。
33 <P>
34 <!--
35 I use a syntax like: -->
36 構文は以下のように記述しています:
37 <BLOCKQUOTE>
38 <PRE>
39 Generate</A>(filename[,bitmaptype[,fmflags[,res[,mult-sfd-file[,namelist-name]]]]])
40 </PRE>
41 </BLOCKQUOTE>
42 <P>
43 <!--
44 To mean that arguments after the first are optional. However if you wish
45 to set the fourth argument you must specify the second and third arguments
46 too. -->
47 これは、最初の引数の後は省略可能であることを表します。ただし、4 番目の引数を設定したい場合、2 番目と 3 番目の引数も同時に指定しなければなりません。
48 <P>
49 <TABLE CELLPAD=0 CELLSPACE=0>
50 <TR VALIGN=TOP>
51 <TD BGCOLOR=yellow><A NAME="A">A</A></TD>
52 <TD><DL>
53 <DT>
54 <A NAME="AddAccent">A</A>ddAccent(accent[,pos])
55 <DD>
56 <!-- There must be exactly one glyph selected. That glyph must contain at least
57 one reference (and the least recently added reference must be the base glyph
58 - - the letter on which the accent is placed). The first argument should be
59 either the glyph-name of an accent, or the unicode code point of that accent
60 (and it should be in the font). The second argument, if present indicates
61 how the accent should be positioned... if omitted a default position will
62 be chosen from the unicode value for the accent, this argument is the or
63 of the following flags: -->
64 ちょうど 1 個のグリフを選択していなければなりません。そのグリフは最低 1 個の参照を含んでいる必要があります (そして、いちばん最後に追加された参照は基底グリフ——アクセントを置く土台となる文字——でなければなりません) 。最初の引数はアクセントのグリフ名、またはそのアクセントの Unicode のコードポイントです (そのグリフがフォントに存在しなければなりません)。2 番目の引数が存在する場合は、アクセントをどこに置くかを示します……もし省略した場合、アクセントの Unicode 値が使用されます。この引数は以下のフラグの OR を取ったものです。
65 <TABLE BORDER CELLPADDING="2">
66 <TR>
67 <TD>0x100</TD>
68 <!-- <TD>Above</TD> -->
69 <TD>上</TD>
70 </TR>
71 <TR>
72 <TD>0x200</TD>
73 <!-- <TD>Below</TD> -->
74 <TD>下</TD>
75 </TR>
76 <TR>
77 <TD>0x400</TD>
78 <!-- <TD>Overstrike</TD> -->
79 <TD>重ね打ち</TD>
80 </TR>
81 <TR>
82 <TD>0x800</TD>
83 <!-- <TD>Left</TD> -->
84 <TD>左</TD>
85 </TR>
86 <TR>
87 <TD>0x1000</TD>
88 <!-- <TD>Right</TD> -->
89 <TD>右</TD>
90 </TR>
91 <TR>
92 <TD>0x4000</TD>
93 <!-- <TD>Center Left</TD> -->
94 <TD>左中央</TD>
95 </TR>
96 <TR>
97 <TD>0x8000</TD>
98 <!-- <TD>Center Right</TD> -->
99 <TD>右中央</TD>
100 </TR>
101 <TR>
102 <TD>0x10000</TD>
103 <!-- <TD>Centered Outside</TD> -->
104 <TD>外側の中心</TD>
105 </TR>
106 <TR>
107 <TD>0x20000</TD>
108 <!-- <TD>Outside</TD> -->
109 <TD>外側</TD>
110 </TR>
111 <TR>
112 <TD>0x40000</TD>
113 <!-- <TD>Left Edge</TD> -->
114 <TD>左端</TD>
115 </TR>
116 <TR>
117 <TD>0x80000</TD>
118 <!-- <TD>Right Edge</TD> -->
119 <TD>右端</TD>
120 </TR>
121 <TR>
122 <TD>0x100000</TD>
123 <!-- <TD>Touching</TD> -->
124 <TD>接触する</TD>
125 </TR>
126 </TABLE>
127 <DT>
128 <A NAME="AddAnchorClass">A</A>ddAnchorClass(name,type,script-lang,tag,flags,merge-with)
129 <DD>
130 <!-- These mirror the values of the Anchor class dialog of Element-&gt;Font Info.
131 The first argument should be a utf8 encoded name for the anchor class. The
132 second should be one of the strings "default", "mk-mk", or "cursive". The
133 third should be a script-lang string like:<BR>
134 <CODE>&nbsp; &nbsp; grek{dflt} latn{dflt,VIT ,ROM }</CODE><BR>
135 The fourth arg should be a 4 character opentype feature tag. The fifth argument
136 should be the <A HREF="#otf-flags">otf flags </A>(or -1 to make FontForge
137 guess appropriate flags). The sixth and last argument should be the name
138 of another AnchorClass to be merged into the same lookup (or a null string
139 if this class merges with no other class yet). -->
140 これらは、<CODE>エレメント(<U>L</U>)</CODE>→<CODE>フォント情報(<U>I</U>)</CODE>メニューの <CODE>[アンカークラス]</CODE> ダイアログを反映しています。最初の引数は UTF-8 でエンコードされたアンカークラスの名前です。2 番目は "default", "mk-mk", または "cursive" のいずれかです。3 番目はスクリプト-言語の文字列です:<BR>
141 <CODE>&nbsp; &nbsp; grek{dflt} latn{dflt,VIT ,ROM }</CODE><BR>
142 4 番目の引数は 4 文字の OpenType 機能タグです。5 番目の引数は <A HREF="#otf-flags">OTF フラグ</A> (-1 のときは、FontForge が適切なフラグを推測します) です。 6 番目と最後の引数は、同じ lookup に統合されるもう一つのアンカークラス (このクラスがまだ他のクラスを統合していない場合、空文字列となります) です。
143 <DT>
144 <A NAME="AddAnchorPoint">A</A>ddAnchorPoint(name,type,x,y[,lig-index])
145 <DD>
146 <!-- Adds an AnchorPoint to the currently selected glyph. The first argument is
147 the name of the AnchorClass. The second should be one of the strings: "mark",
148 "basechar", "baselig", "basemark", "cursentry" , "cursexit" or "default"
149 ("default" tries to guess an appropriate setting for you). The next two values
150 specify the location of the point. The final argument is only present for
151 things of type "baselig". -->
152 現在選択中のグリフにアンカーポイントを追加します。最初の引数はアンカークラスの名前です。2 番目は文字列 "mark", "basechar", "baselig", "basemark", "curseentry", "cursexit" または "default" のどれか 1 つを指定します ("default" を指定すると、適切な値の推測を試みます)。その後ろの 2 つの引数は点の位置を指定します。最後の引数は、type が "baselig" のときにのみ使用します。
153 <DT>
154 <A NAME="AddATT">A</A>ddATT(type,script-lang,tag,flags,variant)<BR>
155 AddATT("Position",script-lang,tag,flags,xoff,yoff,h_adv_off,v_adv_off)<BR>
156 AddATT("Pair",script-lang,tag,flags,name,xoff,yoff,h_adv_off,v_adv_off,xoff2,yoff2,h_adv_off2,v_adv_off2)
157 <DD>
158 <!-- Allows you to add an Advanced Typography feature to a single selected glyph.
159 The first argument may be either: Position, Pair, Substitution, AltSubs,
160 MultSubs or Ligature. The second argument should be a script-lang list where
161 each 4-character script name is followed by a comma separated list of 4 character
162 language names (with the languages enclosed in curly braces) - - or the special
163 string "Nested". As:<BR>
164 <CODE>&nbsp; &nbsp; grek{dflt} latn{dflt,VIT ,ROM }</CODE><BR>
165 The third arg should be a 4 character opentype feature tag (or apple
166 feature/setting). -->
167 選択中の 1 個のグリフに対して 1 個のAdvanced Typography 機能を追加します。
168 最初の引数は Position, Pair, Substitution, AltSubs, MultSubs, Ligature のいずれかです。
169 2 番目の引数 script-lang は用字系・言語リストで、4 文字のスクリプト名の後ろに、言語名をカンマ区切りで並べたリスト——または特別な値“Nested”——が続きます
170 (言語リストは波括弧 { } で 囲みます)。例:<BR>
171 <CODE>&nbsp; &nbsp; grek{dflt} latn{dflt,VIT ,ROM }</CODE><BR>
172 3 番目の引数 tag は 4 文字の OpenType 機能タグです。
173 <P>
174 <!-- The fourth argument should be the <A NAME="otf-flags">otf flags </A>(or -1
175 to make FontForge guess appropriate flags). -->
176 4 番目の引数 flags は <A NAME="otf-flags">OTF のフラグ</A>です
177 (-1 の時は、FontForge が適切なフラグを推測します)。
178 <UL>
179 <LI>
180 <!-- 0x0001 =&gt; RightToLeft -->
181 0x0001 ⇒ 右から左へ
182 <LI>
183 <!-- 0x0002 =&gt; IgnoreBaseGlyphs -->
184 0x0002 ⇒ 基底文字を無視する
185 <LI>
186 <!-- 0x0004 =&gt; IgnoreLigatures -->
187 0x0004 ⇒ 合字を無視する
188 <LI>
189 <!-- 0x0008 =&gt; IgnoreMarks -->
190 0x0008 ⇒ マークを無視する
191 <LI>
192 <!-- 0x00F0 =&gt; not defined -->
193 0x00F0 ⇒ 未定義
194 <LI>
195 <!-- 0xFF00 =&gt; not supported -->
196 0xFF00 ⇒ 未サポート
197 </UL>
198 <P>
199 <!-- The remaining argument(s) vary depending on the value of the first (type)
200 argument. For Position tags there are 4 integral arguments which specify
201 how this feature modifies the metrics of this glyph. For Pair type the next
202 argument is the name of the other glyph in the pair followed by 8 integral
203 arguments, the first 4 specify the changes in positioning to the first glyph,
204 the next four the changes for the second char. For substitution tags the
205 fifth argument is the name of another glyph which will replace the current
206 one. For an AltSubs tag the argument is a space separated list of glyph names
207 any of which will replace the current one. For a MultSubs the argument is
208 a space separated list of names all of which will replace the current one.
209 For a Ligature the argument is a space separated list of glyph names all
210 of which will be replaced by the current glyph. -->
211 残りの引数は、最初の引数 (type) によって全く異なります。
212 type に Position を用いる機能タグを指定した場合、その機能がどのようにこのグリフのメトリックを変形するかを指定する 4 個の整数値を指定します。
213 type が Pair の場合、次の引数はペア中のもう一つのグリフの名前で、8 個の整数引数が後ろに続きます。最初の 4 個は最初のグリフの位置を指定し、次の 4 個は 2 番目のグリフの位置を変更します。
214 Substitution 型のタグの場合、5 番目の引数は、現在のグリフを置換する別のグリフの名前です。
215 AltSubs タグの場合、次の引数は現在のグリフを置き換える候補グリフすべてをスペース区切りで並べたリストです。
216 MultSubs の場合、次の引数は現在のグリフを置き換える一連のグリフをスペース区切りで並べたリストです。
217 Ligature の場合、引数は、現在のグリフによって置き換えられる一連のグリフ名をスペース区切りで並べたリストです。
218 <DT>
219 <A NAME="AddExtrema" HREF="elementmenu.html#Add-Extrema">AddExtrema</A>()
220 <DD>
221 <!-- If a spline in a glyph reaches a maximum or minimum x or y value within a
222 spline then break the spline so that there will be a point at all significant
223 extrema. (If this point is too close to an end-point then the end-point itself
224 may be moved. There are various other caveats. See
225 Element-&gt;<A NAME="AddExtrema" HREF="elementmenu.html#Add-Extrema">AddExtrema</A>
226 for more information). -->
227 グリフ内のスプラインの x 座標または y 座標が途中で極大値または極小値に達した場合、すべての顕著な極大値に点がある状態になるようにスプラインを分割します (もしその点が端点に近すぎる場合、それ自身が移動する可能性があります。注意すべき点は他にもいろいろあります。より詳しい情報は、<CODE>エレメント(<U>L</U>)</CODE>→<CODE><A NAME="AddExtrema" HREF="elementmenu.html#Add-Extrema">極大点の追加(<U>X</U>)</A></CODE> を参照してください)。
228 <DT>
229 <A NAME="AddHHint" HREF="hintsmenu.html#HHint">AddHHint</A>(start,width)
230 <DD>
231 <!-- Adds horizontal stem hint to any selected glyphs. The hint starts at location
232 "start" and is width wide. A hint will be added to all selected glyphs. -->
233 水平ステムヒントを選択中の任意のグリフに追加します。
234 ヒントは start で指定した位置から始まり、 wide で指定した幅をもちます。
235 このヒントは選択中のすべてのグリフに追加されます。
236 <DT>
237 <A NAME="AddInstrs">A</A>ddInstrs(thingamy,replace,instrs)
238 <DD>
239 <!-- Where thingamy is a string, either "fpgm" or "prep" in which case it refers
240 to that truetype table (which will be created if need be), or a glyph-name
241 in which case it refers to that glyph, or a null string in which case any
242 selected characters will be used.<BR> -->
243 引数 thingamy は文字列で、"fpgm", "prep" または何らかのグリフ名、もしくは空文字列でなければなりません。"fpgm" または "prep" の場合、それぞれ同名の TrueType テーブルを参照します (必要に応じて作成されます)。特定のグリフを参照するときにはそのグリフのグリフ名を指定します。選択中の任意の文字を使用する場合には、空文字列を指定します。<BR>
244 <!-- Where replace is an integer. If zero then the instructions will be appended
245 to any already present. If non-zero then the instructions will replace those
246 already present.<BR> -->
247 引数 replace は整数です。値が 0 の場合、既に存在する命令の後ろに instr で指定された命令を付け加えます。値が非 0 の場合、既に存在する命令を消去し、指定された命令に置き換えます。
248 <!-- And instrs is a string containing fontforge's human readable version of tt
249 instructions, as "<CODE>IUP[x]\nIUP[y]</CODE>" -->
250 最後の instr は FontForge の人間可読な形式の TrueType 命令文字列で、例えば "<CODE>IUP[x]\nIUP[y]</CODE>" のような形で指定します。
251 <DT>
252 <A NAME="AddVHint" HREF="hintsmenu.html#VHint">AddVHint</A>(start,width)
253 <DD>
254 <!-- Adds a vertical stem hint to any selected glyphs. The hint starts at location
255 "start" and is width wide. A hint will be added to all selected glyphs. -->
256 垂直ステムヒントを選択中の任意のグリフに追加します。ヒントは start で指定した位置から始まり、 wide で指定した幅をもちます。このヒントは選択中のすべてのグリフに追加されます。
257 <DT>
258 <A NAME="ApplySubstitution">A</A>pplySubstitution(script,lang,tag)
259 <DD>
260 <!-- All three arguments must be strings of no more that four characters (shorter
261 strings will be padded with blanks to become 4 character strings). For each
262 selected glyph this command will look up that glyph's list of substitutions,
263 and if it finds a substitution with the tag "tag" (and if that substitution
264 matches the script and language combination) then it will apply the
265 substitution- - that is it will find the variant glyph specified in the
266 substitution and replace the current glyph with the variant, and clear the
267 variant. -->
268 3 個の引数はすべて、4 文字を越えない文字列でなくてはなりません (4 文字より短い文字列は、後ろに空白が追加されます)。このコマンドは、選択中の各グリフに対して、そのグリフの置換リストを検索し、tag で指定されたタグを持つ (それに加え、スクリプトと言語の組合せがその置換に一致する) 置換が見つかった場合に置換を実行します — すなわち、置換によって指定された異体字グリフを探して現在のグリフをそれで置き換え、異体字グリフを消去します。
269 <P>
270 <!-- FontForge recognizes the string "*" as a wildcard for both the script and
271 the language (not for the tag though). So if you wish to replace all glyphs
272 with their vertical variants: -->
273 FontForge は文字列 "*" をスクリプトや言語の両方で使用できる
274 (ただしタグには使用できません) ワイルドカードとして認識します。
275 すべての文字を縦書き用の字形に置き換えたい場合は以下のようになります:
276 <BLOCKQUOTE>
277 <PRE>SelectAll()
278 ApplySubstitution("*","*","vrt2")
279 </PRE>
280 </BLOCKQUOTE>
281 <DT>
282 <A NAME="Array">A</A>rray(size)
283 <DD>
284 <!-- Allocates an array of the indicated size.-->
285 size で指定した大きさの配列を割り付けます。
286 <BLOCKQUOTE>
287 <PRE>a = Array(10)
288 i = 0;
289 while ( i&lt;10 )
290 a[i] = i++
291 endloop
292 a[3] = "string"
293 a[4] = Array(10)
294 a[4][0] = "Nested array";
295 </PRE>
296 </BLOCKQUOTE>
297 <P>
298 <!-- It can execute with no current font. -->
299 カレントフォントがない状態でも実行することができます。
300 <DT>
301 <A NAME="AskUser">A</A>skUser(question[,default-answer])
302 <DD>
303 <!-- Asks the user the question and returns an answer (a string). A default-answer
304 may be specified too. -->
305 ユーザに question を質問し、答え (文字列) を返します。デフォルトの答えを指定することもできます。
306 <DT>
307 <A NAME="ATan2">A</A>Tan2(val1,val2)
308 <DD>
309 <!-- Returns the arc-tangent. See atan2(3) for more info. It can execute with
310 no current font. -->
311 逆正接を返します。より詳しい情報は atan2(3) を参照してください。カレントフォントがない状態でも実行できます。
312 <DT>
313 <A NAME="AutoCounter" HREF="hintsmenu.html#Counter">AutoCounter</A>()
314 <DD>
315 <!-- Generates (PostScript) counter masks for selected glyphs automagically. -->
316 選択中のグリフに対して (PostScript の) カウンタマスクを全自動で作成します。
317 <DT>
318 <A NAME="AutoHint" HREF="hintsmenu.html#AutoHint">AutoHint</A>()
319 <DD>
320 <!-- Generates (PostScript) hints for selected glyphs automagically. -->
321 選択中のグリフに対してヒントを全自動で作成します。
322 <DT>
323 <A NAME="AutoInstr" HREF="hintsmenu.html#AutoInstr">AutoInstr</A>()
324 <DD>
325 <!-- Generates (TrueType) instructions for selected glyphs. It doesn't do a good
326 job. -->
327 選択中のグリフに対して (TrueType の) 命令を全自動で作成します。これはあまりうまく動きません。
328 <DT>
329 <A NAME="AutoKern" HREF="metricsmenu.html#Kern">AutoKern</A>(spacing,threshold[,kernfile])
330 <DD>
331 <!-- (AutoKern doesn't work well in general)<BR>
332 Guesses at kerning pairs by looking at all selected glyphs, or if a kernfile
333 is specified, FontForge will read the kern pairs out of the file. -->
334 (AutoKern は一般的にはあまりよく動作しません)<BR>
335 選択中のすべてのグリフを調べてカーニングペアを推測します。kernfile を指定した場合、FontForge はファイル kernfile からカーニングペアを読み込みます。
336 <DT>
337 <A NAME="AutoTrace" HREF="elementmenu.html#AutoTrace">AutoTrace</A>()
338 <DD>
339 <!-- If you have either potrace or autotrace installed, this will invoke them
340 on the selected glyphs to trace the background image and generate splines. -->
341 potrace か autotrace がインストールされていれば、個の関数を起動するとそれらのどちらかを呼び出し、選択中のグリフの背景画像をトレースして背景に追加します。
342 <DT>
343 <A NAME="AutoWidth" HREF="metricsmenu.html#Auto">AutoWidth</A>(spacing)
344 <DD>
345 <!-- Guesses at the widths of all selected glyphs so that two adjacent "I" glyphs
346 will appear to be spacing em-units apart. (if spacing is the negative of
347 the em-size (sum of ascent and descent) then a default value will be used). -->
348 選択中のすべてのグリフの幅を推測します。これにより、2 個の隣り合う“I”の字が spacing ユニットだけ離れて配置されます。 (spacing が em サイズ (アセント(“高さ”)とディセント(“深さ”)の和) の反数の場合、デフォルト値を使用します)
349 </DL>
350 </TD>
351 </TR>
352 <TR VALIGN=TOP>
353 <TD BGCOLOR=yellow><A NAME="B">B</A></TD>
354 <TD><DL>
355 <DT>
356 <A HREF="elementmenu.html#Bitmaps" NAME="BitmapsAvail">BitmapsAvail</A>(sizes)
357 <DD>
358 <!-- Controls what bitmap sizes are stored in the font's database. It is passed
359 an array of sizes. If a size is specified which is not in the font database
360 it will be generated. If a size is not specified which is in the font database
361 it will be removed. A size which is specified and present in the font database
362 will not be touched.<BR>
363 If you want to specify greymap fonts then the low-order 16 bits will be the
364 pixel size and the high order 16 bits will specify the bits/pixel. Thus 0x8000c
365 would be a 12 pixel font with 8 bits per pixel, while either 0xc or 0x1000c
366 could be used to refer to a 12 pixel bitmap font. -->
367 フォントデータベース内に格納されたビットマップフォントのサイズ一覧を制御します。値は各サイズからなる配列で指定します。サイズがフォントデータベース内に存在しない場合、ビットマップが生成されます。フォントデータベースに存在するサイズが指定されなかった場合、削除されます。指定されたサイズが既にフォントデータベース内に存在する場合、そのまま変更されません。<BR>
368 グレイマップフォントを指定したい場合、下位 16 ビットをピクセルサイズとして、上位 16 ビットをピクセルごとのビット数として扱います。例えば 0x8000c は、各ピクセル 8 ビットを持つ 12 ピクセルフォントとなります。ただし、12 ピクセルのビットマップフォントを指定するのには、0xc と 0x1000c のどちらの値でも用いることができます。
369 <DT>
370 <A NAME="BitmapsRegen" HREF="elementmenu.html#Regenerate">BitmapsRegen</A>(sizes)
371 <DD>
372 <!-- Allows you to update specific bitmaps in an already generated bitmap font.
373 It will regenerate the bitmaps of all selected glyphs at the specified
374 pixelsizes. -->
375 既に生成されているビットマップフォント内の特定のビットマップを更新することができます。選択中のすべてのグリフに対し、指定された各ピクセルサイズを再生成します。
376 <DT>
377 <A NAME="BuildAccented" HREF="elementmenu.html#Accented">BuildAccented</A>()
378 <DD>
379 <!-- If any of the selected glyphs are accented, then clear them and create a
380 new glyph by inserting references to the approriate base glyph and accents. -->
381 選択中のグリフのどれかがアクセントつきグリフの場合、その内容を消去してから、適切な基底も次とアクセントへの参照を挿入することによって新しいグリフを作成します。
382 <DT>
383 <A NAME="BuildComposite" HREF="elementmenu.html#Accented">BuildComposite</A>()
384 <DD>
385 <!-- Similar to BuildAccented but will build any composite glyph - - ligatures
386 and what not. -->
387 BuildAccented と同様ですが、任意の複合グリフ——合字やその他さまざまな——を作成します。
388 <DT>
389 <A NAME="BuildDuplicate" HREF="elementmenu.html#BuildDuplicate">BuildDuplicate</A>()
390 <DD>
391 <!-- Changes the encoding so that to encoding points share the same glyph. -->
392 エンコーディングを変更して、複数の符号位置が同じグリフを参照するようにします。
393 </DL>
394 </TD>
395 </TR>
396 <TR VALIGN=TOP>
397 <TD BGCOLOR=yellow><A NAME="C">C</A></TD>
398 <TD><DL>
399 <DT>
400 <A NAME="CanonicalContours">CanonicalContours</A>()
401 <DD>
402 <!-- Orders the contours in the currently selected glyph(s) by the x coordinate
403 of their leftmost point. (This can reduce the size of the charstring needed
404 to describe the glyph(s). -->
405 選択中のグリフの輪郭を、最も左の点の x 座標の順に並べ替えます。(これにより、グリフを表現するのに必要な charstrings のサイズが小さくなる可能性があります)
406 <DT>
407 <A NAME="CanonicalStart">CanonicalStart</A>()
408 <DD>
409 <!-- Sets the start point of all the contours of the currently selected glyph(s)
410 to be the leftmost point on the contour. (If there are several points with
411 that value then use the one which is closest to the baseline). This can reduce
412 the size of the charstring needed to describe the glyph(s). By regularizing
413 things it can also make more things available to be put in subroutines. -->
414 選択中のグリフのすべての輪郭の開始点を、輪郭の左端に位置する点に置き換えます (同じ値の複数の点がある場合、ベースラインに最も近いものを使用します)。これにより、グリフを表現するのに必要な charstrings のサイズが小さくなる可能性があります。正規化を行うことによって、サブルーチンに置くことができるデータが増える可能性があります。
415 <DT>
416 <A NAME="Ceil">C</A>eil(real)
417 <DD>
418 <!-- Converts a real number to the smallest integer larger than the real. It can
419 execute with no current font.<BR>
420 See Also <A HREF="#Int">Int</A>, <A HREF="#Round">Round</A>,
421 <A HREF="#Floor">Floor</A> -->
422 real を、それを下回らない最小の整数に変換します。カレントフォントがない状態でも実行できます。<BR>
423 <A HREF="#Int">Int</A>, <A HREF="#Round">Round</A>, <A HREF="#Floor">Floor</A> も参照してください。
424 <DT>
425 <A NAME="CenterInWidth" HREF="metricsmenu.html#Center">CenterInWidth</A>()
426 <DD>
427 <!-- Centers any selected glyphs so that their right and left side bearings are
428 equal. -->
429 選択中のすべての文字を幅の中央に揃え、左右のサイドベアリングが等しくなるようにします。
430 <DT>
431 <A NAME="ChangePrivateEntry" HREF="fontinfo.html#Private">ChangePrivateEntry</A>(key,val)
432 <DD>
433 <!-- Changes (or adds if the key is not already present) the value in the dictionary
434 indexed by key. (all values must be strings even if they represent numbers
435 in PostScript) -->
436 プライベート辞書内の key をキーにもつ項目の値を val に変更します
437 (key がまだ存在しない場合、追加されます)。(たとえ、値が PostScript
438 の数値を表す場合であっても、すべての値は文字列でなければなりません。)
439 <DT>
440 <A NAME="CharCnt">C</A>harCnt()
441 <DD>
442 <!-- Returns the number of encoding slots (or encoding slots + unencoded glyphs)
443 in the current font -->
444 カレントフォントに含まれるエンコーディングスロット (またはエンコーディングスロット + 符号化されていない文字) の個数を返します。
445 <DT>
446 <A NAME="CharInfo">C</A>harInfo(str)
447 <DD>
448 <!-- Deprecated name for <A HREF="#GlyphInfo">GlyphInfo</A> -->
449 <A HREF="#GlyphInfo">GlyphInfo</A> の廃止予定の名前です。
450 <DT>
451 <A NAME="CheckForAnchorClass">C</A>heckForAnchorClass(name)
452 <DD>
453 <!-- Returns 1 if the current font contains an Anchor class with the given name
454 (which must be in utf8). -->
455 カレントフォントが name で指定した名前 (UTF-8 でなければなりません) と同名のアンカークラスを含む場合、1 を返します。
456 <DT>
457 <A NAME="Chr">C</A>hr(int)<BR>
458 Chr(array)
459 <DD>
460 <!-- Takes an integer [0,255] and returns a single character string containing
461 that code point. Internally FontForge interprets strings as if they were
462 in utf8 (well really, FontForge almost always just uses ASCII-US internally).
463 If passed an array, it should be an array of integers and the result is the
464 string. It can execute with no current font. -->
465 [0,255] の範囲にある整数を取り、そのコードポイントを含む 1 文字を返します。内部的には FontForge は文字列を UTF-8 で書かれているものとして (本当を言えば、FontForge は内部ではほとんどの場合単純に ASCII-US を使います) 解釈します。配列を渡す場合、それは整数からなる配列でなければならず、結果は文字列として返されます。カレントフォントがない状態でも実行できます。
466 <DT>
467 <A NAME="CIDChangeSubFont">C</A>IDChangeSubFont(new-sub-font-name)
468 <DD>
469 <!-- If the current font is a cid keyed font, this command changes the active
470 sub-font to be the one specified (the string should be the postscript FontName
471 of the subfont) -->
472 カレントフォントが CID フォントである場合、このコマンドはアクティブなサブフォントを指定した物に変更します (引数は、サブフォントの PostScript フォント名を表す文字列です)。
473 <DT>
474 <A NAME="CIDFlatten" HREF="cidmenu.html#Flatten">CIDFlatten</A>()
475 <DD>
476 <!-- Flattens a cid-keyed font. -->
477 CID フォントを単一化 (すべてのサブフォントを 1 個に統合) します
478 <DT>
479 <A NAME="CIDFlattenByCMap" HREF="cidmenu.html#FlattenCMap">CIDFlattenByCMap</A>(cmap-filename)
480 <DD>
481 <!-- Flattens a cid-keyed font, producing a font encoded with the result of the
482 CMAP file. -->
483 CID フォントを単一化し、指定した CMap ファイルによってエンコードした結果を返します。
484 <DT>
485 <A NAME="CIDSetFontNames" HREF="cidmenu.html#FontInfo">CIDSetFontNames</A>(fontname[,family[,fullname[,weight[,copyright-notice]]]])
486 <DD>
487 <!-- Sets various postscript names associated with the top level cid font. If
488 a name is omitted (or is the empty string) it will not be changed. (this
489 is just like SetFontNames except it works on the top level cid font rather
490 than the current font). -->
491 CID フォント本体に付随する各種の PostScript 名を設定します。
492 名前が欠けている場合 (または空文字列の場合) 変更されません。
493 (これは SetFontName と同じ働きをしますが、カレントフォントではなく、
494 それを含むトップレベルの CID フォントに作用することが異なります)。
495 <DT>
496 <A NAME="Clear" HREF="editmenu.html#Clear">Clear</A>
497 <DD>
498 <!-- Clears out all selected glyphs -->
499 選択中のすべてのグリフを消去します。
500 <DT>
501 <A NAME="ClearBackground" HREF="editmenu.html#Background">ClearBackground</A>
502 <DD>
503 <!-- Clears the background of all selected glyphs -->
504 選択中のすべてのグリフの背面を消去します。
505 <DT>
506 <A NAME="ClearCharCounterMasks">C</A>learCharCounterMasks()
507 <DD>
508 <!-- Deprecated name for
509 <A HREF="#ClearGlyphCounterMasks">ClearGlyphCounterMasks</A> -->
510 <A HREF="#ClearGlyphCounterMasks">ClearGlyphCounterMasks</A> の廃止予定の名前です。
511 <DT>
512 <A NAME="ClearGlyphCounterMasks">C</A>learGlyphCounterMasks()
513 <DD>
514 <!-- Clears any counter masks from the (one) selected glyph. -->
515 選択中の (1 個の) グリフから、すべてのカウンターマスクを取り除きます。
516 <DT>
517 <A NAME="ClearHints" HREF="hintsmenu.html#ClearHints">ClearHints</A>()
518 <DD>
519 <!-- Clears any (PostScript) hints from the selected instructions. -->
520 選択中のグリフからすべてのヒントを取り除きます。
521 <DT>
522 <A NAME="ClearInstrs">C</A>learInstrs()
523 <DD>
524 <!-- Clears any (TrueType) instructions from selected glyphs -->
525 選択中のグリフからすべての (TrueType) 命令を削除します。
526 <DT>
527 <A NAME="ClearPrivateEntry" HREF="fontinfo.html#Private">ClearPrivateEntry</A>(key)
528 <DD>
529 <!-- Removes the entry indexed by the given key from the private dictionary of
530 the font. -->
531 フォントのプライベート辞書から、key をキーにもつ項目を削除します。
532 <DT>
533 <A NAME="ClearTable">C</A>learTable(tag)
534 <DD>
535 <!-- Removes the table named tag. This may be 'fpgm', 'prep', 'cvt ', 'maxp' or
536 any user defined tables. It returns 1 if it found (and removed) the table,
537 0 if the table was not present. -->
538 tag で指定した名前をもつテーブルを削除します。テーブル名として指定できるのは、&lsquo;fpgm&rsquo;,&lsquo;prep&rsquo;,&lsquo;cvt &rsquo;,&lsquo;maxp&rsquo;またはユーザ定義のテーブルの名前です。テーブルが見つかった (そして削除された) ときには 1 を返し、テーブルが存在しない場合には 0 を返します。
539 <DT>
540 <A NAME="Close">C</A>lose()
541 <DD>
542 <!-- This frees up any memory taken up by the current font and drops it off the
543 list of loaded fonts. After this executes there will be no current font. -->
544 カレントフォントが占有しているメモリを全て解放し、読み込み済みのフォントのリストからカレントフォントを除外します。これを実行した後、カレントフォントは存在しない状態となります。
545 <DT>
546 <A NAME="CompareFonts">C</A>ompareFonts(other-font-filename,output-filename,flags)
547 <DD>
548 <!-- This will compare the current font with the font in
549 <CODE>other-font-filename</CODE> (which must already have been opened). It
550 will write the results to the <CODE>output-filename</CODE>, you may use "-"
551 to send the output to stdout. The <CODE>flags</CODE> argument controls what
552 will be compared. -->
553 この関数は、カレントフォントを <CODE>other-font-filename</CODE> で指定したフォント (あらかじめ開いておく必要があります) と比較します。結果はファイル <CODE>output-filename</CODE> に出力されます (出力を標準出力に送りたい場合は "-" が使用できます。<CODE>flags</CODE> 引数は、何を比較するかを制御します。
554 <TABLE BORDER CELLPADDING="2">
555 <CAPTION>
556 <!-- <SMALL>flags</SMALL> -->
557 <SMALL>フラグ</SMALL>
558 </CAPTION>
559 <TR>
560 <TD>1</TD>
561 <!-- <TD>compare outlines</TD> -->
562 <TD>アウトラインを比較する</TD>
563 </TR>
564 <TR>
565 <TD>2</TD>
566 <!-- <TD>compare outlines exactly (otherwise allow slight errors and the unlinking
567 of references)</TD> -->
568 <TD>アウトラインを正確に比較する (指定しない場合、微小なエラーの存在および参照のリンク解除を許容します)</TD>
569 </TR>
570 <TR>
571 <TD>4</TD>
572 <!-- <TD>warn if the outlines don't exactly match (but are pretty close)</TD> -->
573 <TD>アウトラインが正確に一致しない (が、非常に近い) 場合に警告する</TD>
574 </TR>
575 <TR>
576 <TD>8</TD>
577 <!-- <TD>compare hints</TD> -->
578 <TD>ヒントを比較する</TD>
579 </TR>
580 <TR>
581 <TD>0x10</TD>
582 <!-- <TD>compare hintmasks</TD> -->
583 <TD>ヒントマスクを比較する</TD>
584 </TR>
585 <TR>
586 <TD>0x20</TD>
587 <!-- <TD>compare hintmasks only if the glyph has hint conflicts</TD> -->
588 <TD>グリフ内のヒントが衝突している場合に限り、ヒントマスクを作成する</TD>
589 </TR>
590 <TR>
591 <TD>0x40</TD>
592 <!-- <TD>warn if references need to be unlinked before a match is found</TD> -->
593 <TD>一致を発見するために参照のリンク解除を行う必要がある場合に警告する</TD>
594 </TR>
595 <TR>
596 <TD>0x80</TD>
597 <!-- <TD>compare bitmap strikes</TD> -->
598 <TD>ビットマップの各ストライクを比較する</TD>
599 </TR>
600 <TR>
601 <TD>0x100</TD>
602 <!-- <TD>compare font names</TD> -->
603 <TD>フォント名を比較する</TD>
604 </TR>
605 <TR>
606 <TD>0x200</TD>
607 <!-- <TD>compare glyph positioning</TD> -->
608 <TD>グリフの位置指定を比較する</TD>
609 </TR>
610 <TR>
611 <TD>0x400</TD>
612 <!-- <TD>compare glyph substitutions</TD> -->
613 <TD>グリフ置換を比較する</TD>
614 </TR>
615 <TR>
616 <TD>0x800</TD>
617 <!-- <TD>for any glyphs whose outlines differ, add the outlines of the glyph in
618 the second font to the background of the glyph in the first</TD> -->
619 <TD>アウトラインが異なるすべてのグリフに対し、比較先のフォントのアウトラインを比較元のフォントの背景に追加する</TD>
620 </TR>
621 <TR>
622 <TD>0x1000</TD>
623 <!-- <TD>if a glyph exists in the second font but not the first, create that glyph
624 in the first and add the outlines from the second into the backgroun layer</TD> -->
625 <TD>あるグリフが比較先のフォントのみに存在し比較元のフォントには存在しない場合、そのグリフを比較元のフォントに作成して、その背景に比較先のグリフのアウトラインを追加する</TD>
626 </TR>
627 </TABLE>
628 <DT>
629 <A NAME="CompareGlyphs">C</A>ompareGlyphs([pt_err[,spline_err[,pixel_off_frac[,bb_err[,compare_hints[,report_diffs_as_errors]]]]]])
630 <DD>
631 <!-- This function compares two versions of one or several glyphs. It looks at
632 any selected glyphs in the font and compares them to an equivalent glyph
633 in the clipboard (there must be the same number of selected glyphs as glyphs
634 in the clipboard). -->
635 この関数は 1 個ないし数個のグリフの 2 つのバージョンを比較します。フォント内の選択された各グリフに着目し、それをクリップボード内の等価なグリフと比較します (クリップボード内のグリフと選択中のグリフとの個数が一致する必要があります)。
636 <UL>
637 <LI>
638 <!-- It checks to make sure the advance width of each glyph pair is similar -->
639 それぞれのグリフの対の送り幅がが近似的に等しいかどうかをチェックします。
640 <LI>
641 <!-- It checks to make sure that each contains the same set of references -->
642 それぞれに含まれる参照の集合が同一かどうかをチェックします。
643 <LI>
644 <!-- It checks to make sure that all points (both base and control) are within
645 pt_err of each other -->
646 すべての点が (端点と制御点ともに) 互いに pt_err 以内の誤差に収まっているかどうかをチェックします。
647 <LI>
648 <!-- If that fails then it performs a slower check to see if points lying along
649 the contours have equivalent points in the other glyph (that is: If you have
650 simplified a glyph and are comparing it to the original, this check should
651 pass it while the previous check would fail). -->
652 これらのチェックが失敗した場合、輪郭に沿って置かれている点に等価な点が、他のグリフ内に存在するかどうかをより時間をかけてチェックします (すなわち、単純化を施したグリフをそのオリジナルと比較した時に、最初のチェックは失敗するはずですが 2 回目のチェックは通るはずです)。
653 <LI>
654 <!-- Optionally you may check that the bitmaps match. -->
655 また、オプションを指定することにより、ビットマップが一致するかどうかをチェックすることもできます。
656 <!-- Optionally you may check if hints (and hitmasks) match. -->
657 また、オプションを指定することにより、ヒント (およびヒントマスク) が一致するかどうかをチェックすることもできます。
658 </UL>
659 <P>
660 <!-- The first argument controls the accuracy with which points must match. A
661 value of 0 is an exact match and will also check hints. If you provide a
662 negative value then this test will be skipped. -->
663 最初の引数では、点が一致しなければならない精度を調節します。値が 0 の場合は点は正確に一致しなければならず、同時にヒントのチェックも行います。負の値を指定した場合には、このテストはスキップされます。
664 <P>
665 <!-- The second argument controls the accuracy with which the contour check must
666 match. A value of 0 will not work due to rounding errors in the process.
667 A negative value will skip the test. -->
668 2 番目の引数では、輪郭チェックが一致しなければならない精度を調節します。処理中に丸め誤差が発生するため、値 0 を指定するとこれはうまく動作しないでしょう。負の値を指定した場合には、このテストはスキップされます。
669 <P>
670 <!-- The third argument controls bitmap tests. A negative value (the default)
671 will mean no bitmap tests are done. A value of 0 requires an exact match
672 of the bitmap. A value between 0 and 1 specifies the fraction of the pixel
673 range that will be accepted for a match (so in a greymap with a depth of
674 8 the pixel range in 256, and a fraction value of .25 would mean any pixel
675 value within 64 (.25*256) would match). -->
676 3 番目の引数ではビットマップテストを調節します。負の値 (デフォルト) は、ビットマップテストを行わないことを意味します。値 が 0 の場合、ビットマップは正確に一致する必要があります。0 と 1 の間の値は、不一致が許容されるピクセル値の範囲を指定します (例えば、深さ 8 のグレイマップではピクセル値は 256 諧調なので、小数の値 0.25 を指定した場合には、64 (0.25*256) 以内のピクセル値の違いは一致するものと見なされます)。
677 <P>
678 <!-- The fourth argument controls how different the bounding boxes of anti-aliased
679 bitmaps can be (the bounding boxes of bitmaps with depth 1 must match exactly) -->
680 4 番目の引数では、アンチエイリアス処理されたビットマップのバウンディングボックスがどれだけ違っていてよいかを調節します (深さ 1 のビットマップのバウンディングボックスは正確に一致しなければなりません)。
681 <P>
682 <!-- The fifth argument controls whether to tests hints and hintmasks. A value
683 of 1 tests hints, 2 tests hintmasks and 3 tests both, a value of 7 will test
684 hintmasks only in glyphs with conflicts. -->
685 5 番目の引数では、ヒントとヒントマスクのテストを行うかを調節します。値 1 を指定するとヒントを、2 を指定するとヒントマスクを、3 を指定すると両方をテストします。7 を指定した場合はグリフのヒントマスクが衝突している場合に限り、ヒントマスクを比較します。
686 <P>
687 <!-- Normally this function treats any differences it finds as errors and stops
688 the script. If you set the sixh argument to 0 then it will return a value
689 which ors the following flags together (some flags indicate errors, others
690 unusual conditions, others success - - the function will never return both
691 an error and success flag, but it can return several success flags at once
692 if you are comparing more than one glyph) -->
693 通常はこの関数はどのような相異点もエラーとして扱い、スクリプトを停止させます。もし、6 番目の引数として 0 を指定した場合、以下に示すフラグの論理和を取った値を返します (フラグのうち一部はエラーを表し、いくつかは異状を表し、その他は成功を表します——この関数はエラーと成功フラグの両方を同時に返すことは決してありませんが、複数のグリフを一度に比較したときには複数の成功フラグを返す可能性があります)。
694 <TABLE BORDER CELLPADDING="2">
695 <TR>
696 <TD>1</TD>
697 <!-- <TD>Different numbers of contours in a glyph</TD> -->
698 <TD>グリフ内の輪郭の個数が異なる</TD>
699 </TR>
700 <TR>
701 <TD>2</TD>
702 <!-- <TD>A contour in one glyph is open when the corresponding contour is closed</TD> -->
703 <TD>片方のグリフに含まれる輪郭の一つが開いているが、対応する輪郭は閉じている</TD>
704 </TR>
705 <TR>
706 <TD>4</TD>
707 <!-- <TD>Disordered contours (contours are in different orders in the two glyphs)</TD> -->
708 <TD>輪郭の次数不一致 (2 個のグリフの輪郭の次数が異なる)</TD>
709 </TR>
710 <TR>
711 <TD>8</TD>
712 <!-- <TD>Disordered start (the start point is at a different place in the two
713 glyphs)</TD> -->
714 <TD>開始点の不一致 (2 個のグリフで、開始点の置かれている位置が異なる)</TD>
715 </TR>
716 <TR>
717 <TD>16</TD>
718 <!-- <TD>Disordered direction (the contour is clockwise in one and counter in
719 the other)</TD> -->
720 <TD>方向の不一致 (片方の輪郭が時計回りでもう片方が反時計回り)</TD>
721 </TR>
722 <TR>
723 <TD>32</TD>
724 <!-- <TD>Glyphs match by checking points</TD> -->
725 <TD>点のチェックによりグリフが一致した</TD>
726 </TR>
727 <TR>
728 <TD>64</TD>
729 <!-- <TD>Glyphs match by checking the contours</TD> -->
730 <TD>輪郭のチェックによりグリフが一致した</TD>
731 </TR>
732 <TR>
733 <TD>128</TD>
734 <!-- <TD>Outline glyphs do not match</TD> -->
735 <TD>グリフのアウトラインが一致しない</TD>
736 </TR>
737 <TR>
738 <TD>256</TD>
739 <!-- <TD>Different references in the two glyphs (or different transformation matrices)</TD> -->
740 <TD>2 つのグリフに含まれる参照が異なる (または変換行列が異なる)</TD>
741 </TR>
742 <TR>
743 <TD>512</TD>
744 <!-- <TD>Different advance widths in the two glyphs</TD> -->
745 <TD>2 つのグリフの送り幅が異なる</TD>
746 </TR>
747 <TR>
748 <TD>1024</TD>
749 <!-- <TD>Different vertical advance widths in the two glyphs</TD> -->
750 <TD>2 つのグリフの縦書き時の送り幅が異なる</TD>
751 </TR>
752 <TR>
753 <TD>2048</TD>
754 <!-- <TD>Different hints in the two glyphs</TD> -->
755 <TD>2 つのグリフのヒントが異なる</TD>
756 </TR>
757 <TR>
758 <TD>4096</TD>
759 <!-- <TD>Different hintmasks in the two glyphs</TD> -->
760 <TD>2 つのグリフのヒントマスクが異なる</TD>
761 </TR>
762 <TR>
763 <TD>8192</TD>
764 <!-- <TD>Different numbers of layers in the two glyphs</TD> -->
765 <TD>2 つのグリフのレイヤの個数が異なる</TD>
766 </TR>
767 <TR>
768 <TD>16384</TD>
769 <!-- <TD>Contours do not match in the two glyphs</TD> -->
770 <TD>2 つのグリフ間で輪郭が一致しない</TD>
771 </TR>
772 <TR>
773 <TD>32768</TD>
774 <!-- <TD>We only find a match after we have unlinked references</TD> -->
775 <TD>参照のリンクを解除しないと一致が発見できない</TD>
776 </TR>
777 <TR>
778 <TD>65536</TD>
779 <!-- <TD>Bitmap glyphs have different depths</TD> -->
780 <TD>ビットマップグリフの色深度が異なる</TD>
781 </TR>
782 <TR>
783 <TD>2*65536</TD>
784 <!-- <TD>Bitmap glyphs have different bounding boxes</TD> -->
785 <TD>ビットマップグリフのバウンディングボックスが異なる</TD>
786 </TR>
787 <TR>
788 <TD>4*65536</TD>
789 <!-- <TD>Bitmaps are different</TD> -->
790 <TD>ビットマップに違いがある</TD>
791 </TR>
792 <TR>
793 <TD>8*65536</TD>
794 <!-- <TD>Bitmap glyphs do not match (set with all the above)</TD> -->
795 <TD>ビットマップグリフが一致しない (上記のどの場合にもセットされます)</TD>
796 </TR>
797 <TR>
798 <TD>16*65536</TD>
799 <!-- <TD>Bitmap glyphs match</TD> -->
800 <TD>ビットマップグリフが一致した</TD>
801 </TR>
802 </TABLE>
803 <DT>
804 <A NAME="ControlAfmLigatureOutput">C</A>ontrolAfmLigatureOutput(script,lang,ligature-tag-list)
805 <DD>
806 <!-- All three arguments must be strings. The first two must be strings containing
807 four or fewer characters, the third a string containing a comma separated
808 list of 4 (or fewer) character strings. Ligatures will be placed in an AFM
809 (tfm/ofm) file only if -->
810 3 つの引数は全て文字列でなければなりません。最初の 2 個はそれぞれ最大 4 文字を含む文字列、3 個目はカンマで区切られた 4 個以内の文字からなるリストでなければなりません。以下の条件を満たす場合のみ、AFM (TFM/OFM) ファイル内に合字が作成されます。
811 <UL>
812 <LI>
813 <!-- their tags match one of the entries in the list -->
814 それらのタグがリスト内のどれか 1 項目に一致すること
815 <LI>
816 <!-- they are active in the given script with the given language ("*" acts as
817 a wildcard for both script and language). -->
818 指定された用字系の指定された言語においてそれらがアクティブであること (用字系・言語のどちらにおいても "*" はワイルドカードとして解釈されます)
819 </UL>
820 <P>
821 <!-- The default setting is: -->
822 標準の設定は以下の通りです:
823 <BLOCKQUOTE>
824 <PRE>ControlAfmLigatureOutput("*","dflt","liga,rlig")
825 </PRE>
826 </BLOCKQUOTE>
827 <DT>
828 <A NAME="ConvertByCMap" HREF="cidmenu.html#ConvertCMap">ConvertByCMap</A>(cmapfilename)
829 <DD>
830 <!-- Converts current font to a CID-keyed font using specified CMap file. cmapfilename
831 must be a path name of a file conforming Adobe CMap File Format. -->
832 カレントフォントを指定された CMap ファイルを用いて CID フォントに変換します。cmapfilename は、Adobe CMap File Format に適合するファイルのパス名でなければなりません。
833 <DT>
834 <A NAME="ConvertToCID" HREF="cidmenu.html#Convert">ConvertToCID</A>(registry,
835 ordering, supplement)
836 <DD>
837 <!-- Converts current font to a CID-keyed font using given registry, ordering
838 and supplement. registry and ordering must be strings, supplement must be
839 a integer. -->
840 引数 registry, ordering および supplement で指定するグリフ集合を用いて
841 カレントフォントを CID フォントに変換します。
842 registry と ordering は文字列で、supplement は整数でなければなりません。
843 <DT>
844 <A NAME="Copy" HREF="editmenu.html#Copy">Copy</A>
845 <DD>
846 <!-- Makes a copy of all selected glyphs. -->
847 選択中のすべてのグリフのコピーを作成します。
848 <DT>
849 <A NAME="CopyFgToBd" HREF="editmenu.html#CopyFg">CopyFgToBd</A>
850 <DD>
851 <!-- Copies all foreground splines into the background in all selected glyphs -->
852 選択中のすべてのグリフに対し、前面のスプラインを背面にコピーします。
853 <DT>
854 <A NAME="CopyGlyphFeatures">C</A>opyGlyphFeatures(arg,...)
855 <DD>
856 <!-- This copies features from the currently selected glyph (only one) and stores
857 them in the clipboard. -->
858 この手続きは現在選択中の文字 (1 文字だけ) の機能をコピーし、クリップボードに格納します。
859 <P>
860 <!-- arg may be either a string in which case it should be either a four character
861 opentype tag (like "kern") or a mac feature setting (like "&lt;1,1&gt;").
862 Or it may be an integer in which case it must be the integer representation
863 of one of the above. Or arg may be an array of strings and integers (in this
864 case there may be only one argument). -->
865 arg には文字列か整数値を使用することができ、文字列の場合は 4 文字の OpenType タグ ("kern" など) または Mac の機能設定 ("&lt;1,1&gt;" など) のどちらかを使用することができます。整数の場合、上のいずれかの整数表現でなければなりません。または、arg には文字列か整数からなる配列を指定することもできます。 (この場合、引数はちょうど 1 個でなければなりません)
866 <P>
867 <!-- The feature 'kern' will match any kerning pair that has the currently selected
868 glyph as the first character of the two. The (made up) feature '_krn' will
869 match any kerning pair that has the currently selected glyph as the last
870 character of the two. Similary for 'vkrn' and '_vkn'. -->
871 機能&lsquo;kern&rsquo;は現在選択中のグリフを 2 文字のうち最初の文字として含む全てのカーニングペアにマッチします。(架空の) 機能&lsquo;_krn&rsquo;は、現在選択中の文字を 2 文字のうち最後の文字として含む全てのカーニングペアにマッチします。&lsquo;vkrn&rsquo;と&lsquo;_vkn&rsquo;も同様です。
872 <DT>
873 <A NAME="CopyLBearing" HREF="editmenu.html#LBearing">CopyLBearing</A>
874 <DD>
875 <!-- Stores the left side bearing of all selected glyphs in the clipboard-->
876 選択中のすべてのグリフの左サイドベアリングをクリップボードに格納します。
877 <DT>
878 <A NAME="CopyRBearing" HREF="editmenu.html#RBearing">CopyRBearing</A>
879 <DD>
880 <!-- Stores the right side bearing of all selected glyphs in the clipboard -->
881 選択中のすべてのグリフの右サイドベアリングをクリップボードに格納します。
882 <DT>
883 <A NAME="CopyReference" HREF="editmenu.html#Reference">CopyReference</A>
884 <DD>
885 <!-- Makes references to all selected glyphs and stores them in the clipboard. -->
886 選択中のすべてのグリフへの参照を作成し、それらをクリップボードに格納します。
887 <DT>
888 <A NAME="CopyVWidth" HREF="editmenu.html#VWidth">CopyVWidth</A>
889 <DD>
890 <!-- Stores the vertical widths of all selected glyphs in the clipboard -->
891 選択中のすべてのグリフの縦方向の送り幅をクリップボードに格納します。
892 <DT>
893 <A NAME="CopyWidth" HREF="editmenu.html#Width">CopyWidth</A>
894 <DD>
895 <!-- Stores the widths of all selected glyphs in the clipboard -->
896 選択中のすべてのグリフの幅をクリップボードに格納します。
897 <DT>
898 <A NAME="CorrectDirection" HREF="elementmenu.html#Correct">CorrectDirection</A>([unlinkrefs])
899 <DD>
900 <!-- If the an argument is present it must be integral and is treated as a flag
901 controlling whether flipped references should be unlinked before the
902 CorrectDirection code runs. If the argument is not present, or if it has
903 a non-zero value then flipped references will be unlinked. -->
904 引数がある場合、1 個の整数でなくてはなりません。
905 その値は、CorrectDirection のコードを実行する前に裏返しの参照をリンク解除するかどうかを制御するフラグとして扱われます。
906 引数が存在しないか、非ゼロの値が指定された時、裏返しの参照はリンク解除されます。
907 <DT>
908 <A NAME="Cos">C</A>os(val)
909 <DD>
910 <!-- Returns the cosine of val-->
911 val の余弦を返します。
912 <DT>
913 <A NAME="Cut" HREF="editmenu.html#Cut">Cut</A>
914 <DD>
915 <!-- Makes a copy of all selected glyphs and saves it in the clipboard, then clears
916 out the selected glyphs -->
917 選択中の全てのグリフのコピーを作成し、クリップボードに保存してから選択していたグリフを削除します。
918 </DL>
919 </TD>
920 </TR>
921 <TR VALIGN=TOP>
922 <TD BGCOLOR=yellow><A NAME="D">D</A></TD>
923 <TD><DL>
924 <DT>
925 <A NAME="DefaultATT" HREF="elementmenu.html#DefaultATT">DefaultATT</A>(tag)
926 <DD>
927 <!-- For all selected glyphs make a guess as to what might be an appropriate value
928 for the given tag. If the tag is "*" then FontForge will apply guesses for
929 all features it can. -->
930 選択中のすべてのグリフについて、与えられたタグに対して適切だと思われる値を推測します。
931 タグが "*" である場合、FontForge は可能なすべての機能に対して推測を行います。
932 <DT>
933 <A NAME="DefaultOtherSubrs">D</A>efaultOtherSubrs()
934 <DD>
935 <!-- Returns to using Adobe's versions of the OtherSubrs subroutines. -->
936 Adobe 版の OtherSubrs サブルーチンを使うように設定を戻します。
937 <DT>
938 <A NAME="DefaultRoundToGrid">D</A>efaultRoundToGrid()
939 <DD>
940 <!-- Looks at all selected glyphs, if any reference is not positioned by point
941 matching, then FontForge will set the truetype "ROUND-TO-GRID" flag for the
942 reference. -->
943 選択中のすべてのグリフを調べます。どの参照も点の照合によって位置指定されていない場合、FontForge はその参照に対し、 TrueType の“ROUND-TO-GRID”フラグをセットします。
944 <DT>
945 Default<A NAME="Use-My-Metrics">UseMyM</A>etrics()
946 <DD>
947 <!-- Looks at all selected glyphs. If any glyph contains references, does not
948 have the "USE-MY-METRICS" bit set on any of those references, and if one
949 of those references has the same width as the current glyph, and has an identity
950 transformation matrix, then set the bit on that reference. -->
951 選択中のすべてのグリフを調べます。参照を含むグリフが存在し、その参照のどれもが“USE-MY-METRICS”ビットを含んでいない場合、もしもそれらの参照のうちのどれかが現在のグリフと幅が同じで、その文字の変換行列が恒等変換行列である場合、その参照にビットをセットします。
952 <DT>
953 <A NAME="DetachAndRemoveGlyph" HREF="encodingmenu.html#RemoveGlyphs">DetachAndRemoveGlyphs</A>()
954 <DD>
955 <!-- Any selected encoding slots will have their glyph pointer nulled out. In
956 addition, if this glyph is now unencoded it will remove the glyph from the
957 font. -->
958 選択中のすべてのエンコーディングスロットのグリフポインタを空にします。さらに、そのグリフが符号化されていない状態になったならばフォントからそのグリフを取り除きます。
959 <DT>
960 <A HREF="encodingmenu.html#Detach" NAME="DetachGlyphs">DetachGlyphs</A>()
961 <DD>
962 <!-- Any selected encoding slots will have their glyph pointer nulled out. This
963 does not remove the glyph from the font, it just makes it unreachable through
964 this encoding slot. -->
965 選択中のすべてのエンコーディングスロットのグリフポインタを空にします。この関数はフォントからグリフを取り除きません。指定したエンコーディングスロットからアクセスできなくするだけです。
966 <DT>
967 <A NAME="DontAutoHint" HREF="hintsmenu.html#DontAutoHint">DontAutoHint</A>()
968 <DD>
969 <!-- Mark any selected glyphs so that they will not be AutoHinted when saving
970 the font. (This flag is cleared if the user explicitely AutoHints the glyph
971 himself). -->
972 選択中のすべての文字にフォント保存時に自動ヒントづけしないように印づけを行います。(このフラグは、ユーザが自分でグリフに対して AutoHints を呼び出した時に削除されます)
973 <DT>
974 <A NAME="DrawsSomething">D</A>rawsSomething([arg])
975 <DD>
976 <!-- Arg is as in <A HREF="#InFont">InFont</A>. This returns true if the glyph
977 contains any splines, references or images. -->
978 引数 arg の意味は <A HREF="#InFont">InFont</A> と同様です。この関数は、グリフにアウトライン、参照または画像が含まれているときに真を返します。
979 </DL>
980 </TD>
981 </TR>
982 <TR VALIGN=TOP>
983 <TD BGCOLOR=yellow><A NAME="E">E</A></TD>
984 <TD><DL>
985 <DT>
986 <A NAME="Error">E</A>rror(str)
987 <DD>
988 <!-- Prints out str as an error message and aborts the current script. It can
989 execute with no current font. -->
990 str をエラーメッセージとして出力し、現在のスクリプトを中断します。カレントフォントがない状態でも実行できます。
991 <DT>
992 <A NAME="Exp">E</A>xp(val)
993 <DD>
994 Returns e<SUP>val</SUP>. It can execute with no current font.
995 e の val 乗を返します。カレントフォントがない状態でも実行できます。
996 <DT>
997 <A NAME="ExpandStroke" HREF="elementmenu.html#Expand">ExpandStroke</A>(width)<BR>
998 ExpandStroke(width,line cap, line join)<BR>
999 ExpandStroke(width,line cap, line join,0,removeinternal /external flag)<BR>
1000 ExpandStroke(width,calligraphic-angle,height-numerator,height-denom)<BR>
1001 ExpandStroke(width,calligraphic-angle,height-numerator,height-denom, 0, remove
1002 internal/external flag)
1003 <DD>
1004 <!-- In the first format a line cap of "butt" and line join of "round" are
1005 implied.<BR> -->
1006 最初のフォーマットでは、線端は "butt", 線の結びは "round" と見なされます。<BR>
1007 <!-- A value of 1 for remove internal/external will remove the internal contour,
1008 a value of 2 will remove the external contour.<BR> -->
1009 “remove internal/external”フラグの値が 1 であれば内側の輪郭を除去し、2 であれば外側の輪郭を除去します。
1010 <!-- The first three calls simulate the PostScript "stroke" command, the two final
1011 simulate a caligraphic pen. -->
1012 最初の 3 つの呼び出しは PostScript の“stroke”コマンドをシミュレートし、後ろ 2 つはカリグラフィ的なペンをシミュレートします。
1013 <DL>
1014 <DT>
1015 Width
1016 <DD>
1017 <!-- In the PostScript "stroke" command the width is the distance between the
1018 two generated curves. To be more precise, at ever point on the original curve,
1019 a point will be added to each of the new curves at width/2 units as measured
1020 on a vector normal to the direction of the original curve at that point.<BR>
1021 In a caligraphic pen, the width is the width of the pen used to draw the
1022 curve. -->
1023 PostScript の“stroke”コマンドでは、width は作成される 2 本の線の間の距離です。より正確に言うと、オリジナルの曲線のすべての点に対して、その点における曲線の向きに垂直なベクトルに沿って width/2 ユニットだけ離れた点が追加されます。カリグラフィ的なペンでは、width は、曲線を描くのに使われるペンの太さです。
1024 <DT>
1025 Line-cap
1026 <DD>
1027 <!-- Can have one of three values: 0=&gt; butt, 1=&gt;round, 2=&gt;square -->
1028 以下の 3 つのうちいずれかの値です: 0 ⇒ butt, 1 ⇒ round, 2 ⇒ square
1029 <DT>
1030 Line-join
1031 <DD>
1032 <!-- Can have one of three values: 0=&gt;miter, 1=&gt;round, 2=&gt;bevel -->
1033 以下の 3 つのうちいずれかの値です: 0 ⇒ miter, 1 ⇒ round, 2 ⇒ bevel
1034 <DT>
1035 caligraphic-angle
1036 <DD>
1037 <!-- the (fixed) angle at which the pen is held. -->
1038 ペンを保持する (固定の) 角度です。
1039 <DT>
1040 height-numerator/denominator
1041 <DD>
1042 <!-- These two values specify a ratio between the height and the width<BR>
1043 height = numerator * width / denominator<BR>
1044 (the scripting language only deals in integers, so when fractions are needed
1045 this kludge is used) -->
1046 これらの 2 つの値は高さと幅のあいだの比率を指定します。<BR>
1047 高さ = numerator * width / denominator<BR>
1048 (スクリプト言語で扱えるのは整数のみなので、分数が必要なときにはこのような彌縫策を使っています)
1049 <DT>
1050 <!-- remove internal/external contour flags -->
1051 remove internal/external contour フラグ
1052 <DD>
1053 <!-- 1 =&gt; remove internal contour<BR>
1054 2=&gt; remove external contour<BR>
1055 (you may not remove both contours)<BR>
1056 4 =&gt; run remove overlap on result (buggy) -->
1057 1 ⇒ 内側の輪郭を削除する<BR>
1058 2 ⇒ 外側の輪郭を削除する<BR>
1059 (両方の輪郭を削除することができます)<BR>
1060 4 ⇒ 結果に重複除去を施す (不安定)
1061 </DL>
1062 <DT>
1063 <A NAME="Export" HREF="filemenu.html#Export">Export</A>(format[,bitmap-size])
1064 <DD>
1065 <!-- For each selected glyph in the current font, this command will export that
1066 glyph into a file in the current directory. Format must be a string and must
1067 be with one of -->
1068 このコマンドは、カレントフォント内の選択中の各グリフに対し、カレントディレクトリ内のファイルへそのグリフを書き出します。
1069 format は文字列で、以下のどれかでなければなりません。
1070 <UL>
1071 <LI>
1072 <!-- eps - - the selected glyphs will have their splines output into eps files.
1073 The files will be named "&lt;glyph-name&gt;_&lt;font-name&gt;.eps". -->
1074 eps — 選択中のグリフのアウトラインを EPS ファイルに書き出します。ファイル名は“&lt;グリフ名&gt;_&lt;フォント名&gt;.eps”となります。
1075 <LI>
1076 <!-- pdf - - the selected glyphss will have their splines output into pdf files.
1077 The files will be named "&lt;glyph-name&gt;_&lt;font-name&gt;.pdf". -->
1078 pdf — 選択中のグリフのアウトラインを PDF ファイルに書き出します。ファイル名は“&lt;グリフ名&gt;_&lt;フォント名&gt;.pdf”となります。
1079 <LI>
1080 <!-- svg - - the selected glyphs will have their splines output into svg files.
1081 The files will be named "&lt;glyph-name&gt;_&lt;font-name&gt;.svg". -->
1082 svg — 選択中のグリフのアウトラインを SVG ファイルに書き出します。ファイル名は“&lt;グリフ名&gt;_&lt;フォント名&gt;.svg”となります。
1083 <LI>
1084 <!-- fig - - the selected glyphs will have their splines converted (badly)
1085 into xfig files. The files will be named
1086 "&lt;glyph-name&gt;_&lt;font-name&gt;.fig". -->
1087 fig — 選択中のグリフのアウトラインを (不十分に) xfig ファイルに書き出します。ファイル名は“&lt;グリフ名&gt;_&lt;フォント名&gt;.fig”となります。
1088 <LI>
1089 <!-- xbm - - The second argument specifies a bitmap font size, the selected glyphs
1090 in that bitmap font will be output as xbm files. The files will be named
1091 "&lt;glyph-name&gt;_&lt;font-name&gt;.xbm". -->
1092 xbm — 2 番目の引数にビットマップフォントのサイズを指定します。ビットマップフォント内の選択中の文字が XBM ファイルに書き出されます。ファイル名は“&lt;グリフ名&gt;_&lt;フォント名&gt;.xbm”となります。
1093 <LI>
1094 <!-- bmp - - The second argument specifies a bitmap font size, the selected glyphs
1095 in that bitmap font will be output as bmp files. The files will be named
1096 "&lt;glyph-name&gt;_&lt;font-name&gt;.bmp". -->
1097 bmp — 2 番目の引数にビットマップフォントのサイズを指定します。ビットマップフォント内の選択中のグリフが BMP ファイルに書き出されます。ファイル名は“&lt;グリフ名&gt;_&lt;フォント名&gt;.bmp”となります。
1098 <LI>
1099 <!-- png - - The second argument specifies a bitmap font size, the selected glyphs
1100 in that bitmap font will be output as png files. The files will be named
1101 "&lt;glyph-name&gt;_&lt;font-name&gt;.png". -->
1102 png — 2 番目の引数にビットマップフォントのサイズを指定します。ビットマップフォント内の選択中のグリフが PNG ファイルに書き出されます。ファイル名は“&lt;グリフ名&gt;_&lt;フォント名&gt;.png”となります。
1103 </UL>
1104 <P>
1105 <!-- The format may consist entirely of the filetype (above), or it may include
1106 a full filename (with some format control within it) which has the file type
1107 as an extension: -->
1108 フォーマットは (上記の) ファイルタイプのみからなるか、または、ファイルタイプを拡張子で指定した (いくつかのフォーマット制御文字列を埋め込み可能な) 完全なファイル名のいずれかとすることが可能です。
1109 <BLOCKQUOTE>
1110 "Glyph %n from font %f.svg"<BR>
1111 "U+%U.bmp"
1112 </BLOCKQUOTE>
1113 <P>
1114 <!-- All characters in the format string except for % are copied verbatim. If
1115 there is a % then the following character controls behavior: -->
1116 フォーマット文字列中の文字は % 以外はそのままコピーされます。% が含まれている場合、次の文字がふるまいを制御します:
1117 <UL>
1118 <LI>
1119 <!-- %n - - inserts the glyph name (or the first 40 characters of it for long names) -->
1120 %n — グリフ名を挿入します (名前が長い場合、最初の 40 文字のみ)。
1121 <LI>
1122 <!-- %f - - inserts the font name (or the first 40 characters) -->
1123 %f — フォント名 (または最初の 40 文字) を挿入します。
1124 <LI>
1125 <!-- %e - - inserts the glyph's encoding as a decimal integer -->
1126 %e — グリフの符号位置を 10 進数で挿入します。
1127 <LI>
1128 <!-- %u - - inserts the glyph's unicode code point in lower case hex -->
1129 %u — グリフの Unicode コードポイントを小文字 16 進数で挿入します。
1130 <LI>
1131 <!-- %U - - inserts the glyph's unicode code point in upper case hex -->
1132 %U — グリフの Unicode コードポイントを大文字 16 進数で挿入します。
1133 <LI>
1134 <!-- %% - - inserts a single '%' -->
1135 %% — 1 個の&lsquo;%&rsquo;を挿入します。
1136 </UL>
1137 </DL>
1138 </TD>
1139 </TR>
1140 <TR VALIGN=TOP>
1141 <TD BGCOLOR=yellow><A NAME="F">F</A></TD>
1142 <TD><DL>
1143 <DT>
1144 <A NAME="FileAccess">F</A>ileAccess(filename[,prot])
1145 <DD>
1146 <!-- Behaves like the unix access system call. Returns 0 if the file exists, -1
1147 if it does not. If protection is omitted, checks for read access. It can
1148 execute with no current font. -->
1149 Unix の access システムコールと同様にふるまいます。ファイルが存在する場合 0 を返し、存在しない場合 -1 を返します。prot が省略された時は、読み込みアクセスをチェックします。カレントフォントがない状態でも実行できます。
1150 <DT>
1151 <A NAME="FindIntersections">F</A>indIntersections()
1152 <DD>
1153 <!-- Finds everywhere that splines cross and creates points there.-->
1154 曲線が交差するすべての箇所を検出し、そこに点を追加します。
1155 <DT>
1156 <A NAME="FindOrAddCvtIndex">F</A>indOrAddCvtIndex(value[,sign-matters])
1157 <DD>
1158 <!-- Returns the index in the cvt table of the given value. If the value does
1159 not exist in the table it will be added, and an index at the end of the table
1160 will be returned. Most tt instructions ignore the sign of items in the cvt
1161 table, but a few care. Usually this command stores the absolute value of
1162 value, but if sign-matters is present and non-zero a negative value can be
1163 looked up (or added). -->
1164 引数 value で指定した値が cvt テーブル内に含まれるインデックスを返します。テーブル内に value が存在しない場合、それを追加してから、テーブルの末尾要素のインデックスを返します。ほとんどの TrueType 命令は cvt テーブル内の項目の符号を無視しますが、値に意味がある命令がいくつかあります。通常このコマンドは値の絶対値を格納しますが、引数 sign-matters が存在し、0 以外の値の場合、負の値を参照 (または追加) することができます。
1165 <DT>
1166 <A NAME="Floor">F</A>loor(real)
1167 <DD>
1168 <!-- Converts a real number to the largest integer smaller than the real. It can
1169 execute with no current font.<BR>
1170 See Also <A HREF="#Ceil">Ceil</A>, <A HREF="#Int">Int</A>,
1171 <A HREF="#Round">Round</A> -->
1172 real を、それを超えない最大の整数に変換します。カレントフォントがない状態でも実行できます。
1173 <A HREF="#Ceil">Ceil</A>, <A HREF="#Int">Int</A>, <A HREF="#Round">Round</A> も参照してください。
1174 <DT>
1175 <A NAME="FontsInFile">F</A>ontsInFile(filename)
1176 <DD>
1177 <!-- Returns an array of strings containing the names of all fonts within a file.
1178 Most files contain one font, but some (mac font suitcases, dfonts, ttc files,
1179 svg files, etc) may contain several. If the file contains no fonts (or the
1180 file doesn't exist, or the fonts aren't named), a zero length array is returned.
1181 It does not open the font. It can execute without a current font. -->
1182 ファイル内に含まれる全てのフォント名を含む文字列の配列を返します。ほとんどのファイルはフォント 1 個のみを含みますが、物によって (Mac のフォントスーツケース、dfont, TTC ファイル、SVG ファイルなど) は複数のフォントを含むことができます。ファイルにフォントが含まれていない場合 (またはファイルが存在しないか、フォントに名前がついていない場合) 長さ 0 の配列が返されます。これはフォントを開きません。カレントフォントが無くても実行可能です。
1183 </DL>
1184 </TD>
1185 </TR>
1186 <TR VALIGN=TOP>
1187 <TD BGCOLOR=yellow><A NAME="G">G</A></TD>
1188 <TD><DL>
1189 <DT>
1190 <A NAME="Generate" HREF="filemenu.html#Generate">Generate</A>(filename[,bitmaptype[,fmflags[,res[,mult-sfd-file[,namelist-name]]]]])
1191 <DD>
1192 <!-- Generates a font. The type of font is determined by the extension of the
1193 filename. Valid extensions are: -->
1194 フォントを出力します。フォントの形式は filaname で指定した拡張子で決まります。
1195 利用可能な拡張子は以下のとおりです:
1196 <UL>
1197 <LI>
1198 .pfa
1199 <LI>
1200 .pfb
1201 <LI>
1202 <!-- .bin (a mac postscript (pfb) resource in a mac binary wrapper)<BR> -->
1203 .bin (Mac のバイナリラッパに格納した Mac の postscript (pfb) リソース)<BR>
1204 <!-- .res (on the Mac itself FontForge will put the result directly into a font
1205 suitcase file, and the extension should be ".res" rather than ".bin") -->
1206 .res (Mac 上で実行した場合は、FontForge はフォントスーツケースに直接ファイルを書き出し、拡張子は“.bin”ではなく“.res”となります)
1207 <P>
1208 <!-- Note: you must also create a bitmap font in NFNT format or the mac will not
1209 recognize your postscript font. -->
1210 注意: これと同時にビットマップフォントを NFNT フォーマットで出力しなければなりません。これを行わないと出力した PostScript フォントは Mac に認識されません。
1211 <LI>
1212 <!-- *%s*.pf[ab] (here more than just an extension is required, the font name
1213 must contain a "%s") (splits a big font up into multiple pfb fonts each with
1214 256 characters, making use of the fifth argument to determine how this is
1215 done). The "%s" will be replaced by the fontnumber specified in the
1216 mult-sfd-file. -->
1217 *%s*.pf[ab] (ここでは単に拡張子だけでない指定が必要となります。フォント名には“%s”が含まれていなければなりません) (1 個の巨大なフォントを、それぞれ 256 文字を含む複数の pfb フォントに分割します。この時、どのようにこれを行うかは 5 番目の引数によって決まります)。“%s”は、複合 SFD ファイル内で割り当てられるフォント番号に置き換えられます。
1218 <LI>
1219 <!-- .mm.pfa (multiple master font in ascii format) -->
1220 .mm.pfa (ASCII フォーマットのマルチプルマスターフォント)
1221 <LI>
1222 <!-- .mm.pfb (multiple master font in binary format) -->
1223 .mm.pfb (バイナリフォーマットのマルチプルマスターフォント)
1224 <LI>
1225 .pt3 (type 3)
1226 <LI>
1227 .ps (type 0)
1228 <LI>
1229 <!-- .t42 (type 42, truetype wrapped in PostScript) -->
1230 .t42 (Type 42, PostScript ラッパに格納した TrueType)
1231 <LI>
1232 <!-- .cid.t42 (type 42 cid font) -->
1233 .cid.t42 (Type 42 CID フォント)
1234 <LI>
1235 <!-- .cid (non-otf cid font) -->
1236 .cid (非 OTF の CID フォント)
1237 <LI>
1238 <!-- .cff (bare cff font) -->
1239 .cff (裸の CFF フォント)
1240 <LI>
1241 <!-- .cid.cff (bare cff cid-keyed font) -->
1242 .cid.cff (CFF フォーマットの CID フォント)
1243 <LI>
1244 .ttf
1245 <LI>
1246 <!-- .sym.ttf (a truetype file with a symbol (custom) encoding) -->
1247 .sym.ttf (Symbol (カスタム) エンコーディングの TrueType ファイル)
1248 <LI>
1249 <!-- .ttf.bin (a mac truetype resource in a mac binary wrapper)<BR> -->
1250 .ttf.bin (Mac のバイナリラッパに格納した TrueType リソース)<BR>
1251 <!-- suit (on the Mac itself FontForge will put the result directly into a font
1252 suitcase file, and the extension should be ".suit" not ".ttf.bin") -->
1253 suit (Mac 上で実行した場合は、FontForge は結果を直接フォントスーツケースファイルに書き出し、拡張子は“.ttf.bin”ではなく“.suit”になります)
1254 <LI>
1255 <!-- .dfont (a mac truetype resource in a dfont file) -->
1256 .dfont (dfont ファイルに含まれた Mac の TrueType リソース)
1257 <LI>
1258 <!-- .otf (either cid or not depending on the font) -->
1259 .otf (CID フォントかどうかは、編集中のフォントの形式に依存します)
1260 <LI>
1261 <!-- .otf.dfont (a mac opentype resource in a dfont file) -->
1262 .otf.dfont (dfont ファイルに含まれた Mac の OpenType リソース)
1263 <LI>
1264 <!-- .svg (an svg font) -->
1265 .svg (SVG フォント)
1266 <LI>
1267 <!-- &lt;null extension&gt; If you don't want to generate an outline font at all
1268 (but do want to provide a filename for bitmap or metrics files) then provide
1269 a null extension (ie. <CODE>"Times."</CODE> but NOT <CODE>"Times"</CODE>)
1270 - - the generated bitmap fonts will have appropriate extensions for their
1271 font types, the "." is merely a placeholder. -->
1272 &lt;拡張子無し&gt; アウトラインフォントを全く書き出したくない場合
1273 (その代り、ビットマップかメトリックファイルの名前だけを指定する)
1274 空の拡張子を指定してください (つまり、<CODE>"Times."</CODE> であって
1275 <CODE>"Times"</CODE> ではありません——出力されるビットマップフォントは、その型に応じて適切な拡張子がつけられます。“.”は単なる飾りです)。
1276 </UL>
1277 <P>
1278 <!-- If present, bitmaptype may be one of: -->
1279 bitmaptype を指定した場合、それは以下のどれかでなければなりません。
1280 <UL>
1281 <LI>
1282 bdf
1283 <LI>
1284 <!-- ttf (for EBDT/bdat table in truetype/opentype) -->
1285 ttf (TrueType/OpenType フォント内の EBDT/bdat テーブル)
1286 <LI>
1287 <!-- sbit (for bdat table in truetype without any outline font in a dfont wrapper) -->
1288 sbit (dfont ラッパに包まれたアウトラインフォントを含まない TrueType フォント内の bdat テーブル)
1289 <LI>
1290 <!-- bin (for nfnt in macbinary) -->
1291 bin (MacBinary 内の nfnt リソース)
1292 <P>
1293 <!-- NOTE: Mac OS/X does not appear to support NFNT bitmaps. However even though
1294 unused itself, an NFNT bitmap must be present for a resource based type1
1295 postscript font to be used. (More accurately the obsolete FOND must be present,
1296 and that will only be present if an obsolete NFNT is also present) -->
1297 注意: Mac OS X は NFNT をサポートしていないようです。
1298 それ自身では使用していないにしろ、リソースベースの PostScript フォントを
1299 使用するには NFNT ビットマップが存在しなければなりません。(より正確に言えば、廃止された FOND が存在する必要があるのは、廃止された NFNT も同時に存在する場合に限られます)。
1300 <LI>
1301 <!-- fnt (For windows FNT format) -->
1302 fnt (Windows の FNT フォーマット)
1303 <LI>
1304 <!-- otb (For X11 opentype bitmap format) -->
1305 otb (X11 の OpenType ビットマップフォーマット)
1306 <LI>
1307 <!-- pdb (for <A HREF="palmfonts.html">palm bitmap fonts</A>) -->
1308 pdb (<A HREF="palmfonts.html">palm ビットマップフォント</A>のこと)
1309 <LI>
1310 <!-- pt3 (for a postscript type3 bitmap font) -->
1311 pt3 (PostScript Type3 ビットマップフォント)
1312 <LI>
1313 <!-- "" for no bitmaps -->
1314 "" は、ビットマップ無しの指定です。
1315 </UL>
1316 <P>
1317 <!-- Note: If you request bitmap output then all strikes in the current font database
1318 will be output, but this command will not create bitmaps, so if there are
1319 no strikes in your font database, no strikes will be output (even if you
1320 ask for them). If you wish to output bitmaps you must first create them with
1321 the <A HREF="#BitmapsAvail">BitmapsAvail</A> scripting command or
1322 <A HREF="elementmenu.html#Bitmaps">Element-&gt;Bitmaps Avail</A>. -->
1323 注意: ビットマップ出力を指定した場合、カレントフォントデータベースに含まれる全てのサイズが出力されますが、このコマンドはビットマップを作成しませんので、フォントデータベースにビットマップが全く含まれない場合、(ビットマップを出力するように指定したとしても) 全く出力されません。ビットマップの出力を行いたい場合、あらかじめ <A HREF="#BitmapsAvail">BitmapsAvail</A> スクリプトコマンドか <A HREF="elementmenu.html#Bitmaps"><CODE>エレメント(<U>L</U>)</CODE>→<CODE>使用するビットマップ(<U>A</U>)</CODE></A> を使ってビットマップを作成する必要があります。
1324 <P>
1325 <!-- fmflags controls -->
1326 AFM や PFM ファイルを出力するかどうかは、fmflags で制御できます。
1327 <UL>
1328 <LI>
1329 <!-- -1 =&gt; default (generate an afm file for postscript fonts, never generate
1330 a pfm file, full 'post' table, ttf hints) -->
1331 -1 ⇒ デフォルト (PostScript フォントが用いる AFM ファイルを出力し、
1332 PFM ファイルは出力せず、完全な&lsquo;post&rsquo;テーブルと TTF のヒントを作成します)
1333 <LI>
1334 <!-- fmflags&amp;1 =&gt; generate an afm file (if you are generating a multiple
1335 master font then setting this flag means you get several afm files (one for
1336 each master design, and one for the default version of the font) and an amfm
1337 file) -->
1338 fmflags&amp;1 ⇒ AFM ファイルを出力する (マルチプルマスターフォントを出力する場合、このフラグをセットすると、いくつかの AFM ファイル (マスターデザインごとに 1 ファイル、フォントのデフォルトバージョンに対してもう 1 ファイル) と amfm ファイルを出力するという意味になります)
1339 <LI>
1340 <!-- fmflags&amp;2 =&gt; generate a pfm file -->
1341 fmflags&amp;2 ⇒ PFM ファイルを出力する
1342 <LI>
1343 <!-- fmflags&amp;4 =&gt; generate a short 'post' table with no glyph name info
1344 in it. -->
1345 fmflags&amp;4 ⇒ グリフ名の情報を含まない簡素な&lsquo;post&rsquo;テーブルを出力する
1346 <LI>
1347 <!-- fmflags&amp;8 =&gt; do not include ttf instructions -->
1348 fmflags&amp;8 ⇒ TTF のインストラクションを含めない
1349 <LI>
1350 <!-- fmflags&amp;0x10 =&gt; where apple and ms/adobe differ about the format of
1351 a true/open type file, use apple's definition (otherwise use ms/adobe)<BR>
1352 Currently this affects bitmaps stored in the font (Apple calls the table
1353 'bdat', ms/adobe 'EBDT'), the PostScript name in the 'name' table (Apple
1354 says it must occur exactly once, ms/adobe say at least twice), and whether
1355 morx/feat/kern/opbd/prop/lcar or GSUB/GPOS/GDEF tables are generated. -->
1356 fmflags&amp;0x10 ⇒ Apple と MS/Adobe の間で TrueType/OpenType の定義が異なる場合、Apple の定義を用いる (指定しない場合は MS/Adobe の定義)<BR>
1357 現在のところ、これが影響するのは、フォント内に格納されるビットマップのフォーマット (Apple は&lsquo;bdat&rsquo;というテーブルを、MS/Adobe は&lsquo;EBDT&rsquo;というテーブルを用います)、&lsquo;name&rsquo;テーブル内の PostScript 名 (Apple は、1 回しか出現してはならないと指示しているのに対し、MS/Adobe は最低 2 回は出現するように指示しています) および morx/feat/kern/opbd/prop/lcar テーブルと GSUB/GPOS/GDEF テーブルのどちらを作成するかという点です。
1358 <LI>
1359 <!-- fmflags&amp;0x20 =&gt; generate a '<A HREF="non-standard.html#PfEd">PfEd</A>'
1360 table and store glyph comments -->
1361 fmflags&amp;0x20 ⇒&lsquo;<A HREF="non-standard.html#PfEd">PfEd</A>&rsquo;テーブルを作成し、グリフへのコメントを格納します。
1362 <LI>
1363 <!-- fmflags&amp;0x40 =&gt; generate a '<A HREF="non-standard.html#PfEd">PfEd</A>'
1364 table and store glyph colors -->
1365 fmflags&amp;0x40 ⇒ '<A HREF="non-standard.html#PfEd">PfEd</A>'
1366 テーブルを作成し、グリフの色を格納します。
1367 <LI>
1368 <!-- fmflags&amp;0x80 =&gt; generate tables so the font will work on both Apple
1369 and MS platforms.<BR> -->
1370 fmflags&amp;0x80 ⇒ Apple と MS のプラットフォームの両方で動作するようにテーブルを作成します。<BR>
1371 <!-- Apple has screwed up and in Mac 10.4 (Tigger), if OpenType tables are present
1372 in a font then the AAT tables will be ignored - - or so I'm told (I can't
1373 test this myself). Unfortunately Apple does not implement all of OpenType,
1374 so the result is almost certain to be wrong). -->
1375 Apple は Mac OS X 10.4 (トラー) でこれをぶち壊しにしてしまいました。OpenType テーブルがフォント内に存在すると、AAT テーブルは無視されるようになった——とのことです (自分ではテストできません)。残念ながら Apple は OpenType の全機能を実装していないので、ほぼ確実に間違った結果が得られることになるでしょう。
1376 <LI>
1377 <!-- If you want neither OpenType nor Apple tables (just an old fashioned 'kern'
1378 table and nothing else) then set both 0x80 and 0x10. -->
1379 OpenType と Apple のテーブルのどちらも必要ない場合 (昔ながらの&lsquo;kern&rsquo;テーブルだけが必要で他は要らない場合)、0x80 と 0x10 の両方をセットしてください。
1380 <LI>
1381 <!-- fmflags&amp;0x100 =&gt; generate a glyph map file (GID=&gt;glyph name, unicode
1382 map). The map file will have extension ".g2n". -->
1383 fmflags&amp;0x100 ⇒ グリフマップファイル (GID=&gt;グリフ名, Unicode への対応表) を作成します。このマップファイルの拡張子は“.g2n”になります。
1384 <!-- fmflags&amp;0x200 =&gt; generate a '<A HREF="non-standard.html#TeX">TeX</A>
1385 ' table containing (most) TeX font metrics information -->
1386 fmflags&amp;0x200 ⇒ TeX のフォントメトリック情報を含む&lsquo;<A HREF="non-standard.html#TeX">TeX</A>&rsquo;テーブルを出力します。
1387 <LI>
1388 <!-- fmflags&amp;0x400 =&gt; generate an ofm file (for omega) -->
1389 fmflags&amp;0x400 ⇒ (Omega 用の) OFM ファイルを出力します。
1390 <LI>
1391 <!-- fmflags&amp;0x800 =&gt; generate an old style 'kern'ing table. Only meaningful
1392 if set with OpenType (GPOS/GSUB) tables and without Apple tables. -->
1393 fmflags&amp;0x800 ⇒ 旧来のカーニングテーブル&lsquo;kern&rsquo;を出力します。OpenType (GPOS/GSUB) テーブルを出力し、Apple のテーブルを出力しない時にのみ意味があります。
1394 <LI>
1395 <!-- fmflags&amp;0x10000 =&gt; generate a tfm file -->
1396 fmflags&amp;0x10000 ⇒ TFM ファイルを出力します。
1397 <LI>
1398 <!-- fmflags&amp;0x40000 =&gt; do not do flex hints -->
1399 fmflags&amp;0x40000 ⇒ flex ヒントを格納しません。
1400 <LI>
1401 <!-- fmflags&amp;0x80000 =&gt; do not include postscript hints -->
1402 fmflags&amp;0x80000 ⇒ PostScript のヒントを一切格納しません。
1403 <LI>
1404 <!-- fmflags&amp;0x200000 =&gt; round postscript coordinates -->
1405 fmflags&amp;0x200000 ⇒ PostScript の座標値を整数に丸めます。
1406 <LI>
1407 <!-- fmflags&amp;0x400000 =&gt; add composite (mark to base) information to the
1408 afm file -->
1409 fmflags&amp;0x400000 ⇒ (マークから基底文字への) 組合せ情報を AFM ファイルに追加します。
1410 </UL>
1411 <P>
1412 <!-- res controls the resolution of generated bdf fonts. A value of -1 means fontforge
1413 will guess for each strike. -->
1414 res により、生成された BDF フォントの解像度が決まります。
1415 -1 を指定すると、FontForge が各サイズに対して自動的に値を推測します。
1416 <P>
1417 <!-- If the filename contains a "%s" and has either a ".pf[ab]" extension then
1418 a "mult-sfd-file" may be present. This is the filename of a file containing
1419 the mapping from the current encoding into the subfonts.
1420 <A HREF="../Big5.txt">Here is an example</A>. If this file is not present FontForge
1421 will go through its default search process to find a file for the encoding,
1422 and if it fails the fonts will not be saved. -->
1423 filename に“%s”が含まれ、“.pf[ab]”のいずれかの拡張子をもつ場合、“複合 sfd ファイル”が存在するはずです。これは現在のエンコーディングからサブフォントへのマッピングを含むファイルの名前です。<A HREF="http://fontforge.sourceforge.net/Big5.txt">一例をここに示します</A>。このファイルが存在しない場合、FontForge はフォントのエンコーディングに対応するファイルを探す標準の探索プロセスを行い、それが失敗した時はフォントは保存されません。
1424 <DT>
1425 <A NAME="GenerateFamily" HREF="filemenu.html#GenerateMac">GenerateFamily</A>(filename,bitmaptype,fmflags,array-of-font-filenames)
1426 <DD>
1427 <!-- Generates a mac font family (FOND) from the fonts (which must be loaded)
1428 in the array-of-font-filenames. filename, bitmaptype, fmflags are as in
1429 <A HREF="#Generate">Generate</A>. -->
1430 配列 array-of-font-filenames で名前を指定した各フォント (読み込み済みでなければなりません) から構成される Mac のフォントファミリー (FOND) を生成します。filename, bitmaptype, fmflag は <A HREF="#Generate">Generate</A> と同じです。
1431 <BLOCKQUOTE>
1432 <PRE>#!/usr/local/bin/fontforge
1433 a = Array($argc-1)
1434 i = 1
1435 j = 0
1436 while ( i &lt; $argc )
1437 # <!--Open each of the fonts-->各フォントを開く
1438 Open($argv[i], 1)
1439 # <!--and store the filenames of all the styles in the array-->全てのスタイルに対応するファイル名を配列に格納する
1440 a[j] = $filename
1441 j++
1442 i++
1443 endloop
1444
1445 GenerateFamily("All.otf.dfont","dfont",16,a)
1446 </PRE>
1447 </BLOCKQUOTE>
1448 <DT>
1449 <A NAME="GetCvtAt">G</A>etCvtAt(index)
1450 <DD>
1451 <!-- Return the value in the cvt table at the given index.-->
1452 引数 index で指定した位置にある cvt テーブルの項目値を返します。
1453 <DT>
1454 <A NAME="GetEnv">G</A>etEnv(str)
1455 <DD>
1456 <!-- Returns the value of the unix environment variable named by str. It can execute
1457 with no current font. -->
1458 名前 str をもつ環境変数の値を返します。カレントフォントがない状態でも実行できます。
1459 <DT>
1460 <A NAME="GetFontBoundingBox">G</A>etFontBoundingBox()
1461 <DD>
1462 <!-- Returns a 4 element array containing [minimum-x-value, minimum-y-value,
1463 maximum-x-value, maximum-y-value] of the entire font. -->
1464 4 要素からなる、フォント全体の [x座標の最小値, y座標の最小値, x座標の最大値, y座標の最大値] を含んだ配列を返します。
1465 <DT>
1466 <A NAME="GetMaxpValue">G</A>etMaxpValue(field-name)
1467 <DD>
1468 <!-- Field name can be the same set of tag strings as
1469 <A HREF="#SetMaxpValue">SetMaxpValue</A>. -->
1470 引数 field-name として使用できるのは、<A HREF="#SetMaxpValue">SetMaxpValue</A> で使えるタグ文字列と同じです。
1471 <DT>
1472 <A NAME="GetOS2Value" HREF="fontinfo.html#TTF-Values">GetOS2Value</A>(field-name)
1473 <DD>
1474 <!-- The argument takes the same set of tag strings. <CODE>VendorId</CODE> returns
1475 a string, and <CODE>Panose</CODE> returns an array. The others return integers. -->
1476 引数に使用可能な値のセットはは上記のタグ文字列と同じです。<CODE>VendorId</CODE> は文字列を、<CODE>Panose</CODE> は配列を返します。その他の場合整数を返します。
1477 <DT>
1478 <A NAME="GetPosSub">G</A>etPosSub(feature-tag,script,lang)
1479 <DD>
1480 <!-- One glyph must be selected, this returns information about GPOS/GSUB features
1481 attached to this glyph (It will not return information about class based
1482 kerning or contextual features - - nothing that applies to the font as a whole
1483 - - just things relating to the current glyph). The arguments must be 4 letter
1484 strings (or the special string "*" which acts as a wildcard). It returns
1485 an Array of Arrays (with one entry for each feature which matches the arguments).
1486 If nothing matches a 0 length array will be returned. -->
1487 あらかじめグリフを 1 個だけ選択しておく必要があります。そのグリフに付随する GPOS/GSUB 機能に関する情報を返します (クラスベースのカーニングや文脈依存の機能に関する情報は返しません——フォント全体に適用される情報は何も表示しません——選択中のグリフに関連する物のみです)。引数は 4 文字の文字列 (またはワイルドカードとして用いられる“*”) でなければなりません。この関数は配列の配列を返します (引数にマッチした各機能ごとに配列の 1 項目が割り当てられます)。何もマッチしなければ、長さ 0 の配列が返されます。
1488 <P>
1489 <!-- Each sub-array contains the following information-->
1490 それぞれの部分配列には以下の情報が含まれています。
1491 <UL>
1492 <LI>
1493 <!-- The feature tag (a string) -->
1494 機能タグ (文字列)
1495 <LI>
1496 <!-- The script/language string of this feature -->
1497 この機能の用字系/言語文字列
1498 <LI>
1499 <!-- The type (As a string, One of <CODE>Position, Pair, Substitution, AltSubs,
1500 MultSubs </CODE>or<CODE> Ligature</CODE>) -->
1501 タイプ (<CODE>Position, Pair, Substitution, AltSubs, MultSubs</CODE> または <CODE>Ligature</CODE> のどれかの文字列)
1502 </UL>
1503 <P>
1504 <!-- The remaining entries depend on the type. -->
1505 それより後ろの項目はタイプによって異なります。
1506 <DL>
1507 <DT>
1508 <!-- For Positions -->
1509 “Position”の場合
1510 <DD>
1511 <!-- There will be 4 numbers indicating respectively the contents of a GPOS value
1512 record (dx,dy,d_horizontal_advance,d_vertical_advance) -->
1513 それぞれが GPOS 値レコードの内容を表す 4 個の数値 (dx,dy,d_horizontal_advance,d_vertical_advance)
1514 <DT>
1515 <!-- For Pairs -->
1516 “Pair”の場合
1517 <DD>
1518 <!-- A string containing the name of the other glyph in the pair -->
1519 ペアに含まれるもう片方のグリフの名前を含む 1 個の文字列
1520 <P>
1521 <!-- A list of 8 numbers indicating the contents of two GPOS value records (the
1522 first four numbers control the current glyph, the next four numbers control
1523 the second glyph) -->
1524 それぞれが GPOS 値レコードの内容を表す 8 個の数値 (最初の 4 個は現在のグリフを制御し、その後ろの 4 個の数値は 2 番目のグリフを制御します)
1525 <DT>
1526 <!-- For Substitutions -->
1527 “Substitution”の場合
1528 <DD>
1529 <!-- A string containing the name of a glyph with which the current glyph is to
1530 be replaced. -->
1531 現在のグリフを置き換えるべきグリフ名を含む 1 個の文字列
1532 <DT>
1533 <!-- For the others -->
1534 その他の場合
1535 <DD>
1536 <!-- A set of glyph names, one for each component. -->
1537 各要素に 1 個ずつグリフ名が格納されます。
1538 </DL>
1539 <P>
1540 <!-- Examples:-->
1541 例:
1542 <BLOCKQUOTE>
1543 <PRE>&gt;Select("ffl")
1544 &gt;Print( GetPosSub("liga","*","*"))
1545 [[liga,latn{dflt} ,Ligature,f,f,l],
1546 [liga,latn{dflt} ,Ligature,ff,l]]
1547 &gt;Select("T")
1548 &gt;Print( GetPosSub("*","*","*"))
1549 [[kern,latn{dflt} ,Pair,u,0,0,-76,0,0,0,0,0],
1550 [kern,latn{dflt} ,Pair,e,0,0,-92,0,0,0,0,0],
1551 [kern,latn{dflt} ,Pair,a,0,0,-92,0,0,0,0,0],
1552 [kern,latn{dflt} ,Pair,o,0,0,-76,0,0,0,0,0]]
1553 &gt;Select("onehalf")
1554 &gt;Print( GetPosSub("frac","latn","dflt"))
1555 [[frac,latn{dflt} ,Ligature,one,slash,two],
1556 [frac,latn{dflt} ,Ligature,one,fraction,two]]
1557 </PRE>
1558 </BLOCKQUOTE>
1559 <DT>
1560 <A NAME="GetPref">G</A>etPref(str)
1561 <DD>
1562 <!-- Gets the value of the preference item whose name is contained in str. Only
1563 boolean, integer, real, string and file preference items may be returned.
1564 Boolean and real items are returned with integer type and file items are
1565 returned with string type. Encodings (NewCharset) are returned as magic numbers,
1566 these are meaningless outside the context of get/set Pref. -->
1567 名前 str を持つプリファレンスの項目値を取り出します。返すことができる項目の型は、ブール型、整数、実数、文字列およびファイル型のみです。
1568 ブール型と実数型の項目は整数型に変換され、ファイル項目は文字列型に変換されます。
1569 エンコーディング (NewCharset) がマジックナンバーとして返されます。これは get/set Pref の文脈の外では無意味な数値です。
1570 <DT>
1571 <A NAME="GetPrivateEntry">G</A>etPrivateEntry(key)
1572 <DD>
1573 <!-- Returns the entry indexed by key in the private dictionary. All return values
1574 will be strings. If an entry does not exist a null string is returned. -->
1575 Private 辞書から key をキーにもつ値を返します。すべての返り値は文字列です。該当する項目が辞書に存在しない場合、空文字列を返します。
1576 <DT>
1577 <A NAME="GetTeXParam">G</A>etTeXParam(index)
1578 <DD>
1579 <!-- If index == -1 then the tex font type will be returned (text==0, math==1,
1580 math extended=2)<BR>
1581 Else index is used to index into the font's tex params array. -->
1582 index == -1 の場合 TeX のフォントタイプが返されます (テキストフォント=0, 数学フォント=1, 数学拡張フォント=2)<BR>
1583 それ以外の場合、index はフォントの TeX パラメータ配列のインデックスとして使用されます。
1584 <DT>
1585 <A NAME="GetTTFName">G</A>etTTFName(lang,nameid)
1586 <DD>
1587 <!-- The lang and nameid arguments are as in <A HREF="#SetTTFName">SetTTFName</A>.
1588 This returns the current value as a utf8 encoded string. Combinations which
1589 are not present will be returned as "". -->
1590 引数 lang および nameid の意味は <A HREF="#SetTTFName">SetTTFName</A> と同じです。現在の値を UTF-8 で符号化された文字列として返します。値が存在しない引数の組合せに対しては、"" を返します。
1591 <DT>
1592 <B><A NAME="GlyphInfo">GlyphInfo</A></B>(str)<BR>
1593 GlyphInfo("Kern",glyph-spec)<BR>
1594 GlyphInfo("VKern",glyph-spec)<BR>
1595 GlyphInfo(str,script,lang,tag)
1596 <DD>
1597 <!-- There must be exactly one glyph selected in the font, and this returns
1598 information on it. The information returned depends on str with the obvious
1599 meanings: -->
1600 フォント内の 1 個のグリフだけが選択されていなければなりません。そのとき、この関数はそのグリフに関する情報を返します。返される情報は、文字列 str に依存します (意味は見てのとおりです):
1601 <UL>
1602 <LI>
1603 <!-- "Name" returns the glyph's name -->
1604 “Name”はグリフの名前を返します。
1605 <LI>
1606 <!-- "Unicode" returns the glyph's unicode encoding -->
1607 “Unicode”はグリフの Unicode エンコーディング値を返します。
1608 <LI>
1609 <!-- "Encoding" returns the glyph's encoding in the current font -->
1610 “Encoding”はグリフのカレントフォント内の符号位置を返します。
1611 <LI>
1612 <!-- "Width" returns the glyph's width -->
1613 “Width”はグリフの幅を返します。
1614 <LI>
1615 <!-- "VWidth" returns the glyph's Vertical width -->
1616 "VWidth" はグリフの全高 (縦書き時の送り幅) を返します。
1617 <LI>
1618 <!-- "TeXHeight" returns the tex_height field (a value of 0x7fff indicates that
1619 a default value will be used) -->
1620 “TeXHeight”は tex_height フィールドを返します (値 0x7fff は、デフォルト値が使用されることを表します)。
1621 <LI>
1622 <!-- "TeXDepth" returns the tex_depth field (a value of 0x7fff indicates that
1623 a default value will be used) -->
1624 “TeXDepth”は tex_depth フィールドを返します (値 0x7fff は、デフォルト値が使用されることを表します)。
1625 <LI>
1626 <!-- "TeXSubPos" returns the tex_sub_pos field (a value of 0x7fff indicates that
1627 a default value will be used) -->
1628 “TeXSubPos”は tex_sub_pos フィールドを返します (値 0x7fff は、デフォルト値が使用されることを表します)。
1629 <LI>
1630 <!-- "TeXSuperPos" returns the tex_super_pos field (a value of 0x7fff indicates
1631 that a default value will be used) -->
1632 “TeXSuperPos”は tex_super_pos フィールドを返します (値 0x7fff は、デフォルト値が使用されることを表します)。
1633 <LI>
1634 <!-- "LBearing" returns the glyph's left side bearing -->
1635 “LBearing”はグリフの左サイドベアリングを返します。
1636 <LI>
1637 <!-- "RBearing" returns the glyph's right side bearing -->
1638 “RBearing”はグリフの右サイドベアリングを返します。
1639 <LI>
1640 <!-- "BBox" returns a 4 element array containing [minimum-x-value, minimum-y-value,
1641 maximum-x-value, maximum-y-value] of the glyph. -->
1642 “BBox”はグリフアウトラインの [xの最小値, yの最小値, xの最大値, yの最大値] を含む 4 要素の配列を返します。
1643 <LI>
1644 <!-- "Kern" (there must be a second argument here which specifies another glyph
1645 as in Select()) Returns the kern offset between the two glyphs (or 0 if none). -->
1646 “Kern”(この場合、もう一つのグリフを 2 番目の引数として Select() と同じ方法で指定しなければなりません) は、2 個のグリフの間のカーニングオフセット (存在しない場合は 0) を返します。
1647 <LI>
1648 <!-- "VKern" (there must be a second argument here which specifies another glyph
1649 as in Select()) Returns the vertical kern offset between the two glyphs (or
1650 0 if none). -->
1651 “VKern”(この場合、もう一つのグリフを 2 番目の引数として Select() と同じ方法で指定しなければなりません) は、2 個のグリフの間の縦書き用カーニングオフセット (存在しない場合は 0) を返します。
1652 <LI>
1653 <!-- "Xextrema" (there must be a second argument here which specifies the vertical
1654 position) Returns a two element array containing the minimum and maximum
1655 horizontal positions on the contours of the glyph at the given vertical position.
1656 If the position is beyond the glyph's bounding box the minimum value will
1657 be set to 1 and the max to 0 (ie. max&lt;min which is impossible). -->
1658 “Xextrema”(垂直方向の位置を指定する 2 番目の引数が存在しなければなりません) は、指定した垂直方向の位置における、グリフの輪郭の水平方向の最小値と最大値の 2 要素を含む配列を返します。指定した位置がグリフのバウンディングボックスの外側にあるときは、最小値が 1・最大値が 0 (つまり、最大値&lt;最小値 という現実にありえない結果) となります。
1659 <LI>
1660 <!-- "Yextrema" (there must be a second argument here which specifies the horizontal
1661 position) Returns a two element array containing the minimum and maximum
1662 vertical positions on the contours of the glyph at the given horizontal position.
1663 If the position is beyond the glyph's bounding box the minimum value will
1664 be set to 1 and the max to 0 (ie. max&lt;min which is impossible). -->
1665 “Xextrema”(水平方向の位置を指定する 2 番目の引数が存在しなければなりません) は、指定した水平方向の位置における、グリフの輪郭の垂直方向の最小値と最大値の 2 要素を含む配列を返します。指定した位置がグリフのバウンディングボックスの外側にあるときは、最小値が 1・最大値が 0 (つまり、最大値&lt;最小値 という現実にありえない結果) となります。
1666 <LI>
1667 <!-- "Color" returns the glyph's color as a 24bit rgb value (or -2 if no color
1668 has been assigned to the glyph). -->
1669 “Color”はグリフの色を 24 ビット RGB 値 (そのグリフに色が設定されていない場合は -2) で返します。
1670 <LI>
1671 <!-- "Comment" returns the glyph's comment (it will be converted from unicode
1672 into the default encoding). -->
1673 “Comment”はグリフに設定されたコメントを返します (Unicode からデフォルトエンコーディングに変換されます)。
1674 <LI>
1675 <!-- "Changed" returns whether the glyph has been changed since the last save
1676 or load. -->
1677 “Changed”は、最後に保存または読み込みを行った後でグリフが変更されたかどうかを返します。
1678 <LI>
1679 <!-- "DontAutoHint" returns the status of the "Don't AutoHint" flag. -->
1680 “DontAutoHint”は、"Don't AutoHint" フラグの状態を返します。
1681 <LI>
1682 <!-- "Position" takes three additional arguments, a script, a language and a tag
1683 (all 4 character strings) and returns whether the glyph has a Position alternate
1684 with that tag. -->
1685 <LI>
1686 “Position”は 3 個の追加の引数 script, language と tag (これらはすべて 4 文字からなる文字列です) をとり、そのグリフに tag で指定されたタグをもつ位置変更が存在するかどうかを返します。
1687 <LI>
1688 <!-- "Pair" takes three additional arguments, a script, a language and a tag (all
1689 4 character strings) and returns whether the glyph has a Pairwise positioning
1690 alternate with that tag. -->
1691 “Pair”は 3 個の追加の引数 script, language と tag (これらはすべて 4 文字からなる文字列です) をとり、そのグリフに、tag で指定されたタグをもつペア単位の位置変更が存在するかどうかを返します。
1692 <LI>
1693 <!-- "Substitution" takes three additional arguments, a script, a language and
1694 a tag (all 4 character strings) and returns the name of the Simple Substitution
1695 alternate with that tag (or a null string if there is none). -->
1696 “Substitution”は 3 個の追加の引数 script, language と tag (これらはすべて 4 文字からなる文字列です) をとり、選択中の文字の単純置換文字で tag で指定されたタグをもつものの名前を返します (存在しない場合は空文字列を返します)。
1697 <LI>
1698 <!-- "AltSubs" takes three additional arguments, a script, a language and a tag
1699 (all 4 character strings) and returns a space separated list of the names
1700 of all alternate substitutions with that tag (or a null string if there is none). -->
1701 “AltSubs”は 3 個の追加の引数 script, language と tag (これらはすべて 4 文字からなる文字列です) をとり、選択中のグリフの tag で指定されたタグをもつ選択型置換文字の名前を空白で区切って列挙したリストとして返します (存在しない場合は空文字列を返します)。
1702 <LI>
1703 <!-- "MultSubs" takes three additional arguments, a script, a language and a tag
1704 (all 4 character strings) and returns a space separated list of all the names
1705 of all glyphs this glyph gets decomposed into with that tag (or a null string
1706 if there is none). -->
1707 “MultSubs”は 3 個の追加の引数 script, language と tag (これらはすべて 4 文字からなる文字列です) をとり、選択中のグリフを tag で指定されたタグで分解した時の文字の名前を順番に並べた空白区切りのリストとして返します (存在しない場合は空文字列を返します)。
1708 <LI>
1709 <!-- "Ligature" takes three additional arguments, a script, a language and a tag
1710 (all 4 character strings) and returns a space separated list of the names
1711 of all components with that tag (or a null string if there is none). -->
1712 “Ligature”は 3 個の追加の引数 script, language と tag (これらはすべて 4 文字からなる文字列です) をとり、選択中のグリフの全構成要素を順番に並べた空白区切りリストとして返します (存在しない場合は空文字列を返します)。
1713 <LI>
1714 <!-- "GlyphIndex" returns the index of the current glyph in the ttf 'glyf' table,
1715 or -1 if it has been created since. This value may change when a
1716 truetype/opentype font is generated (to the index in the generated font). -->
1717 “GlyphIndex”は、TrueType フォントの 'glyf' 内で選択中のグリフが位置するインデックスを返します。グリフが後から作成された場合は -1 を返します。
1718 この値は、TrueType/OpenType フォントが生成された時には (生成されたフォント内のインデックスに) 変更される可能性があります。
1719 <LI>
1720 <!-- "PointCount" returns the number of points in the glyph (this means different
1721 things in different modes). -->
1722 "PointCount" はグリフ内の点の個数を返します (モードが異なるとこの個数は異なる意味合いをもちます)。
1723 <LI>
1724 <!-- "LayerCount" returns the number of layers in the glyph. This will always
1725 be 2 (foreground &amp; background) except in the case of a multilayered font. -->
1726 “LayerCount”はグリフに含まれるレイヤの個数を返します。マルチレイヤフォント以外では、この値は常に (前面と背面で) 2 が返されます。
1727 <LI>
1728 <!-- "RefCount" returns the number of references in the glyph -->
1729 “RefCount”はグリフ内の参照の個数を返します。
1730 <LI>
1731 <!-- "RefNames" returns an array containing the names of all glyphs refered to.
1732 This may contain 0 elements. This may contain a glyph twice ("colon" might
1733 refer twice to period) -->
1734 “RefNames”は、参照している全グリフの名前を含む 1 個の配列を返します。この配列の要素数が 0 であることもあります。この配列には同一のグリフを 2 回含むことがあります ("colon" はピリオドを 2 回参照するでしょう)。
1735 <LI>
1736 <!-- "RefTransform" returns an array of arrays. The bottom most arrays are 6 element
1737 (real) transformation matrices which are applied to their respective glyphs. -->
1738 “RefTransform”は配列の配列を返します。いちばん下の配列は、それぞれ対応するグリフに適用される 6 要素の (実数値) 変換行列です。
1739 </UL>
1740 <P>
1741 <!-- Examples: -->
1742 例:
1743 <BLOCKQUOTE>
1744 <PRE>Select("A")
1745 lbearing = GlyphInfo("LBearing")
1746 kern = GlyphInfo("Kern","O")
1747 Select(0u410)
1748 SetLBearing(lbearing)
1749 SetKern(0u41e,kern)
1750 Select("a")
1751 verta = GlyphInfo("Substitution","*","dflt","vrt2")
1752 </PRE>
1753 </BLOCKQUOTE>
1754 </DL>
1755 </TD>
1756 </TR>
1757 <TR VALIGN=TOP>
1758 <TD BGCOLOR=yellow><A NAME="H">H</A></TD>
1759 <TD><DL>
1760 <DT>
1761 <A NAME="HasPreservedTable">H</A>asPreservedTable(tag)
1762 <DD>
1763 <!-- Returns true if the font contains a preserved table with the given tag.-->
1764 保存されたテーブルに名前が tag であるテーブルがあれば真を返します。
1765 <DT>
1766 <A NAME="HasPrivateEntry">H</A>asPrivateEntry(key)
1767 <DD>
1768 <!-- Returns whether key exists in the private dictionary. -->
1769 Private 辞書に key で指定した名前のキーが存在するかどうかを返します。
1770 <DT>
1771 <A NAME="HFlip">H</A>Flip([about-x])
1772 <DD>
1773 <!-- All selected glyphs will be horizontally flipped about the vertical line
1774 through x=about-x. If no argument is given then all selected glyphs will
1775 be flipped about their central point. -->
1776 選択中のすべてのグリフを、垂直線 x=about-x を中心にして、水平方向に反転します。引数を指定しない場合、選択中の各グリフを、その中心軸の周りで反転します。
1777 </DL>
1778 </TD>
1779 </TR>
1780 <TR VALIGN=TOP>
1781 <TD BGCOLOR=yellow><A NAME="I">I</A></TD>
1782 <TD><DL>
1783 <DT>
1784 <A NAME="Import" HREF="filemenu.html#Import">Import</A>(filename[,toback[,flags]])
1785 <DD>
1786 <!-- Either imports a bitmap font into the database, or imports background image[s]
1787 into various glyphs. There may be one or two arguments. The first must be
1788 a string representing a filename. The extension of the file determines how
1789 the import proceeds. -->
1790 ビットマップフォントをデータベースに取り込むか、背面の画像をさまざまなグリフに取り込みます。1 個か 2 個の引数を指定することができます。最初は、ファイル名を指定する文字列 filename でなければなりません。ファイルの拡張子によって、取り込みがどのように進行するかが定まります。
1791 <UL>
1792 <LI>
1793 <!-- If the extension is ".bdf" then a bdf font will be imported -->
1794 拡張子が“.bdf”の場合、BDF フォントを取り込みます。
1795 <LI>
1796 <!-- If the extension is ".pcf" then a pcf font will be imported. -->
1797 拡張子が“.pcf”の場合、PCF フォントを取り込みます。
1798 <LI>
1799 <!-- If the extension is ".ttf" then the EBDT or bdat table of the ttf file will
1800 be searched for bitmap fonts -->
1801 拡張子が“.ttf”の場合、TTF ファイルの EBDT または bdat
1802 テーブルからビットマップフォントを検索します。
1803 <LI>
1804 <!-- If the extension is“pk”then a metafont pk (bitmap font) file will be import
1805 and by default placed in the background -->
1806 拡張子が“.pk”の場合、METAFONT から作成された pk (ビットマップフォント)
1807 ファイルが取り込まれます。デフォルトでは背面に配置されます。
1808 <LI>
1809 <!-- Otherwise if the extension is an image extension, and any loaded images will
1810 be placed in the background. -->
1811 これら以外で、拡張子が画像ファイルに相当する場合、読み込まれた画像が背面に配置されます。
1812 <UL>
1813 <LI>
1814 <!-- If the filename contains a "*" then it should be a recognized template in
1815 which case all images which match that template will be loaded appropriately
1816 and stored in the background -->
1817 filename に“*”が含まれている場合、その文字列はファイル名のテンプレートであると認識され、それにマッチした全てのファイルが適切に読み込まれ、背面に配置されるでしょう。
1818 <LI>
1819 <!-- Otherwise there may be several filenames (separated by semicolons), the first
1820 will be placed in the background of the first selected glyph, the second
1821 into the background of the second selected glyph, ... -->
1822 その他の場合、複数のファイル名を (セミコロンで区切って) 指定することができます。最初のファイルは選択中の最初のグリフの背面に、2 番目は選択中の 2 番目のグリフの背面に…と配置されます。
1823 </UL>
1824 <LI>
1825 <!-- If the extension is "eps" then an encapsulated postscript file will be merged
1826 into the foreground. The file may be specified as for images (except the
1827 extension should be "eps" rather than an image extension). FontForge is limited
1828 in its ability to read eps files. -->
1829 拡張子が“.eps”ならば、EPS ファイルが前面にマージされます。ファイルは画像として指定することができます (ファイル名に画像ファイルの拡張子でなく“.eps”がついている点だけが異なります)。
1830 FontForge の EPS ファイル読み込み能力は、非常に制限されています。
1831 <LI>
1832 <!-- If the extension is "svg" then an svg file will be read into the foreground. -->
1833 拡張子が“.svg”ならば SVG ファイルが前面に読み込まれます。
1834 </UL>
1835 <P>
1836 <!-- If present the second argument must be an integer, if the first argument
1837 is a bitmap font then the second argument controls whether it is imported
1838 into the bitmap list (0) or to fill up the backgrounds of glyphs (1). For
1839 eps and svg files this argument controls whether the splines are added to
1840 the foreground or the background layer of the glyph. -->
1841 2 番目の引数が存在する時は、整数でなければならず、最初の引数がビットマップならば 2 番目の引数によって、ビットマップリストに追加するか (0) グリフの背面を埋めるか (1) が定まります。EPS および SVG ファイルでは、スプラインが前面に追加されるか、グリフの背面レイヤに追加するかがこの引数によって決まります。
1842 <P>
1843 <!-- If there is a third argument it must also be an integer and provides a set
1844 of flags controling the behavior of importing an EPS (and in one case SVG
1845 too) file. -->
1846 3 番目の引数が存在する場合、これも整数でならなければならず、EPS (および、ある場合には SVG についても) の取り込みのふるまいを制御するフラグの集まりとして扱われます。
1847 <UL>
1848 <LI>
1849 <!-- 16 =&gt; remove anything currently present (works for SVG &amp; EPS) -->
1850 16 ⇒ 現在存在するデータを全て削除する (SVG・EPS の両方で有効)
1851 <LI>
1852 <!-- 8 =&gt; correct direction -->
1853 8 ⇒ パスの向きを修正する
1854 <LI>
1855 <!-- 4 =&gt; attempt to handle TeX erasers (stroking with a white pen) -->
1856 4 ⇒ TeX の消しゴム (白ペンによるストローク) を適用しようと試みる
1857 <LI>
1858 <!-- 2 =&gt; remove overlap -->
1859 2 ⇒ パスの重複を除去する
1860 </UL>
1861 <DT>
1862 <A NAME="InFont">I</A>nFont(arg)
1863 <DD>
1864 <!-- Returns whether the argument is in the font. The argument may be an integer
1865 in which case true is returned if the value is &gt;= 0 and &lt; total number
1866 of glyphs in the font. Otherwise if the argument is a unicode code point
1867 or a postscript glyph name, true is returned if that glyph is in the font. -->
1868 フォント内にグリフ arg が存在するかどうかを返します。引数が整数の場合、値が &gt;= 0 かつ &lt; フォント内のグリフの総数である場合に真を返します。それ以外の場合、引数は Unicode のコードポイントか PostScript 文字名であると解釈され、そのグリフがフォント内に存在する時に真を返します。
1869 <DT>
1870 <A NAME="Inline" HREF="elementmenu.html#Inline">Inline</A>(width,gap)
1871 <DD>
1872 <!-- Produces an outline as in <A HREF="#Outline">Outline</A>, and then shrinks
1873 the glyph so that it fits inside the outline. In other words, it produces
1874 an inlined glyph. -->
1875 <A HREF="#Outline">Outline</A> と同じ方法でアウトラインを生成してから、アウトラインの内側に一致するようにアウトラインを縮小します。言い替えれば、インライン化したグリフを生成します。
1876 <DT>
1877 <A NAME="Int">I</A>nt(real)
1878 <DD>
1879 <!-- Uses standard C conversion from real to integer. It can execute with no current
1880 font.<BR>
1881 See Also <A HREF="#Ceil">Ceil</A>, <A HREF="#Round">Round</A>,
1882 <A HREF="#Floor">Floor</A> -->
1883 標準 C の型変換を使用して実数から整数への変換を行います。カレントフォントがない状態でも実行できます。<BR>
1884 <A HREF="#Ceil">Ceil</A>, <A HREF="#Round">Round</A>, <A HREF="#Floor">Floor</A> も参照してください。
1885 <DT>
1886 <A NAME="InterpolateFonts" HREF="elementmenu.html#Interpolate">InterpolateFonts</A>(percentage,other-font-name[,flags])
1887 <DD>
1888 <!-- Interpolates a font which is percentage of the way from the current font
1889 to the one specified by other-font-name (note: percentage may be negative
1890 or more than 100, in which case we extrapolate a font). This command changes
1891 the current font to be the new font. -->
1892 カレントフォントと、other-font-name で指定された名前のフォントとの間で比率 percentage でフォントを補間します (注意: percentage は負の値や 100 を超える値を使用することができ、その場合はフォントを補外します)。このコマンドはカレントフォントを新しく作られたフォントに変更します。
1893 <!-- <FONT COLOR="Red"><STRONG><SMALL>NOTE:</SMALL></STRONG></FONT> You will need
1894 to set the fontname of this new font. The flag argument is the same as for
1895 Open. -->
1896 <FONT COLOR="Red"><STRONG><SMALL>注意:</SMALL></STRONG></FONT> この新しいフォントのフォント名を設定する必要があるでしょう。 flag 引数の意味は Open と同じです。
1897 <DT>
1898 <A NAME="IsFinite">I</A>sFinite(real)
1899 <DD>
1900 <!-- Returns whether the value is finite (not infinite and not a nan). It can
1901 execute with no current font. -->
1902 値が有限値である (無限大/小でも NaN でもない) かどうかを返します。カレントフォントがない状態でも実行できます。
1903 <DT>
1904 <A NAME="IsNan">I</A>sNan(real)
1905 <DD>
1906 <!-- Returns whether the value is a nan. It can execute with no current font. -->
1907 値が NaN であるかどうかを返します。カレントフォントがない状態でも実行できます。
1908 </DL>
1909 </TD>
1910 </TR>
1911 <TR VALIGN=TOP>
1912 <TD BGCOLOR=yellow><A NAME="J">J</A></TD>
1913 <TD><DL>
1914 <DT>
1915 <A NAME="Join" HREF="editmenu.html#Join">Join</A>([fudge])
1916 <DD>
1917 <!-- Joins open paths in selected glyphs. If fudge is specified then the endpoints
1918 only need to be within fudge em-units of each other to be merged. -->
1919 選択中のグリフ内の開いたパスを (重なり合った点の所で) 結合します。fudge が指定されている場合は、結合する点同士の距離が fudge ユニットより近ければ、一致しなくても重なっていると見なします。
1920 </DL>
1921 </TD>
1922 </TR>
1923 <TR VALIGN=TOP>
1924 <TD BGCOLOR=yellow><A NAME="K">K</A></TD>
1925 <TD></TD>
1926 </TR>
1927 <TR VALIGN=TOP>
1928 <TD BGCOLOR=yellow><A NAME="L">L</A></TD>
1929 <TD><DL>
1930 <DT>
1931 <A NAME="LoadEncodingFile">L</A>oadEncodingFile(filename)
1932 <DD>
1933 <!-- Reads an encoding file and stores it in FontForge's list of possible encodings.
1934 See Encoding-&gt;<A HREF="encodingmenu.html#Load">LoadEncoding</A> for more
1935 info. -->
1936 エンコーディングファイルを読み込み、FontForge で使用可能なエンコーディングのリストに追加します。より詳しい情報は、<CODE>エンコーディング(<U>N</U>)</CODE>→<CODE><A HREF="encodingmenu.html#Load">エンコーディングを読み込み(<U>L</U>)...</A></CODE>を参照してください。
1937 <DT>
1938 <A NAME="LoadNamelist">L</A>oadNamelist(filename)
1939 <DD>
1940 <!-- Will load the namelist stored in the given file. It can execute with no current
1941 font. -->
1942 指定したファイルに格納されている名前リストを読み込みます。カレントフォントがない状態でも実行できます。
1943 <DT>
1944 <A NAME="LoadNamelistDir">L</A>oadNamelistDir([directory-name])
1945 <DD>
1946 <!-- Searches the given directory for things that look like fontforge namelists
1947 and loads them. If directory is omitted then it will load the default directory.
1948 It can execute with no current font. -->
1949 指定されたディレクトリから FontForge の名前リストらしき物を探して読み込みます。ディレクトリ名を省略した場合、デフォルトのディレクトリから読み込みます。カレントフォントがない状態でも実行できます。
1950 <DT>
1951 <A NAME="LoadPrefs">L</A>oadPrefs()
1952 <DD>
1953 <!-- Loads the user's preferences. This used to happen automatically at startup.
1954 Now it happens automatically when the UI is started, but scripts must request. -->
1955 ユーザのプリファレンスを読み込みます。これはかつてはスクリプトの開始時に自動的に行われていましたが、現在自動的に実行されるのは UI から起動されたときだけで、スクリプトではこの手続きを実行しなければなりません。カレントフォントがない状態でも実行できます。
1956 <DT>
1957 <A NAME="LoadStringFromFile">L</A>oadStringFromFile("filename")
1958 <DD>
1959 <!-- Reads the entire file into a string. Returns a null string for a non-existant
1960 or empty file. The returned string will have enough bytes allocated to hold
1961 the entire file plus one trailing NUL byte. If the file contains a NUL itself,
1962 fontforge will think the string ends there. -->
1963 ファイル全体を文字列に読み込みます。ファイルが存在しないか空である場合は空文字列を返します。返り値の文字列はファイル全体を保持するのに十分なバイト数に加えて末尾の NUL バイトを含むのに十分なバイト数が割り当てられます。もしファイルに NUL 文字そのものが含まれていた場合、FontForge はそこが文字列の終端であると判断します。
1964 <DT>
1965 <A NAME="LoadTableFromFile">L</A>oadTableFromFile(tag,filename)
1966 <DD>
1967 <!-- Both arguments should be strings, the first should be a 4 letter table tag.
1968 The file will be read and preserved in the font as the contents of the table
1969 with the specified tag. Don't use a tag that ff thinks it understands! -->
1970 どちらの引数も文字列でなければならず、最初の引数は 4 文字のテーブルタグでなければなりません。ファイルを読み込み、フォント内に tag で指定された名前のテーブルとして保存されます。ff が知っているテーブル名を tag に指定しないでください!
1971 <DT>
1972 <A NAME="Log">L</A>og(val)
1973 <DD>
1974 <!-- Returns the natural log of val. It can execute with no current font. -->
1975 val の自然対数を返します。カレントフォントがない状態でも実行できます。
1976 </DL>
1977 </TD>
1978 </TR>
1979 <TR VALIGN=TOP>
1980 <TD BGCOLOR=yellow><A NAME="M">M</A></TD>
1981 <TD><DL>
1982 <DT>
1983 <A NAME="MergeFonts" HREF="elementmenu.html#Merge">MergeFonts</A>(other-font-name[,flags])
1984 <DD>
1985 <!-- Loads other-font-name, and extracts any glyphs from it which are not in the
1986 current font and moves them to the current font. The flags argument is the
1987 same as that for Open. Currently the only relevant flag is to say that you
1988 do have a license to use a font with fstype=2. -->
1989 other-font-name で指定したフォントをロードし、そのフォントに含まれているグリフでカレントフォントに含まれていないグリフをすべて取り出してカレントフォントに移動します。flags 引数の解釈は Open 関数と同じです。現在意味のあるフラグは、フォントを開くライセンスを持っていることを示す fstype=2 のみです。
1990 <DT>
1991 <A NAME="MergeKern" HREF="filemenu.html#Merge-kern">MergeKern</A>(filename)
1992 <DD>
1993 <!-- Loads Kerning info out of either an afm or a tfm file and merges it into
1994 the current font. -->
1995 カーニング情報を AFM ファイルまたは TFM ファイルから読み出し、カレントフォントにマージします。
1996 <DT>
1997 <A NAME="MMAxisBounds">M</A>MAxisBounds(axis)
1998 <DD>
1999 <!-- Axis is an integer less than the number of axes in the mm font. Returns an
2000 array containing the lower bound, default value and upper bound. Note each
2001 value is multiplied by 65536 (because they need not be integers on the mac,
2002 and ff doesn't support real values). -->
2003 axis は、マルチプルマスターフォントに含まれる軸の数よりも少ない整数です。下限値、デフォルト値と上限値を含む配列を返します。それぞれの値は 65536 倍されていることにご注意ください (それらは Mac では整数値でなくてはならず、FontForge は実数値をサポートしていないからです)。
2004 <P>
2005 <!-- (The default value is a GX Var concept. FF simulates a reasonable value for
2006 true multiple master fonts). -->
2007 デフォルト値は、GX の Var という概念に相当します。FontForge は本物のマルチプルマスターフォントに対しては妥当な値をシミュレートします。
2008 <DT>
2009 <A NAME="MMAxisNames">M</A>MAxisNames()
2010 <DD>
2011 <!-- Returns an array containing the names of all axes in a multi master set. -->
2012 マルチプルマスターセットに含まれるすべての軸の名前を含む配列を返します。
2013 <DT>
2014 <A NAME="MMBlendToNewFont" HREF="mmmenu.html#NewFont">MMBlendToNewFont</A>(weights)
2015 <DD>
2016 <!-- Weights is an array of integers, one for each axis. Each value should be
2017 65536 times the desired value (to deal with mac blends which tend to be small
2018 real numbers). This command creates a completely new font by blending the
2019 mm font and sets the current font to the new font. -->
2020 weights は整数からなる配列で、1 軸に対し整数 1 個が対応します。それぞれの値は必要な値の 65536 倍でなければなりません (一般に小さな実数となる Mac のブレンドを扱うためです)。このコマンドはマルチプルマスターフォントをブレンドすることによって全く新規にフォントを作成し、新しいフォントをカレントフォントに設定します。
2021 <DT>
2022 <A NAME="MMChangeInstance">M</A>MChangeInstance(instance)
2023 <DD>
2024 <!-- Where instance is either a font name or a small integer. If passed a string
2025 FontForge searches through all fonts in the multi master font set (instance
2026 fonts and the weighted font) and changes the current font to the indicated
2027 one. If passed a small integer, then -1 indicates the weighted font and values
2028 between [0,$mmcount) represent that specific instance in the font set. -->
2029 ここで instance はフォント名か小さな整数のどちらかです。
2030 文字列を渡した場合、FontForge はマルチプルマスターフォントセットから
2031 すべてのフォント (インスタンスフォントと重みづけされたフォント) を検索し、
2032 カレントフォントの名前を指定された物に変更します。
2033 小さな整数を渡したときは、-1 が重みづけされたフォントを表し、
2034 [0,$mmcount) の範囲の値はフォントセット内の特定のインスタンスを表します。
2035 <DT>
2036 <A NAME="MMChangeWeight" HREF="mmmenu.html#DefWeights">MMChangeWeight</A>(weights)
2037 <DD>
2038 <!-- Weights is an array of integers, one for each axis. Each value should be
2039 65536 times the desired value (to deal with mac blends which tend to be small
2040 real numbers). This command changes the current multiple master font to have
2041 a different default weight, and sets that to be the current instance. -->
2042 weights は整数からなる配列で、1 軸に対し整数 1 個が対応します。それぞれの値は必要な値の 65536 倍でなければなりません (一般に小さな実数となる Mac のブレンドを扱うためです)。このコマンドは現在のマルチプルマスターフォントのデフォルトウェイトを異なる値に変更し、それを現在のインスタンスに設定します。
2043 <DT>
2044 <A NAME="MMInstanceNames">M</A>MInstanceNames()
2045 <DD>
2046 <!-- Returns an array containing the names of all instance fonts in a multi master
2047 set. -->
2048 マルチプルマスターセットに含まれるすべてのインスタンスフォントの名前を含む
2049 配列を返します。
2050 <DT>
2051 <A NAME="MMWeightedName">M</A>MWeightedName()
2052 <DD>
2053 <!-- Returns the name of the weighted font in a multi master set. -->
2054 マルチプルマスターセットに含まれる重みづけされたフォントの名前を返します。
2055 <DT>
2056 <A NAME="Move">M</A>ove(delta-x,delta-y)
2057 <DD>
2058 <!-- All selected glyph will have their points moved the given amount.-->
2059 選択中のすべてのグリフに含まれる点を、指定した量だけ移動します。
2060 <DT>
2061 <A NAME="MoveReference">M</A>oveReference(delta-x,delta-y,[refname/ref-unicode]+)
2062 <DD>
2063 <!-- References may be identified either by a string containing the name of the
2064 glyph being refered to, or an integer containing the unicode code point of
2065 the glyph being refered to, there may be an arbetrary (positive) number of
2066 references specified. Each selected glyph will be searched for references
2067 that match the name/unicode-values given, all references found will be moved
2068 by the specified offsets. -->
2069 参照は、参照されるグリフの名前を含む文字列か、参照されるグリフの Unicode 符号位置を含む整数によって指定できます。(1 個以上の) 任意の個数の参照される参照を指定することができます。選択された各文字に対して、引数で指定した名前または Unicode 値にマッチする参照を検索します。見つかったすべての参照は指定したオフセットだけ移動されます。
2070 <BLOCKQUOTE>
2071 <PRE>MoveReference(300,0,"acute",0xb4)
2072 </PRE>
2073 <P>
2074 <!-- Will move any acute or grave references 300 em-units horizontally from where
2075 they currently are-->
2076 はすべての acute または grave への参照を、現在位置から 300 em ユニットだけ右に移動します。
2077 </BLOCKQUOTE>
2078 <DT>
2079 <A NAME="MultipleEncodingsToReferences">M</A>ultipleEncodingsToReferences()
2080 <DD>
2081 <!-- If any selected glyphs have multiple encodings then one of these encodings
2082 will be chosen as the real one. For each of the others a new glyph will be
2083 created containing a reference to the base glyph. This sort of undoes the
2084 effect of <A HREF="#SameGlyphAs">SameGlyphAs</A>. -->
2085 選択中のグリフの中に複数のエンコーディングをもつ物がある場合、それらのエンコーディングのうちから 1 個を本物として選出します。その以外に対してはそれぞれに 1 個ずつ、元のグリフへの参照を含む新しいグリフを作成します。これは、<A HREF="#SameGlyphAs">SameGlyphAs</A> の操作に対するアンドゥの一種とも言えます。
2086 <P>
2087 <!-- MetaData, such as advanced typographic features, are not copied. -->
2088 高度組版機能などのメタデータはコピーされません。
2089 </DL>
2090 </TD>
2091 </TR>
2092 <TR VALIGN=TOP>
2093 <TD BGCOLOR=yellow><A NAME="N">N</A></TD>
2094 <TD><DL>
2095 <DT>
2096 <A NAME="NearlyHvCps">N</A>earlyHvCps([error[,err-denom]])
2097 <DD>
2098 <!-- Checks for control points which are almost, but not quite horzontal or vertical
2099 (where almost means (say) that <CODE>abs( (control point).x - point.x ) &lt;
2100 error</CODE>, where error is either: -->
2101 水平か垂直に非常に近いものの、完全には一致しない位置に制御点があるかどうかをチェックします (これは、(例えば) <CODE>abs( (control point).x - point.x ) &lt; error</CODE> であることとほとんど同義です。) ここで error は以下のいずれかです;
2102 <TABLE CELLPADDING="2">
2103 <TR>
2104 <!-- <TD>.1</TD>-->
2105 <TD>0.1</TD>
2106 <!-- <TD>if no arguments are given</TD> -->
2107 <TD>引数を指定していない場合</TD>
2108 </TR>
2109 <TR>
2110 <!-- <TD>first-arg</TD>-->
2111 <TD>最初の引数</TD>
2112 <!-- <TD>if one argument is given</TD> -->
2113 <TD>引数を 1 個だけ指定した場合</TD>
2114 </TR>
2115 <TR>
2116 <!-- <TD>first-arg/second-arg</TD> -->
2117 <TD>(最初の引数) / (2 番目の引数)</TD>
2118 <!-- <TD>if two arguments are given</TD> -->
2119 <TD>引数を 2 個指定している場合</TD>
2120 </TR>
2121 </TABLE>
2122 <DT>
2123 <A NAME="NearlyHvLines">N</A>earlyHvLines([error[,err-denom]])
2124 <DD>
2125 <!-- Checks for lines which are almost, but not quite horzontal or vertical (where
2126 almost means (say) that <CODE>abs( (end point).x - (start point).x ) &lt;
2127 error</CODE>, where error is either: -->
2128 水平線か垂直線に非常に近いものの、完全には一致しない線があるかどうかをチェックします (これは、(例えば) <CODE>abs( (end point).x - (start point).x ) &lt; error</CODE> であることとほとんど同義です。) ここで error は以下のいずれかです;
2129 <TABLE CELLPADDING="2">
2130 <TR>
2131 <!-- <TD>.1</TD>-->
2132 <TD>0.1</TD>
2133 <!-- <TD>if no arguments are given</TD> -->
2134 <TD>引数を指定していない場合</TD>
2135 </TR>
2136 <TR>
2137 <!-- <TD>first-arg</TD>-->
2138 <TD>最初の引数</TD>
2139 <!-- <TD>if one argument is given</TD> -->
2140 <TD>引数を 1 個だけ指定した場合</TD>
2141 </TR>
2142 <TR>
2143 <!-- <TD>first-arg/second-arg</TD> -->
2144 <TD>(最初の引数) / (2 番目の引数)</TD>
2145 <!-- <TD>if two arguments are given</TD> -->
2146 <TD>引数を 2 個指定している場合</TD>
2147 </TR>
2148 </TABLE>
2149 <DT>
2150 <A NAME="NearlyLines">N</A>earlyLines(error)
2151 <DD>
2152 <!-- Checks for splines that are nearly linear, and makes them so. A spline is
2153 nearly linear if the maximum deviation of the spline from the line between
2154 the spline's endpoints is less than error. -->
2155 ほとんど直線に近いスプラインを検出し、直線に変換します。スプラインをほとんど直線に近いと判定するのは、端点同士を結ぶ線分との乖離が error よりも小さい場合です。
2156 <DT>
2157 <A NAME="New" HREF="filemenu.html#New">New</A>()
2158 <DD>
2159 <!-- This creates a new font. It can execute with no current font. -->
2160 新しいフォントを作成します。これはカレントフォントがない状態でも実行できます。
2161 <DT>
2162 <A NAME="NonLinear">NonLinearTransform</A>(x-expression,y-expression)
2163 <DD>
2164 <!-- Takes two string arguments which must contain valid expressions of x and
2165 y and transforms all selected glyphs using those expressions. -->
2166 x と y に対する正しい式を含む 2 個の文字列引数をとり、それらの式を用いて選択中のすべてのグリフを変換します。
2167 <BLOCKQUOTE>
2168 <PRE>&lt;e0&gt; := "x" | "y" | "-" &lt;e0&gt; | "!" &lt;e0&gt; | "(" &lt;expr&gt; ")" |
2169 "sin" "(" &lt;expr&gt; ")" | "cos" "(" &lt;expr&gt; ")" | "tan" "(" &lt;expr&gt; ")" |
2170 "log" "(" &lt;expr&gt; ")" | "exp" "(" &lt;expr&gt; ")" | "sqrt" "(" &lt;expr&gt; ")" |
2171 "abs" "(" &lt;expr&gt; ")" |
2172 "rint" "(" &lt;expr&gt; ")" | "float" "(" &lt;expr&gt; ")" | "ceil" "(" &lt;expr&gt; ")"
2173 &lt;e1&gt; := &lt;e0&gt; "^" &lt;e1&gt;
2174 &lt;e2&gt; := &lt;e1&gt; "*" &lt;e2&gt; | &lt;e1&gt; "/" &lt;e2&gt; | &lt;e1&gt; "%" &lt;e2&gt;
2175 &lt;e3&gt; := &lt;e2&gt; "+" &lt;e3&gt; | &lt;e2&gt; "-" &lt;e3&gt;
2176 &lt;e4&gt; := &lt;e3&gt; "==" &lt;e4&gt; | &lt;e3&gt; "!=" &lt;e4&gt; |
2177 &lt;e3&gt; "&gt;=" &lt;e4&gt; | &lt;e3&gt; "&gt;" &lt;e4&gt; |
2178 &lt;e3&gt; "&lt;=" &lt;e4&gt; | &lt;e3&gt; "&lt;" &lt;e4&gt;
2179 &lt;e5&gt; := &lt;e4&gt; "&amp;&amp;" &lt;e5&gt; | &lt;e4&gt; "||" &lt;e5&gt;
2180 &lt;expr&gt; := &lt;e5&gt; "?" &lt;expr&gt; ":"
2181
2182 </PRE>
2183 </BLOCKQUOTE>
2184 <P>
2185 <!-- Example: To do a perspective transformation with a vanishing point at (200,300):
2186 例: 消失点を (200,300) にもつ透視変換: -->
2187 <BLOCKQUOTE>
2188 <PRE>NonLinearTrans("200+(x-200)*abs(y-300)/300","y")
2189 </PRE>
2190 </BLOCKQUOTE>
2191 <P>
2192 <!-- This command is not available in the default build, you must modify the file
2193 <CODE>configure-fontforge.h</CODE> and then rebuild FontForge. -->
2194 このコマンドはデフォルトのビルドでは使用できません。<CODE>configure-fontforge.h</CODE> を変更して、FontForge を再構築してください。
2195 </DL>
2196 </TD>
2197 </TR>
2198 <TR VALIGN=TOP>
2199 <TD BGCOLOR=yellow><A NAME="O">O</A></TD>
2200 <TD><DL>
2201 <DT>
2202 <A NAME="Open">O</A>pen(filename[,flags])
2203 <DD>
2204 <!-- This makes the font named by filename be the current font. If filename has
2205 not yet been loaded into memory it will be loaded now. It can execute without
2206 a current font. -->
2207 この手続きは、名前 filename をもつフォントをカレントフォントにします。
2208 filename がまだメモリに読み込まれていないならば、この時読み込まれます。
2209 カレントフォントが無い状態でも実行することができます。
2210 <P>
2211 <!-- When loading from a ttc file (mac suitcase, dfont, svg, etc), a particular
2212 font may be selected by placing the fontname in parens and appending it to
2213 the filename, as <CODE>Open("gulim.ttc(Dotum)")</CODE><BR> -->
2214 TTC ファイル (Mac のフォントスーツケース、.dfont, SVG など)
2215 から読み込む時は、フォント名を括弧で囲んで、ファイル名の後ろに付け加えて
2216 <CODE>Open("gulim.ttc(Dotum)")</CODE> のように指定すれば、
2217 特定のフォントを選択することができます。<BR>
2218 <!-- The optional flags argument current has only one flag in it: -->
2219 現時点で存在する省略可能なフラグ引数は、以下の 1 個のフラグのみを含みます:<BR>
2220 <UL>
2221 <LI>
2222 <!-- 1 =&gt; the user does have the appropriate license to examine the font no
2223 matter what the fstype setting is. -->
2224 1 ⇒ ユーザは fstype の設定に無関係に、フォントを操作することができる合法なライセンスを持っている
2225 </UL>
2226 <DT>
2227 <A NAME="Ord">O</A>rd(string[,pos])
2228 <DD>
2229 <!-- Returns an array of integers representing the encoding of the characters
2230 in the string. If pos is given it should be an integer less than the string
2231 length and the function will return the integer encoding of that character
2232 in the string. -->
2233 文字列内に含まれる各文字のエンコーディングを表す整数の配列を返します。pos を指定する場合は、string の長さより小さい整数でなくてはならず、関数は文字列 string 内の位置 pos にある文字の文字コードを整数で返します。
2234 <DT>
2235 <A NAME="Outline" HREF="elementmenu.html#Outline">Outline</A>(width)
2236 <DD>
2237 <!-- Strokes all selected glyphs with a stroke of the specified width (internal
2238 to the glyphs). The bounding box of the glyph will not change. In other words
2239 it produces what the mac calls the "Outline Style". -->
2240 選択中のすべてのグリフを指定された幅で (グリフの内側で) 縁どりします。グリフのバウンディングボックスは変更されません。言い替えれば、Mac でいう“Outline Style”を生成します。
2241 <DT>
2242 <A NAME="OverlapIntersect">O</A>verlapIntersect()
2243 <DD>
2244 <!-- Removes everything but the intersection.-->
2245 交差部以外のすべてを除去します。
2246 </DL>
2247 </TD>
2248 </TR>
2249 <TR VALIGN=TOP>
2250 <TD BGCOLOR=yellow><A NAME="P">P</A></TD>
2251 <TD><DL>
2252 <DT>
2253 <A NAME="Paste" HREF="editmenu.html#PasteInto">Paste Into</A>
2254 <DD>
2255 <!-- Copies the clipboard into the current font (merging with what was there before) -->
2256 クリップボードの内容を、カレントフォントの選択中のグリフにコピーします
2257 (今まであった内容に追加されます)
2258 <DT>
2259 <A NAME="Paste" HREF="editmenu.html#Paste">Paste</A>
2260 <DD>
2261 <!-- Copies the clipboard into the selected glyphs of the current font (removing
2262 what was there before) -->
2263 クリップボードの内容を、カレントフォントの選択中のグリフにコピーします (そこに今まであった内容は削除されます)。
2264 <DT>
2265 <A NAME="PasteWithOffset">P</A>asteWithOffset(xoff,yoff)
2266 <DD>
2267 <!-- Translates the clipboard by xoff,yoff before doing a PasteInto(). Can be
2268 used to build accented glyphs. -->
2269 PasteInto() を行う前に、クリップボードの中身を (xoff, yoff) だけ平行移動します。アクセントつきグリフを構築するのに使用できます。
2270 <DT>
2271 <A NAME="PositionReference">P</A>ositionReference(x,y,[refname/ref-unicode]+)
2272 <DD>
2273 <!-- References may be identified either by a string containing the name of the
2274 glyph being refered to, or an integer containing the unicode code point of
2275 the glyph being refered to, there may be an arbetrary (positive) number of
2276 references specified. Each selected glyph will be searched for references
2277 that match the name/unicode-values given, all references found will be at
2278 the specified location. -->
2279 参照は、参照されるグリフの名前を含む文字列か、参照されるグリフの Unicode 符号位置を含む整数によって指定できます。(1 個以上の) 任意の個数の参照される参照を指定することができます。選択された各文字に対して、引数で指定した名前または Unicode 値にマッチする参照を検索します。見つかったすべての参照は指定した位置に変更されます。
2280 <BLOCKQUOTE>
2281 <PRE>PositionReference(0,0,"circumflex")
2282 </PRE>
2283 <P>
2284 <!-- Will position any references to circumflex so that they are where the base
2285 circumflex is -->
2286 はすべての circumflex への参照を基底文字 circumflex の位置に移動します。
2287 </BLOCKQUOTE>
2288 <DT>
2289 <A NAME="PostNotice">P</A>ostNotice(str)
2290 <DD>
2291 <!-- When run from the UI will put up a window displaying the string (the window
2292 will not block the program and will disappear after a minute or so). When
2293 run from the command line will write the string to stderr. It can execute
2294 with no current font. -->
2295 UI から実行した時は、文字列を表示するウィンドウを開きます (ウィンドウはプログラムを停止せず、1 分ほど経過すると消滅します)。コマンドラインから起動した時は、文字列を標準エラー出力に書き出します。カレントフォントがない状態でも実行できます。
2296 <DT>
2297 <A NAME="Pow">P</A>ow(val1,val2)
2298 <DD>
2299 <!-- Returns val1<SUP>val2</SUP>. It can execute with no current font. -->
2300 val1 の val2 乗を返します。カレントフォントがない状態でも実行できます。
2301 <DT>
2302 PreloadCidmap(filename,registry,ordering,supplement)
2303 <DD>
2304 <!-- Loads a user defined cidmap file for the specified ROS. All arguments except
2305 the last should be strings while supplement should be an integer. This can
2306 execute without a font loaded. -->
2307 指定した ROS の組合せに対するユーザ定義の cidmap ファイルを読み込みます。最後の引数以外は文字列で、supplement は整数でなければなりません。これはフォントが読み込まれていなくても実行することができます。
2308 <DT>
2309 <A NAME="Print">P</A>rint(arg1,arg2,arg3,...)
2310 <DD>
2311 <!-- This corresponds to no menu item. It will print all of its arguments to stdout.
2312 It can execute with no current font. -->
2313 メニュー項目には対応する項目はありません。与えられた全ての引数を標準出力へ印字します。カレントフォントがない状態でも実行できます。
2314 <DT>
2315 <A NAME="PrintFont" HREF="filemenu.html#Print">PrintFont</A>(type[,pointsize[,sample-text/filename[,output-file]]])
2316 <DD>
2317 <!-- Prints the current font according to the
2318 <A HREF="#PrintSetup">PrintSetup</A>. The values for type are
2319 (meanings are described in the <A HREF="print.html">section on printing</A>): -->
2320 カレントフォントを <A HREF="#PrintSetup">PrintSetup</A> の設定に従って印刷します。type の値は以下のとおりです (意味は<A HREF="print.html">印刷に関するセクション</A>の記述のとおりです):
2321 <UL>
2322 <LI>
2323 <!-- 0 =&gt; Prints a full font display at the given pointsize -->
2324 0 ⇒ pointsize で指定された大きさでフォント全体を印刷します。
2325 <LI>
2326 <!-- 1 =&gt; Prints selected glyphs to fill page -->
2327 1 ⇒ 選択中のグリフの一覧をページに収まるように印刷します。
2328 <LI>
2329 <!-- 2 =&gt; Prints selected glyphs at multiple pointsizes -->
2330 2 ⇒ 選択中のグリフを、複数のポイントサイズで印刷します。
2331 <LI>
2332 <!-- 3 =&gt; Prints a text sample read from a file at the given pointsize(s) -->
2333 3 ⇒ ファイルから読み込んだサンプルテキストを pointsize で指定された大きさで印刷します。
2334 <LI>
2335 <!-- 4 =&gt; Prints a text sample, except that instead of treating the third argument
2336 as a file name it represents the sample itself (in utf-8 encoding) -->
2337 4 ⇒ テキストサンプルを印字します。3 番目の引数をファイル名ではなく、(UTF-8 で符号化された) サンプルそのものを表すものとして扱います。
2338 </UL>
2339 <P>
2340 <!-- The pointsize is either a single integer or an array of integers. It is only
2341 meaningful for types 0, 3 and 4. If omitted or set to 0 a default value will
2342 be chosen. The font display will only look at one value. -->
2343 pointsize は 1 個の整数か、整数からなる配列 1 個のいずれかです。この値の指定は type が 0, 3 または 4 の時のみに意味を持ちます。省略時または 0 を指定した時はデフォルト値が使用されます。フォント表示の時は、値を 1 個しか参照しません。
2344 <P>
2345 <!-- If you selected print type 3 then you may provide the name of a file containing
2346 sample text. This file may either be in ucs2 format (preceded by a 0xfeff
2347 value), or in the current default encoding. A null string or an omitted argument
2348 will cause FontForge to use a default value. -->
2349 type に 3 を指定した時は、サンプルテキストを含むファイルの名前を指定することができます。このファイルは UCS2 フォーマット (頭に 0xfeff がつきます) か、現在のデフォルトエンコーディングが使用できます。空の文字列を指定するか、引数を省略した場合には、FontForge はデフォルト値を使用します。
2350 <P>
2351 <!-- If your PrintSetup specified printing to a file then the fourth argument
2352 provides the filename of the output file.-->
2353 <!-- If your PrintSetup specified printing to a file (either PostScript or pdf)
2354 then the fourth argument provides the filename of the output file. -->
2355 環境設定の PrintSetup がファイル (PostScript または PDF) に出力するように指定されている場合、4 番目の引数で出力ファイルのファイル名を指定します。
2356 <DT>
2357 <A NAME="PrintSetup">PrintSetup</A>(type,[printer[,width,height]])
2358 <DD>
2359 <!-- Allows you to configure the print command. Type may be a value between 0
2360 and 4 -->
2361 印刷コマンドの環境設定ができます。type は 0〜4 の範囲の値で、以下のように解釈されます。
2362 <UL>
2363 <LI>
2364 <!-- 0 =&gt; print with lp -->
2365 0 ⇒ lp で印刷
2366 <LI>
2367 <!-- 1 =&gt; print with lpr -->
2368 1 ⇒ lpr で印刷
2369 <LI>
2370 <!-- 2 =&gt; output to ghostview -->
2371 2 ⇒ ghostview に出力
2372 <LI>
2373 <!-- 3 =&gt; output to PostScript file -->
2374 3 ⇒ PostScript ファイルに出力
2375 <LI>
2376 <!-- 4 =&gt; other printing command -->
2377 4 ⇒ その他の印刷コマンド
2378 <LI>
2379 <!-- 5 =&gt; output to a pdf file -->
2380 5 ⇒ PDF ファイルに出力
2381 </UL>
2382 <P>
2383 <!-- If the type is 4 (other) and the second argument is specified, then the second
2384 argument should be a string containing the "other" printing command.<BR>
2385 If the type is 0 (lp) or 1 (lpr) and the second argument is specified, then
2386 the second argument should contain the name of a laser printer<BR>
2387 (If the second argument is a null string neither will be set). -->
2388 type が 4 (その他) で 2 番目の引数が指定されている場合、2 番目の引数は「その他の」印刷コマンドを含む文字列でなければなりません。<BR>
2389 type が 0 (lp) または 1 (lpr) で 2 番目の引数が指定されている場合、2 番目の引数はレーザプリンタの名前を含むものと解釈されます (2 番目の引数が空文字列ならば、何もセットされません)
2390 <P>
2391 <!-- The third and fourth arguments should specify the page width and height
2392 respectively. Units are in 1/72 inches (almost points), so 8.5x11" paper
2393 is 612,792 and A4 paper is (about) 595,842. -->
2394 3 番目と 4 番目の引数はそれぞれページ幅と高さを指定します。単位は 1/72 インチ (1 ポイントにほとんど等しい) なので、8.5×11 インチの用紙は 612, 792 となり、A4 の用紙は (約) 595, 842 となります。
2395 <DT>
2396 <A NAME="PrivateToCvt">P</A>rivateToCvt()
2397 <DD>
2398 <!-- Adds the standard numeric entries in the Private dictionary into the cvt
2399 table. -->
2400 Private 辞書情報に含まれる標準の数値項目を cvt テーブルに追加します。
2401 </DL>
2402 </TD>
2403 </TR>
2404 <TR VALIGN=TOP>
2405 <TD BGCOLOR=yellow><A NAME="Q">Q</A></TD>
2406 <TD><DL>
2407 <DT>
2408 <A NAME="Quit" HREF="filemenu.html#Quit">Quit</A>(status)
2409 <DD>
2410 <!-- Causes FontForge to exit with the given status (no attempt is made to save
2411 unsaved files). This command can execute with no current font. -->
2412 status を終了ステータスとして FontForge を終了します。(保存していないフォントを保存するように促すことはしません)。カレントフォントが無い状態でも実行可能です。
2413 </DL>
2414 </TD>
2415 </TR>
2416 <TR VALIGN=TOP>
2417 <TD BGCOLOR=yellow><A NAME="R">R</A></TD>
2418 <TD><DL>
2419 <DT>
2420 <A NAME="Rand">R</A>and()
2421 <DD>
2422 <!-- returns a random integer. It can execute with no current font. -->
2423 ランダムな整数を返します。カレントフォントがない状態でも実行可能です。
2424 <DT>
2425 <A NAME="ReadOtherSubrsFile">ReadOtherSubrsFile</A>(filename)
2426 <DD>
2427 <!-- Reads new PostScript subroutines to be used in the OtherSubrs array of a
2428 type1 font. The file format is a little more complicated than it should be
2429 (because I can't figure out how to parse the OtherSubrs array into individual
2430 subroutines). -->
2431 Type 1 フォントのOtherSubrs 配列で使用するための新しい PostScript サブルーチンを読み込みます。ファイルフォーマットは必要以上に複雑になっているところが少々あります (なぜなら、OtherSubrs 配列を個々のサブルーチン毎に解析する方法が思いつかないからです)。
2432 <UL>
2433 <LI>
2434 <!-- The subroutine list should not be enclosed in a [ ] pair -->
2435 サブルーチンリストは [ ] で囲まれていてはならない。
2436 <LI>
2437 <!-- Each subroutine should be preceded by a line starting with '%%%%' (there
2438 may be more stuff after that) -->
2439 各サブルーチンの前には&lsquo;%%%%&rsquo;(この後ろにさらに文字があってもよい) で始まる行がついていなければならない。
2440 <LI>
2441 <!-- Subroutines should come in the obvious order, and must have the expected
2442 meaning. -->
2443 サブルーチンは自明な順序で配置せねばならず、期待される意味をもっていなければならない。
2444 <LI>
2445 <!-- If you don't wish to support flex hints set the first three subroutines to
2446 "{}" -->
2447 flex ヒントを使いたくない場合、最初の 3 個のサブルーチンは "{}" にセットすること。
2448 <LI>
2449 <!-- You may specify at most 14 subroutines (0-13) -->
2450 最大 14 個のサブルーチン (0〜13) が指定できる。
2451 <LI>
2452 <!-- Any text before the first subroutine will be treated as a copyright notice. -->
2453 最初のサブルーチンの前の任意のテキストは著作権表示として扱われる。
2454 </UL>
2455 <BLOCKQUOTE>
2456 <PRE>% Copyright (c) 1987-1990 Adobe Systems Incorporated.
2457 % All Rights Reserved
2458 % This code to be used for Flex and Hint Replacement
2459 % Version 1.1
2460 %%%%%%
2461 {systemdict /internaldict known
2462 1183615869 systemdict /internaldict get exec
2463 ...
2464 %%%%%%
2465 {gsave currentpoint newpath moveto} executeonly
2466 %%%%%%
2467 {currentpoint grestore gsave currentpoint newpath moveto} executeonly
2468 %%%%%%
2469 {systemdict /internaldict known not
2470 {pop 3}
2471 ...
2472 </PRE>
2473 </BLOCKQUOTE>
2474 <P>
2475 <!-- It can execute with no current font. -->
2476 カレントフォントがない状態でも実行することができます。
2477 <DT>
2478 <A NAME="Real">R</A>eal(int)
2479 <DD>
2480 <!-- Converts an integer to a real number. It can execute with no current font. -->
2481 整数を実数に変換します。カレントフォントがない状態でも実行できます。
2482 <DT>
2483 <A NAME="Reencode" HREF="encodingmenu.html">Reencode</A>(encoding-name[,force])
2484 <DD>
2485 <!-- Reencodes the current font into the given encoding which may be:<BR> -->
2486 カレントフォントを、指定された以下のどれかのエンコーディングに並べ替えます。<BR>
2487 compacted,original,<BR>
2488 iso8859-1, isolatin1, latin1, iso8859-2, latin2, iso8859-3, latin3, iso8859-4,
2489 latin4, iso8859-5, iso8859-6, iso8859-7, iso8859-8, iso8859-9, iso8859-10,
2490 isothai, iso8859-13, iso8859-14, iso8859-15, latin0, koi8-r, jis201, jisx0201,
2491 AdobeStandardEncoding, win, mac, symbol, wansung, big5, johab, jis208, jisx0208,
2492 jis212, jisx0212, sjis, gh2312, gb2312packed, unicode, iso10646-1,
2493 <!-- TeX-Base-Encoding, one of the user defined encodings.<BR>
2494 TeX-Base-Encoding, ユーザ定義の符号化方式のどれか一つ。<BR>
2495 <!-- You may also specify that you want to force the encoding to be the given
2496 one.<BR> -->
2497 現在の文字の並びを、強制的に与えられたエンコーディングとして解釈するように指定することもできます。<BR>
2498 <!-- Note: some encodings are specified by glyph names (ie. user defined encodings
2499 specified as postscript encoding arrays) others are specified as lists of
2500 unicode code points (most built in encodings except for AdobeStandard and
2501 TeX, user defined encodings specified by codepoints). If you reencode to
2502 an encoding defined by glyph names, then ff will first move glyphs to the
2503 appropriate slots, and then force any glyphs with the wrong name to have
2504 the correct one. The most obvious example of this is the fi ligature:
2505 AdobeStandard says it should be named "fi", modern fonts tend to call it
2506 "f_i". Reencoding to AdobeStandard will move this glyph to the right slot,
2507 and then name it "fi". -->
2508 注意: グリフ名によって指定されるエンコーディングがいくつかあります (例えば、ユーザ定義のエンコーディングは PostScript エンコーディング配列として指定されます) が、その他の物は Unicode の符号位置のリストとして指定されます (AdobeStandard および TeX、符号位置で指定したユーザ定義のエンコーディングを除くほとんど全ての組み込みエンコーディングの場合)。グリフ名によって定義されたエンコーディングを再符号化した時、ff は最初にグリフを適切なスロットに移動し、次に、不正な名前を持つ全てのグリフを強制的に正しい名前に変更します。この最も明らかな例は fi 合字です: AdobeStandard は、これは“fi”と命名しなければならないとしていますが、最近のフォントでは“f_i”と呼ぶのが一般的です。AdobeStandard に符号化変換を行うとグリフは正しい位置に移動され、その後に“fi”という名前に変更されます。
2509 <DT>
2510 <A NAME="RemoveAllKerns" HREF="metricsmenu.html#Remove">RemoveAllKerns</A>()
2511 <DD>
2512 <!-- Removes all kern pairs and classes from the current font. -->
2513 カレントフォントからすべてのカーニングペアとカーニングクラスを削除します。
2514 <DT>
2515 <A NAME="RemoveAllVKerns" HREF="metricsmenu.html#VRemove">RemoveAllVKerns</A>()
2516 <DD>
2517 <!-- Removes all vertical kern pairs and classes from the current font. -->
2518 カレントフォントからすべての縦書き用のカーニングペアとカーニングクラスを削除します。
2519 <DT>
2520 <A NAME="RemoveAnchorClass">R</A>emoveAnchorClass(name)
2521 <DD>
2522 <!-- Removes the named AnchorClass (and all associated points) from the font. -->
2523 アンカークラス (および、それに伴うすべての点) をフォントから削除します。
2524 <DT>
2525 <A NAME="RemoveATT">R</A>emoveATT(type,script-lang,tag)
2526 <DD>
2527 <!-- Removes any feature tags which match the arguments (which are essentially
2528 the same as <A HREF="#AddATT">AddAAT</A>, except that any of them may be
2529 "*" which will match anything). -->
2530 引数に一致する任意の機能タグを削除します (引数は基本的に <A HREF="#AddATT">AddAAT</A> と同じですが、何にでもマッチする "*" を使用できる点が異なります)
2531 <DT>
2532 <A NAME="RemoveDetachedGlyphs">RemoveDetachedGlyphs</A>()
2533 <DD>
2534 <!-- If this font contains any glyphs which do not have an encoding slot then
2535 those glyphs will be removed from the font. In other words any glyph not
2536 displayed in the fontview will be removed. -->
2537 現在のフォントにエンコーディングスロットを含まないグリフがあるならば、それらのグリフをフォントから取り除きます。言い替えれば、フォントビューで表示されないフォントは削除されます。
2538 <DT>
2539 <A NAME="RemoveOverlap" HREF="elementmenu.html#Remove">RemoveOverlap</A>()
2540 <DD>
2541 <!-- Does the obvious.-->
2542 その名のとおりです。
2543 <DT>
2544 <A NAME="RemovePreservedTable">R</A>emovePreservedTable(tag)
2545 <DD>
2546 <!-- Searches for a preserved table with the given tag, and removes it from the
2547 font. -->
2548 tag で指定された保存されたテーブルを検索し、フォントから削除します。
2549 <DT>
2550 <A NAME="RenameGlyphs" HREF="encodingmenu.html#RenameGlyphs">RenameGlyphs</A>(namelist-name)
2551 <DD>
2552 <!-- Renames all the glyphs in the current font according to the namelist. -->
2553 引数で指定した名前リストに含まれるすべてのグリフの名前を変更します。
2554 <DT>
2555 <A NAME="ReplaceCharCounterMasks">R</A>eplaceCharCounterMasks(array)
2556 <DD>
2557 <!-- Deprecated name for
2558 <A HREF="#ReplaceGlyphCounterMasks">ReplaceGlyphCounterMasks</A> -->
2559 <A HREF="#ReplaceGlyphCounterMasks">ReplaceGlyphCounterMasks</A> の廃止予定の名前です。
2560 <DT>
2561 <A NAME="ReplaceGlyphCounterMasks">R</A>eplaceGlyphCounterMasks(array)
2562 <DD>
2563 <!-- This requires that there be exactly one glyph selected. It will create a
2564 set of counter masks for that glyph. The single argument must be an array
2565 of twelve element arrays of integers (in c this would be "int array[][12]").
2566 This is the format of a type2 counter mask. The number of elements in the
2567 top level array is the number of counter groups to be specified. The nested
2568 array thus corresponds to a counter mask, and is treated as an array of bytes.
2569 Each bit in the byte specifies whether the corresponding hint is active in
2570 this counter. (there are at most 96 hints, so at most 12 bytes).
2571 Array[i][0]&amp;0x80 corresponds to the first horizontal stem hint,
2572 Array[i][0]&amp;0x40 corresponds to the second, Array[i][1]&amp;0x80 corresponds
2573 to the eighth hint, etc. -->
2574 これを呼び出すには、ちょうど 1 個のグリフを選択している必要があります。そのグリフに対し、一連のカウンターマスクを作成します。1 個だけ指定できる引数は整数 12 個の配列からなる配列です (C で書けば、int array[][12] となるでしょう)。これは type2 カウンターマスクのフォーマットです。トップレベルの配列要素の個数は、設定するカウンターグループの個数です。ここで内側の配列は、カウンターマスクに対応し、1 個のバイト配列として扱われます。 バイト内の各ビットは、対応するヒントがこのカウンター内でアクティブかどうかを指定します。(ヒントは最大で 96 個なので、最大 12 バイトとなります)。Array[i][0]&amp;0x80 は最初の水平ステムヒントに対応し、Array[i][0]&amp;0x40 が 2 番目、Array[i][1]&amp;0x80 が 8 番目という要領で対応します。
2575 <DT>
2576 <A NAME="ReplaceCvtAt">R</A>eplaceCvtAt(index,value)
2577 <DD>
2578 <!-- Change the cvt table at the given index to have the new value.-->
2579 cvt テーブルの index 番目の項目に value で指定した新しい値を設定します。
2580 <DT>
2581 <A NAME="ReplaceWithReference" HREF="editmenu.html#ReplaceRef">ReplaceWithReference</A>([fudge])
2582 <DD>
2583 <!-- Finds any glyph which contains an inline copy of one of the selected glyphs,
2584 and converts that copy into a reference to the appropriate glyph. Selection
2585 is changed to the set of glyphs which the command alters. -->
2586 選択中のグリフのインラインコピーを含むすべてのグリフを検出し、それらを適切なグリフへの参照に変換します。実行後、選択中の文字の一覧はコマンドによって変更された文字の一覧に切替えられます。
2587 <P>
2588 <!-- If specified the fudge argument specifies the error allowed for coordinate
2589 differences. The fudge argument may be either a real number or two integers
2590 where the first specifies the numerator and the second the denominator of
2591 the fudge (=arg1/arg2). Left over from the days when ff did not support real
2592 numbers. -->
2593 引数 fudge を指定すると、座標値の誤差として許される距離を指定することができます。引数 fudge は実数または 2 個の整数のどちらかの形で指定でき、公社の場合最初の整数が fudge の分子、2 番目の整数が分母となります (fudge = arg1/arg2)。実数をサポートしていなかった頃の名残です。
2594 <DT>
2595 <A NAME="Rotate">R</A>otate(angle[,ox,oy])
2596 <DD>
2597 <!-- Rotates all selected glyph specified number of degrees. If the last two
2598 args are specified they provide the origin of the rotation, otherwise the
2599 center of the glyph is used. -->
2600 選択中のすべてのグリフを指定された度数だけ回転します。最後の 2 個の引数が指定されている場合、その点が回転の中心となります。指定しない場合、グリフの上下・左右の中心を使用します。
2601 <DT>
2602 <A NAME="Round">R</A>ound(real)
2603 <DD>
2604 <!-- Converts a real number to an integer by rounding to the nearest integer.
2605 It can execute with no current font.<BR>
2606 See Also <A HREF="#Ceil">Ceil</A>, <A HREF="#Int">Int</A>,
2607 <A HREF="#Floor">Floor</A> -->
2608 実数を最も近い整数値に丸めて、整数に変換します。カレントフォントがない状態でも実行できます。<BR>
2609 <A HREF="#Ceil">Ceil</A>, <A HREF="#Int">Int</A>, <A HREF="#Floor">Floor</A> も参照してください。
2610 <DT>
2611 <A NAME="RoundToCluster" HREF="elementmenu.html#Cluster">RoundToCluster</A>([within[,max]])
2612 <DD>
2613 <!-- The first two provide a fraction that indicates a value within which similar
2614 coordinates will be bundled together. Max indicates how many "within"s from
2615 the center point it will go if there are a chain of points each within "within"
2616 of the previous one. So -->
2617 最初の 2 個の引数は、近い座標を互いにまとめる値を示します。max は前の点から距離“within”以内に含まれる点の連鎖があるときに、中心点からの何個までの“within”を纏めるかを指定します。例えば
2618 <BLOCKQUOTE>
2619 <PRE> RoundToCluster(.1,.5)
2620 </PRE>
2621 </BLOCKQUOTE>
2622 <P>
2623 <!-- Will merge coordinates within .1 em-unit of each other. A sequence like
2624 <CODE>-.1,-.05,0,.05,.1,.15</CODE> will all be merged together because each
2625 is within .1 of the next, and none is more than .5 from the center. -->
2626 は、相互に 0.1 em ユニット以内の距離にある座標値をまとめます。<CODE>-0.1,-0.05,0,0.05,0.1,0.15</CODE> のような並びはすべてまとめられます。これは、各々が次の 0.1 以内にあり、どれも中心から 5 個以上離れていないからです。
2627 <DT>
2628 <A NAME="RoundToInt" HREF="elementmenu.html#Round">RoundToInt</A>([factor])
2629 <DD>
2630 <!-- Rounds all points/hints/reference-offsets to be integers. If the "factor"
2631 argument is specified then it rounds like <CODE>rint(factor * x) /
2632 factor</CODE>, in other words if you set factor to 100 then it will round
2633 to hundredths. -->
2634 すべての点/ヒント/参照オフセットの座標値を整数に丸めます。引数“factor”を指定した場合、<CODE>rint(factor * x) / factor</CODE> の式に従って丸めを行います。要するに、factor を 100 に設定すると 100 分の 1 単位で座標値を丸めます。
2635 </DL>
2636 </TD>
2637 </TR>
2638 <TR VALIGN=TOP>
2639 <TD BGCOLOR=yellow><A NAME="S">S</A></TD>
2640 <TD><DL>
2641 <DT>
2642 <A NAME="SameGlyphAs" HREF="editmenu.html#SameGlyphAs">SameGlyphAs</A>
2643 <DD>
2644 <!-- If the clipboard contains a reference to a single glyph then this makes all
2645 selected glyphs refer to that one. -->
2646 クリップボードに 1 個のグリフへの参照が含まれているときにこのコマンドを実行すると、選択中のすべてのグリフがそのグリフを参照するようになります。
2647 <P>
2648 <!-- Adobe suggests that you avoid this. Use a reference instead. In some situations
2649 (I think pdf files is one) having one glyph with several encodings causes
2650 problems (Acrobat uses the glyph to back-map through the encoding to work
2651 out the unicode code point. But that will fail if a glyph has two unicode
2652 code points associated with it). -->
2653 Adobe は、それを避けるように勧めています。その代わりに参照を使ってください。いくつかの情況 (PDF がその一例だと思われます) においては 、1 個のグリフが複数の文字符号を持っていると問題が起こります (Acrobat は、Unicode コードポイントを算出するために、グリフから符号位置への逆対応表を使用します。しかし、あるグリフが 2 つの Unicode コードポイントを持っているとそれが失敗します)。
2654 <DT>
2655 <A NAME="Save" HREF="filemenu.html#Save">Save</A>([filename])
2656 <DD>
2657 <!-- If no filename is specified then this saves the current font back into its
2658 sfd file (if the font has no sfd file then this is an error). With one argument
2659 it executes a SaveAs command, saving the current font to that filename. -->
2660 filename に何も指定しない場合、カレントフォントを元の SFD ファイルに書き戻します (フォントに対応する SFD ファイルが存在しない場合、エラーとなります)。引数 1 個をつけて実行した場合、「名前をつけて保存」コマンドを実行し、カレントフォントを filename で指定したファイルに保存します。
2661 <DT>
2662 <A NAME="SavePrefs">S</A>avePrefs()
2663 <DD>
2664 <!-- Save the current state of preferences. This used to happen when SetPref was
2665 called, now a script must request it explicitly. It can execute with no current
2666 font. -->
2667 現在の環境設定を保存します。以前は SetPref を呼び出したときに自動的に行われていましたが、現在はスクリプトは明示的に実行する必要があります。カレントフォントがない状態でも実行できます。
2668 <DT>
2669 <A NAME="SaveTableToFile">S</A>aveTableToFile(tag,filename)
2670 <DD>
2671 <!-- Both arguments should be strings, the first should be a 4 letter table tag.
2672 The list of preserved tables will be searched for a table with the given
2673 tag, and saved to the file. -->
2674 どちらの引数も文字列でなければならず、最初の引数は 4 文字のテーブルタグでなければなりません。ファイルを読み込み、保存されたテーブルのリストから与えられたタグをもつテーブルを検索して、指定したファイルに保存します。
2675 <DT>
2676 <A NAME="Scale">S</A>cale(factor[,yfactor][,ox,oy])
2677 <DD>
2678 <!-- All selected glyphs will be scaled (scale factors are in percent)-->
2679 選択中のすべてのグリフを拡大・縮小します (拡大率は百分率で指定します)
2680 <UL>
2681 <LI>
2682 <!-- with one argument they will be scaled uniformly about the glyph's center
2683 point -->
2684 引数が 1 個の場合、グリフの中心点の周りで一様に拡大・縮小されます。
2685 <LI>
2686 <!-- with two arguments the first specifies the scale factor for x, the second
2687 for y. Again scaling will be about the center point -->
2688 引数が 2 個の場合、最初の引数が x 方向の拡大率を、第 2 の引数が y 方向の拡大率を指定します。この場合も拡大・縮小は中心点の周りで行われます。
2689 <LI>
2690 <!-- with three arguments they will be scaled uniformly about the specified center -->
2691 引数が 3 個の場合、指定された中心の周りで一様に拡大・縮小されます。
2692 <LI>
2693 <!-- with four arguments they will be scaled differently about the specified center -->
2694 引数が 4 個の場合、指定された中心の周りで縦横異なる比率で拡大・縮小されます。
2695 </UL>
2696 <DT>
2697 <A NAME="ScaleToEm">S</A>caleToEm(em-size)<BR>
2698 ScaleToEm(ascent,descent)
2699 <DD>
2700 <!-- Change the font's ascent and descent and scale everything in the font to
2701 be in the same proportion to the new em (which is the sum of ascent and descent)
2702 value that it was to the old value. -->
2703 フォントの高さと深さを変更し、フォント内のすべての座標値を新しい em 値 (高さと深さの和) と古い値の比に合わせて拡大・縮小します。
2704 <DT>
2705 <A NAME="Select">S</A>elect(arg1, arg2, ...)
2706 <DD>
2707 <!-- This clears out the current selection, then for each pair of arguments it
2708 selects all glyphs between (inclusive) the bounds specified by the pair.
2709 If there is a final singleton argument then that single glyph will be selected.
2710 An argument may be specified by: -->
2711 このコマンドは、まず現在の参照を解除し、それから引数を 2 個ずつ対にして得られる範囲内 (両端を含む) のどれかに含まれるグリフをすべて選択します。
2712 最後に 1 個だけ余った引数がある場合、その 1 個のグリフも選択します。
2713 引数は以下のいずれかの方法によって指定できます:
2714 <UL>
2715 <LI>
2716 <!-- an integer which specifies the location in the current font's encoding -->
2717 カレントフォントの符号化方式における位置を表す整数
2718 <LI>
2719 <!-- a postscript unicode name which gets mapped into the current font's encoding -->
2720 Unicode の PostScript 名 (カレントフォントのエンコーディングに変換されます)
2721 <LI>
2722 <!-- a unicode code point (0u61) which gets mapped to the current font's encoding -->
2723 Unicode の符号位置 (例: 0u61) これは、(カレントフォントのエンコーディングに変換されます)
2724 <LI>
2725 <!-- If Select is given exactly one argument and that argument is an array then
2726 the selection will be set to that specified in the array. So array[0] would
2727 set the selection of the glyph at encoding 0 and so forth. The array may
2728 have a different number of elements from that number of glyphs in the font
2729 but should otherwise be in the same format as that returned by the $selection
2730 psuedo-variable. -->
2731 Select に与えた引数が 1 個だけで、その引数が配列であるならば、グリフの選択範囲は配列で指定された物となります。array[0] は符号位置 0 にあるグリフの選択を表し、以下の文字も同様です。配列の要素数と、フォント内に含まれるグリフの個数は同じである必要はありませんが、個数が違う場合には、$selection 疑似変数が返すのと同じフォーマットである必要があります。
2732 </UL>
2733 <DT>
2734 <A NAME="SelectAll" HREF="editmenu.html#All">SelectAll</A>
2735 <DD>
2736 <!-- Selects all glyphs -->
2737 すべてのグリフを選択します。
2738 <DT>
2739 <A NAME="SelectAllInstancesOf" HREF="editmenu.html#SelectName">SelectAllInstancesOf</A>(name1[,...])
2740 <DD>
2741 <!-- A glyph may be mapped to more than one encoding slot. This will select all
2742 encoding slots which refer to the named glyph(s). The name may be either
2743 a string containing a glyph name, or a unicode code point. -->
2744 1 個のグリフは 2 個以上のエンコーディングスロットに対応づけることができます。この関数は、名前で指定したグリフを参照するすべてのエンコーディングスロットを選択します。引数 name に指定するのはグリフ名、または Unicode の符号位置です。
2745 <DT>
2746 <A NAME="SelectBitmap">SelectBitmap</A>(size)
2747 <DD>
2748 <!-- In a bitmap only font this selects which bitmap strike will be used for units
2749 in the following metrics commands. If no bitmap is selected, then the units
2750 should be in em-units, otherwise units will be in pixels of the given bitmap
2751 strike. The size should be the pixelsize of the font. If you use anti-aliased
2752 fonts then size should be set to (depth&lt;&lt;16)|pixel_size. A value of
2753 -1 for size deselects all bitmaps (units become em-units). -->
2754 ビットマップのみのフォントでは、その後で呼び出すメトリックコマンドにおける単位に、どのビットマップの実体を用いるかを選択します。どのビットマップも選択していないときは、単位は em ユニットになり、それ以外の場合、指定したビットマップ実体のピクセル数になります。size はフォントのピクセルサイズでなければなりません。アンチエイリアスフォントを使用しているときは、size は (depth&lt;&lt;16)|pixel_size にセットしなければなりません。value として -1 を選択すると、すべてのビットマップを選択解除します (単位は em ユニットになります)。
2755 <DT>
2756 <A NAME="SelectByATT">S</A>electByATT(type,tags,contents,search-type)
2757 <DD>
2758 <!-- See the <A HREF="selectbyatt.html">Select By ATT menu command</A>. The values
2759 for type are: -->
2760 処理に関しては<A HREF="selectbyatt.html">ATT メニューコマンドによる選択</A>を参照してください。type に指定可能な値は以下のとおりです:
2761 <TABLE>
2762 <TR>
2763 <TD><CODE>"Position"</CODE></TD>
2764 <!-- <TD>Simple position</TD> -->
2765 <TD>単純な位置指定</TD>
2766 </TR>
2767 <TR>
2768 <TD><CODE>"Pair"</CODE></TD>
2769 <!-- <TD>Pairwise positioning (but not kerning)</TD> -->
2770 <TD>ペア単位の位置指定 (ただしカーニングは無し)</TD>
2771 </TR>
2772 <TR>
2773 <TD><CODE>"Substitution"</CODE></TD>
2774 <!-- <TD>Simple substitution</TD> -->
2775 <TD>単純置換</TD>
2776 </TR>
2777 <TR>
2778 <TD><CODE>"AltSubs"</CODE></TD>
2779 <!-- <TD>Alternate substitution</TD> -->
2780 <TD>代替文字群からの置換</TD>
2781 </TR>
2782 <TR>
2783 <TD><CODE>"MultSubs"</CODE></TD>
2784 <!-- <TD>Multiple substitution</TD> -->
2785 <TD>複数文字への置換</TD>
2786 </TR>
2787 <TR>
2788 <TD><CODE>"Ligature"</CODE></TD>
2789 <!-- <TD>Ligature</TD> -->
2790 <TD>合字</TD>
2791 </TR>
2792 <TR>
2793 <TD><CODE>"LCaret"</CODE></TD>
2794 <!-- <TD>Ligature caret</TD> -->
2795 <TD>合字のキャレット位置指定</TD>
2796 </TR>
2797 <TR>
2798 <TD><CODE>"Kern"</CODE></TD>
2799 <!-- <TD>Kerning</TD> -->
2800 <TD>カーニング</TD>
2801 </TR>
2802 <TR>
2803 <TD><CODE>"VKern"</CODE></TD>
2804 <!-- <TD>Vertical Kerning</TD> -->
2805 <TD>縦書き用カーニング</TD>
2806 </TR>
2807 <TR>
2808 <TD><CODE>"Anchor"</CODE></TD>
2809 <!-- <TD>Anchor class</TD> -->
2810 <TD>アンカークラス</TD>
2811 </TR>
2812 </TABLE>
2813 <P>
2814 <!-- And for search_type -->
2815 search_type の値は以下のとおりです。
2816 <OL>
2817 <LI>
2818 <!-- Select Results -->
2819 結果を選択する
2820 <LI>
2821 <!-- Merge Selection -->
2822 現在の選択内容に追加する
2823 <LI>
2824 <!-- Restrict Selection -->
2825 現在の選択内容を絞り込む
2826 </OL>
2827 <DT>
2828 <A NAME="SelectChanged" HREF="editmenu.html#SelChanged">SelectChanged</A>([merge])
2829 <DD>
2830 <!-- Selects all changed glyphs. If merge is true, will or the current selection
2831 with the new one. -->
2832 変更されたグリフをすべて選択します。merge が真の場合、新しい選択範囲は、現在の選択範囲との和集合になります。
2833 <DT>
2834 <A NAME="SelectFewer">S</A>electFewer(arg1, arg2, ...)
2835 <DD>
2836 <!-- The same as in <A HREF="#Select">Select</A> except that it clears the selection
2837 on the indicated glyphs, so it reduces the current selection. -->
2838 <A HREF="#Select">Select</A> と同じですが、指定されたグリフの選択を解除する点が異なります。それにより、現在の選択範囲は縮小されます。
2839 <DT>
2840 <A NAME="SelectFewerSingletons">S</A>electFewerSingletons(arg1, ...)
2841 <DD>
2842 <!-- Same as <A HREF="scripting-alpha.html#SelectSingletons">SelectSingletons</A>
2843 except it removes single glyphs from the current selection. -->
2844 <A HREF="scripting-alpha.html#SelectSingletons">SelectSingletons</A> と同じですが、引数で指定した個々のグリフを選択範囲から取り除く点が異なります。
2845 <DT>
2846 <A NAME="SelectHintingNeeded" HREF="editmenu.html#SelHinting">SelectHintingNeeded</A>([merge])
2847 <DD>
2848 <!-- Selects all glyphs which FontForge thinks need their hints updated.-->
2849 FontForge がヒントを更新する必要があると判断した全グリフを選択します。
2850 <DT>
2851 <A NAME="SelectIf">S</A>electIf(arg1,arg2, ...)
2852 <DD>
2853 <!-- The same as Select() except that instead of signalling an error when a glyph
2854 is not in the font it returns an error code. -->
2855 Select() と同じですが、フォントにグリフが存在しなかった時にエラー表示を出さず、その代りにエラーコードを返すところが異なります。
2856 <UL>
2857 <LI>
2858 <!-- 0 =&gt; there were no errors but no glyphs were selected -->
2859 0 ⇒ エラーが発生していないが、選択されたグリフが 1 個もない。
2860 <LI>
2861 <!-- &lt;a positive number&gt; =&gt; there were no errors and this many glyphs
2862 were selected -->
2863 &lt;正の整数&gt; =&gt; エラーは発生せず、この値と同じ個数のグリフが選択された。
2864 <LI>
2865 <!-- -2 =&gt; there was an error and no glyphs were selected -->
2866 -2 ⇒ エラーが発生し、グリフが 1 個も選択されなかった。
2867 <LI>
2868 <!-- -1 =&gt; there was an error and at least one glyphs was selected before that. -->
2869 -1 ⇒ エラーが発生し、それまでに少なくとも 1 個のグリフが選択された。
2870 </UL>
2871 <DT>
2872 <A NAME="SelectInvert">S</A>electInvert()
2873 <DD>
2874 <!-- Inverts the selection. -->
2875 選択範囲を反転します。
2876 <DT>
2877 <A NAME="SelectMore">S</A>electMore(arg1, arg2, ...)
2878 <DD>
2879 <!-- The same as in <A HREF="#Select">Select</A> except that it does not clear
2880 the selection initially, so it extends the current selection. -->
2881 <A HREF="#Select">Select</A> と同じですが、このコマンドは選択中の文字を最初に消去しないので、現在選択中の範囲を拡張する点だけが異なります。
2882 <DT>
2883 <A NAME="SelectMoreSingletons">S</A>electMoreSingletons(arg1, ...)
2884 <DD>
2885 <!-- Same as <A HREF="scripting-alpha.html#SelectSingletons">SelectSingletons</A>
2886 except it adds single glyphs from the current selection. -->
2887 <A HREF="scripting-alpha.html#SelectSingletons">SelectSingletons</A> と同じですが、現在の選択範囲に引数で指定した個々のグリフを追加する点が異なります。
2888 <DT>
2889 <A NAME="SelectNone" HREF="editmenu.html#Deselect">SelectNone</A>()
2890 <DD>
2891 <!-- Deselects all glyphs -->
2892 すべてのグリフを選択解除します。
2893 <DT>
2894 <A NAME="SelectSingletons">S</A>electSingletons(arg1, ...)
2895 <DD>
2896 <!-- Selects its arguments without looking for ranges. -->
2897 引数で指定された文字だけを選択します。
2898 <DT>
2899 <A NAME="SelectWorthOutputting">SelectWorthOutputting</A>()
2900 <DD>
2901 <!-- Selects all glyphs <A HREF="#WorthOutputting">WorthOutputting</A> -->
2902 <A HREF="#WorthOutputting">WorthOutputting</A>() が真であるすべてのグリフを選択します。
2903 <DT>
2904 <A NAME="SetCharCnt">S</A>etCharCnt(cnt)
2905 <DD>
2906 <!-- Sets the number of encoding slots in the font. -->
2907 フォントに含まれるエンコーディングスロットの個数を設定します。
2908 <DT>
2909 <A NAME="SetCharColor">S</A>etCharColor(color)
2910 <DD>
2911 <!-- Deprecated name for <A HREF="SetGlyphColor">SetGlyphColor</A> -->
2912 <A HREF="SetGlyphColor">SetGlyphColor</A> の廃止予定の名前です。
2913 <DT>
2914 <A NAME="SetCharComment">S</A>etCharComment(comment)
2915 <DD>
2916 <!-- Deprecated name for <A HREF="SetGlyphComment">SetGlyphComment</A> -->
2917 <A HREF="SetGlyphComment">SetGlyphComment</A> の廃止予定の名前です。
2918 <DT>
2919 <A NAME="SetCharCounterMask">S</A>etCharCounterMask(cg,hint-index,hint-index,...)
2920 <DD>
2921 <!-- Deprecated name for <A HREF="SetGlyphCounterMask">SetGlyphCounterMask</A> -->
2922 <A HREF="SetGlyphCounterMask">SetGlyphCounterMask</A> の廃止予定の名前です。
2923 <DT>
2924 <A NAME="SetCharName" HREF="charinfo.html#Unicode">SetCharName</A>(name[,set-from-name-flag])
2925 <DD>
2926 <!-- Deprecated name for <A HREF="SetGlyphName">SetGlyphName</A> -->
2927 <A HREF="SetGlyphName">SetGlyphName</A> の廃止予定の名前です。
2928 <DT>
2929 <A NAME="SetGlyphColor">S</A>etGlyphColor(color)
2930 <DD>
2931 <!-- Sets any currently selected glyphs to have the given color (expressed as
2932 24 bit rgb (0xff0000 is red) with the special value of -2 meaning the default
2933 color. -->
2934 現在選択されているグリフをすべて、color で指定した色 (24 ビット RGB (0xff0000 が赤) で表す) に設定します。特別な値として、-2 はデフォルトの色を示します。
2935 <DT>
2936 <A NAME="SetGlyphComment">S</A>etGlyphComment(comment)
2937 <DD>
2938 <!-- Sets the currently selected glyph to have the given comment. The comment
2939 is converted via the current encoding to unicode. -->
2940 現在選択されているグリフに comment で指定したコメントを設定します。コメントは現在のエンコーディングから Unicode に変換されます。
2941 <DT>
2942 <A NAME="SetGlyphCounterMask">S</A>etGlyphCounterMask(cg,hint-index,hint-index,...)
2943 <DD>
2944 <!-- Creates or sets the counter mask at index cg to contain the hints listed.
2945 Hint index 0 corresponds to the first hstem hint, index 1 to the second hstem
2946 hint, etc. vstem hints follow hstems. -->
2947 列挙したヒントが第 cg 番目のカウンターマスクに含まれるように、作成または設定を行います。ヒント番号 0 は最初の水平ステムヒントに対応し、1 番は 2 番目に…という要領で対応します。垂直ステムヒントは水平ステムヒントの後に来ます。
2948 <DT>
2949 <A NAME="SetGlyphName" HREF="charinfo.html#Unicode">SetGlyphName</A>(name[,set-from-name-flag])
2950 <DD>
2951 <!-- Sets the currently selected glyph to have the given name. If set-from-name-flag
2952 is absent or is present and true then it will also set the unicode value
2953 and the ligature string to match the name. -->
2954 現在選択中の 1 個のグリフに、name で指定した名前を設定します。set-from-name-flag がないか、true と指定されている場合は、その名前に一致する Unicode 値と合字文字列も同時に設定されます。
2955 <DT>
2956 <A NAME="SetFondName">S</A>etFondName(fondname)
2957 <DD>
2958 <!-- Sets the FOND name of the font. -->
2959 フォントの FOND 名を設定します。
2960 <DT>
2961 <A NAME="SetFontHasVerticalMetrics">S</A>etFontHasVerticalMetrics(flag)
2962 <DD>
2963 <!-- Sets whether the font has vertical metrics or not. A 0 value means it does
2964 not, any other value means it does. Returns the old setting. -->
2965 フォントが縦書き用メトリックを含んでいるかどうかを設定します。値が 0 であればメトリックを含まず、それ以外の値であれば含んでいることを意味します。以前の設定値を返します。
2966 <DT>
2967 <A NAME="SetFontNames">S</A>etFontNames(fontname[,family[,fullname[,weight[,copyright-notice[,fontversion]]]]])
2968 <DD>
2969 <!-- Sets various postscript names associated with a font. If a name is omitted
2970 (or is the empty string) it will not be changed. -->
2971 フォントにつけられた各種の PostScript 名を指定します。name が存在しない
2972 (または空文字列である) 場合、変更されません。
2973 <DT>
2974 <A NAME="SetFontOrder" HREF="fontinfo.html#PS-General">SetFontOrder</A>(order)
2975 <DD>
2976 <!-- Sets the font's order. Order must be either 2 (quadratic) or 3 (cubic). It
2977 returns the old order. -->
2978 フォントのアウトラインの次数を指定します。order に指定できる値は 2 か 3 だけです。フォントの以前の次数を返します。
2979 <DT>
2980 <A NAME="SetGlyphChanged">S</A>etGlyphChanged(flag)
2981 <DD>
2982 <!-- If flag is 1 sets all selected glyphs to be changed, if flag is 0 sets them
2983 unchanged. -->
2984 flag が 1 の場合、選択中の全グリフを変更されたものとします。フラグが 0 の場合、変更されていないものと設定します。
2985 <DT>
2986 <A NAME="SetGlyphClass">S</A>etGlyphClass(class-name)
2987 <DD>
2988 <!-- Sets the class on all selected glyphs to be one of "automatic", "none", "base",
2989 "ligature", "mark" or "component". -->
2990 選択中の全グリフのクラスを "automatic", "none", "base", "ligature", "mark" または "component" のいずれかに設定します。
2991 <DT>
2992 <A NAME="SetGlyphTeX">S</A>etGlyphTeX(height,depth[,subpos,suppos])
2993 <DD>
2994 <!-- Sets the tex_height and tex_depth fields of this glyph. And the subscript
2995 pos and superscript pos for math fonts. -->
2996 このグリフの tex_height および tex_depth フィールドを設定します。また、数学フォントにでは下つき文字の位置と上つき文字の位置も設定します。
2997 <DT>
2998 <A NAME="SetItalicAngle">S</A>etItalicAngle(angle[,denom])
2999 <DD>
3000 <!-- Sets the postscript italic angle field appropriately. If denom is specified
3001 then angle will be divided by denom before setting the italic angle field
3002 (a hack to get real values). The angle should be in degrees. -->
3003 イタリック体の傾き角を表す PostScript のフィールドを正しくセットします。denom が指定されている場合、angle の値はまず denom で割ってから、イタリック角のフィールドに格納されます (実数値を表すための小細工です)。angle の大きさは度数で表されます。
3004 <DT>
3005 <A NAME="SetKern">S</A>etKern(ch2,offset)
3006 <DD>
3007 <!-- Sets the kern between any selected glyphs and the glyph ch2 to be offset.
3008 The first argument may be specified as in Select(), the second is an integer
3009 representing the kern offset. -->
3010 選択中の各グリフと、グリフ ch との間のカーニング量を offset に設定します。最初の引数は Select() での指定と同じです。2 番目の引数は、カーニングのオフセットを表す整数です。
3011 <DT>
3012 <A NAME="SetLBearing" HREF="metricsmenu.html#LBearing">SetLBearing</A>(lbearing[,relative])
3013 <DD>
3014 <!-- If the second argument is absent or zero then the left bearing will be set
3015 to the first argument, if the second argument is 1 then the left bearing
3016 will be incremented by the first, and if the argument is 2 then the left
3017 bearing will be scaled by &lt;first argument&gt;/100.0 . In bitmap only fonts
3018 see the comment at <A HREF="#SelectBitmap">SelectBitmap</A>about units. -->
3019 2 番目の引数が存在しないか 0 の場合、左サイドベアリングを最初の引数にセットします。2 番目の引数が 1 の場合、左サイドベアリングを最初の引数で指定した量だけ増やします。2 の場合は、左サイドベアリングは比率〈最初の引数〉/100.0 だけ拡大されます。ビットマップのみのフォントの場合については、<A HREF="#SelectBitmap">SelectBitmap</A> の単位に関するコメントを参照してください。
3020 <DT>
3021 <A NAME="SetMacStyle">S</A>etMacStyle(val)<BR>
3022 SetMacStyle(str)
3023 <DD>
3024 <!-- The argument may be either an integer or a string. If an integer it is a
3025 set of bits expressing styles as defined on the mac -->
3026 引数は整数でも文字列でも構いません。整数の場合、Mac で定義されているスタイルを表す以下のビットの組合せとなります:
3027 <TABLE CELLPADDING="2">
3028 <TR>
3029 <TD>0x01</TD>
3030 <!-- <TD>Bold</TD> -->
3031 <TD>Bold (ボールド)</TD>
3032 </TR>
3033 <TR>
3034 <TD>0x02</TD>
3035 <!-- <TD>Italic</TD> -->
3036 <TD>Italic (イタリック)</TD>
3037 </TR>
3038 <TR>
3039 <TD>0x04</TD>
3040 <!-- <TD>Underline</TD> -->
3041 <TD>Underline (下線)</TD>
3042 </TR>
3043 <TR>
3044 <TD>0x08</TD>
3045 <!-- <TD>Outline</TD> -->
3046 <TD>Outline (縁どり文字)</TD>
3047 </TR>
3048 <TR>
3049 <TD>0x10</TD>
3050 <!-- <TD>Shadow</TD> -->
3051 <TD>Shadow (影つき文字)</TD>
3052 </TR>
3053 <TR>
3054 <TD>0x20</TD>
3055 <!-- <TD>Condensed</TD> -->
3056 <TD>Condensed (長体)</TD>
3057 </TR>
3058 <TR>
3059 <TD>0x40</TD>
3060 <!-- <TD>Extended</TD> -->
3061 <TD>Extended (平体)</TD>
3062 </TR>
3063 <TR>
3064 <TD>-1</TD>
3065 <!-- <TD>FontForge should guess the styles from the fontname</TD> -->
3066 <TD>FontForge はフォント名から推測を行います。</TD>
3067 </TR>
3068 </TABLE>
3069 <P>
3070 <!-- The bits 0x20 and 0x40 (condensed and extended) may not both be set. -->
3071 ビット 0x20 と 0x40 (長体と平体) は両方同時に指定できません。
3072 <P>
3073 <!-- If the argument is a string then the string should be the concatenation of
3074 various style names, as "Bold Italic Condensed" -->
3075 引数が文字列である場合、複数のスタイル名を繋げたものを、例えば
3076 "Bold Italic Condensed" のように指定します。
3077 <DT>
3078 <A NAME="SetMaxpValue">S</A>etMaxpValue(field-name,value)
3079 <DD>
3080 <!-- The field-name must be a string and one of: <CODE>Zones, TwilightPntCnt,
3081 StorageCnt, MaxStackDepth, FDEFs,</CODE> or <CODE>IDEFs</CODE>. Value must
3082 be an integer. -->
3083 引数 field-name は文字列で、以下のいずれかの値をとります: <CODE>Zones, TwilightPntCnt, StorageCnt, MaxStackDepth, FDEFs,</CODE> または <CODE>IDEFs</CODE>です。引数 value は整数値でなければなりません。
3084 <DT>
3085 <A NAME="SetOS2Value" HREF="fontinfo.html#TTF-Values">SetOS2Value</A>(field-name,field-value)
3086 <DD>
3087 <!-- This sets one of the fields of the OS/2 table to the given value. The field-name
3088 must be one of the strings listed below: -->
3089 この関数は field-name で指定した名前をもつ OS/2 テーブルのフィールドに値を設定します。field-name はフィールド名を表す以下のいずれかの文字列でなければなりません:
3090 <P>
3091 <CODE>Weight, Width, FSType, IBMFamily, VendorID, Panose,<BR>
3092 WinAscent, WinAscentIsOffset</CODE>
3093 <P>
3094 <!-- These are equivalent to the WinAscent field &amp; []Offset check box in
3095 <A HREF="fontinfo.html#TTF-Values">Font Info-&gt;OS/2-&gt;Misc. </A>Where
3096 WinAscentOffset controls whether WinAscent is treated as an absolute number
3097 or as relative to the expected number. -->
3098 これらは <A HREF="fontinfo.html#TTF-Values"><CODE>フォント情報(<U>F</U>)</CODE>→<CODE>[OS/2]</CODE>→<CODE>[メトリック]</CODE></A> にある <CODE>Win Ascent のオフセット</CODE> フィールドと <CODE>[] オフセットを指定</CODE> チェックボックスと等価です。ここで WinAscentIsOffset は、WinAscent が絶対値として扱われるか、予期される数値に対する相対値かを指定します。
3099 <P>
3100 <CODE>WinDescent, WinDescentIsOffset,<BR>
3101 TypoAscent, TypoAscentIsOffset,<BR>
3102 TypoDescent, TypoDescentIsOffset,<BR>
3103 HHeadAscent, HHeadAscentIsOffset,<BR>
3104 HHeadDescent, HHeadDescentIsOffset,<BR>
3105 TypoLineGap, HHeadLineGap, VHeadLineGap,<BR>
3106 SubXSize, SubYSize, SubXOffset, SubYOffset</CODE>
3107 <P>
3108 <!-- Sets the Subscript x/y sizes/offsets. -->
3109 下つき文字の X/Y 方向のサイズ/オフセットを設定します。
3110 <P>
3111 <CODE>SupXSize, SupYSize, SupXOffset, SupYOffset</CODE>
3112 <P>
3113 <!-- Sets the Superscript x/y sizes/offsets. -->
3114 上つき文字の X/Y 方向のサイズ/オフセットを設定します。
3115 <P>
3116 <CODE>StrikeOutSize, StrikeOutPos</CODE>
3117 <P>
3118 <P>
3119 <!-- Usually the second argument is an integer but <CODE>VendorID</CODE> takes
3120 a 4 character ASCII string, and <CODE>Panose</CODE> takes a 10 element integer
3121 array. -->
3122 第 2 引数は通常整数ですが、<CODE>VendorID</CODE> の場合は 4 文字の ASCII 文字列、<CODE>Panose</CODE> の場合は 10 個の整数要素を含んだ 1 個の配列を第 2 引数に指定します。
3123 <DT>
3124 <A NAME="SetPanose" HREF="fontinfo.html#Panose">SetPanose</A>(array)
3125 SetPanose(index,value)
3126 <DD>
3127 <!-- This sets the panose values for the font. Either it takes an array of 10
3128 integers and sets all the values, or it takes two integer arguments and sets
3129 <CODE>font.panose[index] = value</CODE> -->
3130 フォントの panose 値を設定します。10 個の整数からなる配列 1 個を引数としてすべての panose 値を設定するか、2 個の整数を引数として <CODE>font.panose[index] = value</CODE> とする設定を行うかのどちらも可能です。
3131 <DT>
3132 <A NAME="SetPref">SetPref</A>(str,val[,val2])
3133 <DD>
3134 <!-- Sets the value of the preference item whose name is contained in str. If
3135 the preference item has a real type then a second argument may be passed
3136 and the value set will be val/val2. -->
3137 名前 str をもつプリファレンスの項目値を設定します。プリファレンスの項目が実数型ならば、2 番目の引数を指定することができ、設定される値は val/val2 となります。
3138 <DT>
3139 <A NAME="SetRBearing" HREF="metricsmenu.html#RBearing">SetRBearing</A>(rbearing[,relative])
3140 <DD>
3141 <!-- If the second argument is absent or zero then the right bearing will be set
3142 to the first argument, if the second argument is 1 then the right bearing
3143 will be incremented by the first, and if the argument is 2 then the right
3144 bearing will be scaled by &lt;first argument&gt;/100.0 . In bitmap only fonts
3145 see the comment at <A HREF="#SelectBitmap">SelectBitmap</A> about units. -->
3146 2 番目の引数が存在しないか 0 の場合、右サイドベアリングを最初の引数にセットします。2 番目の引数が 1 の場合、右サイドベアリングを最初の引数で指定した量だけ増やします。2 の場合は、右サイドベアリングは比率〈最初の引数〉/100.0 だけ拡大されます。ビットマップのみのフォントの場合については、<A HREF="#SelectBitmap">SelectBitmap</A> の単位に関するコメントを参照してください。
3147 <DT>
3148 <A NAME="SetTeXParams" HREF="fontinfo.html#TeX">SetTeXParams</A>(type,design-size,slant,space,stretch,shrink,xheight,quad,extraspace[...])
3149 <DD>
3150 <!-- Sets the TeX (text) font parameters for the font.<BR>
3151 Type may be 1, 2 or 3, depending on whether the font is text, math or math
3152 extension. <BR>
3153 DesignSize is the pointsize the font was designed for.<BR>
3154 The remaining parameters are described in Knuth's The MetaFont Book, pp.
3155 98-100.<BR>
3156 Slant is expressed as a percentage. All the others are expressed in
3157 em-units.<BR>
3158 If type is 1 then the 9 indicated arguments are required. If type is 2 then
3159 24 arguments are required (the remaining 15 are described in the metafont
3160 book). If type is 3 then 15 arguments are required. -->
3161 TeX の (テキスト) フォントパラメータを設定します。<BR>
3162 type は 1, 2, 3 のいずれかで、フォントがテキスト用、数学用または数学用拡張フォントのどれであるかによって変わります。<BR>
3163 design-size は、フォントデザイン時に意図したポイントサイズです。<BR>
3164 残りのパラメータは Knuth の METAFONT ブックの (原書) 98-100 ページに書かれています。<BR>
3165 slant は百分率で表されています。その他のすべての値は em ユニットで表されています。<BR>
3166 type が 1 のときは、上に示した 9 個の引数が必要です。type が 2 のときは、24 個の引数が必要です (残りの 15 個は METAFONT ブックに説明があります)。type が 3 のときは、15 個の引数が必要です。
3167 <DT>
3168 <A NAME="SetTTFName" HREF="fontinfo.html#TTF-Names">SetTTFName</A>(lang,nameid,utf8-string)
3169 <DD>
3170 <!-- Sets the indicated truetype name in the MS platform. Lang must be one of
3171 the
3172 <A HREF="http://partners.adobe.com/public/developer/opentype/index_name.html#lang3">language/locales</A>
3173 supported by MS, and nameid must be one of the
3174 <A HREF="http://partners.adobe.com/public/developer/opentype/index_name.html#enc4">small
3175 integers used to indicate a standard name</A>, while the final argument should
3176 be a utf8 encoded string which will become the value of that entry. A null
3177 string ("") may be used to clear an entry.<BR>
3178 Example: To set the SubFamily string in the American English
3179 language/locale<BR> -->
3180 MS プラットフォームで使用される、指定された言語・IDの TrueType 名を指定します。Lang は MS のサポートする<A HREF="http://partners.adobe.com/public/developer/opentype/index_name.html#lang3">言語/ロケール</A>に含まれていなければならず、名前 ID は<A HREF="http://partners.adobe.com/public/developer/opentype/index_name.html#enc4">標準の名前指定で用いる小さな整数</A> のどれかでなければなりません。空文字列 ("") はエントリを削除するのに使用できます。<BR>
3181 例: アメリカ英語の言語/ロケールで、SubFamily 文字列を指定するには以下のようにします:<BR>
3182 <CODE>&nbsp; &nbsp;SetTTFName(0x409,2,"Bold Oblique")</CODE>
3183 <DT>
3184 <A NAME="SetUnicodeValue">S</A>etUnicodeValue(uni[,set-from-value-flag])
3185 <DD>
3186 <!-- Sets the currently selected character to have the given unicode value. If
3187 set-from-value-flag is absent or is present and true then it will also set
3188 the name and the ligature string to match the value. -->
3189 現在選択されている文字に、uni で指定した Unicode 値を設定します。set-from-value-flag がないか、true と指定されている場合は、その値に一致する名前と合字文字列も同時に設定されます。
3190 <DT>
3191 <A NAME="SetUniqueID">S</A>etUniqueID(value)
3192 <DD>
3193 <!-- Sets the postscript uniqueid field as requested. If you give a value of 0
3194 then FontForge will pick a reasonable random number for you. -->
3195 PostScript の UniqueID フィールドに指定した値を設定します。値 0 を与えた場合、FontForge は適正な範囲に含まれる乱数値を自動的に選びます。
3196 <DT>
3197 <A NAME="SetVKern">S</A>etVKern(ch2,offset)
3198 <DD>
3199 <!-- Sets the kern between any selected glyphs and the glyph ch2 to be offset.
3200 The first argument may be specified as in Select(), the second is an integer
3201 representing the kern offset. -->
3202 選択中の各グリフと、グリフ ch との間の縦書きカーニング量を offset に設定します。最初の引数は Select() での指定と同じです。2 番目の引数は、カーニングのオフセットを表す整数です。
3203 <DT>
3204 <A NAME="SetVWidth" HREF="metricsmenu.html#vertical">SetVWidth</A>(vertical-width[,relative])
3205 <DD>
3206 <!-- If the second argument is absent or zero then the vertical width will be
3207 set to the first argument, if the second argument is 1 then the vertical
3208 width will be incremented by the first, and if the argument is 2 then the
3209 vertical width will be scaled by &lt;first argument&gt;/100.0 . In bitmap
3210 only fonts see the comment at
3211 <A HREF="#SelectBitmap">SelectBitmap</A> about units.-->
3212 2 番目の引数が存在しないか 0 の場合、文字の全高 (縦書き時の送り幅) を最初の引数にセットします。2 番目の引数が 1 の場合、文字の高さを最初の引数で指定した量だけ増やします。2 の場合は、文字の高さは比率〈最初の引数〉/100.0 だけ拡大されます。ビットマップのみのフォントの場合については、<A HREF="#SelectBitmap">SelectBitmap</A> の単位に関するコメントを参照してください。
3213 <DT>
3214 <A NAME="SetWidth" HREF="metricsmenu.html#Width">SetWidth</A>(width[,relative])
3215 <DD>
3216 <!-- If the second argument is absent or zero then the width will be set to the
3217 first argument, if the second argument is 1 then the width will be incremented
3218 by the first, and if the argument is 2 then the width will be scaled by
3219 &lt;first argument&gt;/100.0 . In bitmap only fonts see the comment at
3220 <A HREF="#SelectBitmap">SelectBitmap</A> about units.-->
3221 2 番目の引数が存在しないか 0 の場合、文字幅を最初の引数にセットします。2 番目の引数が 1 の場合、文字幅を最初の引数で指定した量だけ増やします。第 2 引数が 2 の場合、文字幅は比率〈最初の引数〉/100.0 だけ拡大されます。ビットマップのみのフォントの場合については、<A HREF="#SelectBitmap">SelectBitmap</A> の単位に関するコメントを参照してください。
3222 <DT>
3223 <A NAME="Shadow" HREF="elementmenu.html#Shadow">Shadow</A>(angle,outline-width,shadow-width)
3224 <DD>
3225 <!-- Converts the selected glyphs into shadowed versions of themselves.-->
3226 選択中のすべてのグリフを影つきグリフに変換します。
3227 <DT>
3228 <A NAME="Simplify" HREF="elementmenu.html#Simplify">Simplify</A>()<BR>
3229 Simplify(flags,error[,tan_bounds[,bump_size[,error_denom,line_len_max]]])
3230 <DD>
3231 <!-- With no arguments it does the obvious. If flags is -1 it does a
3232 <A HREF="elementmenu.html#Cleanup">Cleanup</A>, otherwise flags should be
3233 a bitwise or of -->
3234 引数が指定されていない時の処理は自明です。flags が -1 の時には、冗長なデータの<A HREF="elementmenu.html#Cleanup">整理</A>を行います。それ以外の場合、flags の各ビットは以下のように扱われます。
3235 <UL>
3236 <LI>
3237 <!-- 1 - - Slopes may change at the end points. -->
3238 1 — 端点における傾きが変化することを許す
3239 <LI>
3240 <!-- 2 - - Points which are extremum may be removed -->
3241 2 — 極値にある点を取り除いてよい
3242 <LI>
3243 <!-- 4 - - Corner points may be smoothed into curves -->
3244 4 — 角の点を滑らかな曲線に近似してよい
3245 <LI>
3246 <!-- 8 - - Smoothed points should be snapped to a horizontal or vertical tangent
3247 if they are close -->
3248 8 — 滑らかにした点が十分水平・垂直に近い場合、水平・垂直に揃える
3249 <LI>
3250 <!-- 16 - - Remove bumps from lines -->
3251 16 — 線からコブを取り除く
3252 <LI>
3253 <!-- 32 - - make lines which are close to horizontal/vertical be horizontal/vertical -->
3254 32 — 水平/垂直に近い線を水平/垂直に揃える
3255 <LI>
3256 <!-- 64 - - merge lines which are nearly parallel into one -->
3257 64 — ほとんど平行な線を 1 本に統合する
3258 <LI>
3259 <!-- 128 - - change which point is the start point if a contour's start point is
3260 not an extremum -->
3261 128 — 輪郭の開始点が極値にない場合、どの点が極値になるかを変更する
3262 </UL>
3263 <P>
3264 <!-- The error argument is the number of font units by which the modified path
3265 is allowed to stray from the true path.<BR> -->
3266 引数 error は、変更されたパスがフォント座標系で本来のパスから何ユニットまでかけ離れてよいかを指定します。<BR>
3267 <!-- The tan_bounds argument specifies the tangent of the angle between the curves
3268 at which smoothing will stop (argument is multiplied by .01 before use).<BR>-->
3269 引数 tan_bounds は滑らかにする処理を行わない最大の角度を表します。<BR>
3270 <!-- And bump_size gives the maximum distance a bump can move from the line and
3271 still be smoothed out.<BR>-->
3272 bunp_size は除去して滑らかに変換するコブが、元の線から最大何ピクセル離れて良いかを指定します。<BR>
3273 <!-- If a fifth argument is given then it will be treated as the denominator of
3274 the error term (so users can express fraction pixel distances).<BR> -->
3275 5 番目の引数が与えられた場合、それは error 項の分母として扱われます (これにより、ユーザは分数ピクセルの距離を指定することができます)。<BR>
3276 <!-- Generally it is a bad idea to merge a line segment with any other than a
3277 colinear line segment. The longer the line segment, the more likely that
3278 such a merge will produce unpleasing results. The sixth argument, if present,
3279 specifies the maximum length for lines which may be merged (anything longer
3280 will not be merged). -->
3281 一般に、端点の両側で方向が異なる線同士を併合しようとしてもうまくいきません。曲線のセグメントが長くなるほど、不愉快な結果を生み出す可能性は高まります。6 番目の引数を指定すると、併合される線の最大長を指定することができます (それより長い線はすべて併合されずに残ります)。
3282 <DT>
3283 <A NAME="Sin">S</A>in(val)
3284 <DD>
3285 <!-- Returns the sine of val. It can execute with no current font. -->
3286 val の正弦を返します。カレントフォントがない状態でも実行できます。
3287 <DT>
3288 <A NAME="SizeOf">S</A>izeOf(arr)
3289 <DD>
3290 <!-- Returns the number of elements in an array. It can execute with no current
3291 font. -->
3292 配列に含まれる要素数を返します。カレントフォントがない状態でも実行できます。
3293 <DT>
3294 <A NAME="Skew">S</A>kew(angle[,ox,oy])<BR>
3295 Skew(angle-num,angle-denom[,ox,oy])
3296 <DD>
3297 <!-- All selected glyphs will be skewed by the given angle.-->
3298 選択中のすべてのグリフを指定した角度だけ傾けます。
3299 <DT>
3300 <A NAME="Sqrt">S</A>qrt(val)
3301 <DD>
3302 <!-- Returns the square root. It can execute with no current font. -->
3303 平方根を返します。カレントフォントがない状態でも実行できます。
3304 <DT>
3305 <A NAME="Strcasecmp">S</A>trcasecmp(str1,str2)
3306 <DD>
3307 <!-- Compares the two strings ignoring case, returns zero if the two are equal,
3308 a negative number if str1&lt;str2 and a positive number if str1&gt;str2.
3309 It can execute with no current font. Note: There is no Strcmp function because
3310 that is done with relational operators when applied to two strings. -->
3311 大文字と小文字の区別を無視して 2 つの文字列を比較し、等しければ 0 を、str1&lt;str2 ならば負の数を、str1&gt;str2 ならば 正の数を返します。カレントフォントがない状態でも実行できます。注意: 2 つの文字列に比較演算子を使用することができるので、Strcmp 関数は存在しないことに注意してください。
3312 <DT>
3313 <A NAME="Strcasestr">S</A>trcasestr(haystack,needle)
3314 <DD>
3315 <!-- Returns the index of the first occurrence of the string needle within the
3316 string haystack ignoring case in the search (or -1 if not found). It can
3317 execute with no current font. -->
3318 大文字と小文字の区別を無視して検索を行い、文字列 needle が文字列 haystack の中で最初に出現する位置を返します (ない場合は -1 を返します)。カレントフォントがない状態でも実行できます。
3319 <DT>
3320 <A NAME="Strlen">S</A>trlen(str)
3321 <DD>
3322 <!-- Returns the length of the string. It can execute with no current font. -->
3323 文字列の長さを返します。カレントフォントがない状態でも実行できます。
3324 <DT>
3325 <A NAME="Strrstr">S</A>trrstr(haystack,needle)
3326 <DD>
3327 <!-- Returns the index of the last occurrence of the string needle within the
3328 string haystack (or -1 if not found). It can execute with no current font. -->
3329 文字列 needle が、文字列 haystack の中で最後に出現する位置を返します (ない場合は -1 を返します)
3330 <DT>
3331 <A NAME="Strskipint">S</A>trskipint(str[,base])
3332 <DD>
3333 <!-- Parses as much of str as possible and returns the offset to the first character
3334 that could not be parsed. It can execute with no current font. -->
3335 文字列 str をできるだけ長く字句解析して、解析不可能な最初の文字のオフセットを返します。カレントフォントがない状態でも実行できます。
3336 <DT>
3337 <A NAME="Strstr">S</A>trstr(haystack,needle)
3338 <DD>
3339 <!-- Returns the index of the first occurrence of the string needle within the
3340 string haystack (or -1 if not found). It can execute with no current font. -->
3341 文字列 needle が、文字列 haystack の中で最初に出現する位置を返します (ない場合は -1 を返します)。カレントフォントがない状態でも実行できます。
3342 <DT>
3343 <A NAME="Strsub">S</A>trsub(str,start[,end])
3344 <DD>
3345 <!-- Returns a substring of the string argument. The substring begins at position
3346 indexed by start and ends before the position indexed by end (if end is omitted
3347 the end of the string will be used, the first position is position 0). Thus
3348 <CODE>Strsub("abcdef",2,3) == "c" </CODE>and <CODE>Strsub("abcdef",2) ==
3349 "cdef"</CODE>. It can execute with no current font. -->
3350 文字列引数の部分文字列を返します。部分文字列は start で指定された位置から始まり、end で指定された位置の前で終わります (end が省略された場合、文字列の終りが使用されます。文字列の先頭は位置 0 です)。ですから <CODE>Strsub("abcdef",2,3) == "c" </CODE> になり、<CODE>Strsub("abcdef",2) == "cdef"</CODE> になります。カレントフォントがない状態でも実行できます。
3351 <DT>
3352 <A NAME="Strtod">S</A>trtod(str)
3353 <DD>
3354 <!-- Converts a string to a real number. It can execute with no current font. -->
3355 文字列を実数に変換します。カレントフォントがない状態でも実行できます。
3356 <DT>
3357 <A NAME="Strtol">S</A>trtol(str[,base])
3358 <DD>
3359 <!-- Parses as much of str as possible and returns the integer value it represents.
3360 A second argument may be used to specify the base of the conversion (it defaults
3361 to 10). Behavior is as for strtol(3). It can execute with no current font. -->
3362 文字列 str をできるだけ長く字句解析して、str が表す整数値を返します。変換の基数を表す 2 番目の引数を与えることができます (デフォルトでは 10 進数です)。この手続きの振舞いは strtol(3) に従います。カレントフォントがない状態でも実行できます。
3363 <DT>
3364 <A NAME="SubstitutionPoints" HREF="hintsmenu.html#SubstitutionPt">SubstitutionPoints</A>()
3365 <DD>
3366 </DL>
3367 </TD>
3368 </TR>
3369 <TR VALIGN=TOP>
3370 <TD BGCOLOR=yellow><A NAME="T">T</A></TD>
3371 <TD><DL>
3372 <DT>
3373 <A NAME="Tan">T</A>an(val)
3374 <DD>
3375 <!-- Returns the tangent of val. It can execute with no current font. -->
3376 val の正接を返します。カレントフォントがない状態でも実行できます。
3377 <DT>
3378 <A NAME="ToString">T</A>oString(arg)
3379 <DD>
3380 <!-- Converts its argument to a string. (the output is what the Print() command
3381 would print) It can execute with no current font. -->
3382 引数を文字列に変換します。(この出力は Print() コマンドの印字と同じです)。カレントフォントがない状態でも実行できます。
3383 <DT>
3384 <A NAME="Transform" HREF="elementmenu.html#Transform">Transform</A>(t1,t2,t3,t4,t5,t6)
3385 <DD>
3386 <!-- Each argument will be divided by 100. and then all selected glyphs will be
3387 transformed by this matrix -->
3388 各引数は 100 で割られます。その後、選択中のすべてのグリフをこの行列で変換します。
3389 <TABLE CELLPADDING="2">
3390 <TR>
3391 <TD ROWSPAN=2><BIG><BIG><BIG>[</BIG></BIG></BIG></TD>
3392 <TD>t1/100.</TD>
3393 <TD>t2/100.</TD>
3394 <TD>t3/100.</TD>
3395 <TD ROWSPAN=2><BIG><BIG><BIG>]</BIG></BIG></BIG></TD>
3396 </TR>
3397 <TR>
3398 <TD>t4/100.</TD>
3399 <TD>t5/100.</TD>
3400 <TD>t6/100.</TD>
3401 </TR>
3402 </TABLE>
3403 <P>
3404 <!-- This is a standard PostScript transformation matrix where -->
3405 これは、以下の変換を行う標準 PostScript 変換行列です。
3406 <TABLE CELLPADDING="2">
3407 <TR>
3408 <TD>x'</TD>
3409 <TD>=</TD>
3410 <TD>t1/100 * x + t2/100 * y + t3/100</TD>
3411 </TR>
3412 <TR>
3413 <TD>y'</TD>
3414 <TD>=</TD>
3415 <TD>t4/100 * x + t5/100 * y + t6/100</TD>
3416 </TR>
3417 </TABLE>
3418 <P>
3419 <!-- The peculiar notion of dividing by 100 was to overcome the fact that fontforge's
3420 scripting language formerly could not handle real numbers. We've overcome
3421 that limitation since, but it seemed best to leave the behavior of the function
3422 as it was. -->
3423 100 で割る特別な表記法を用いているのは、FontForge のスクリプト言語がかつて実数を扱うことができなかったためです。その後この制限は解消されましたが、関数のふるまいを当時のままにしておくに越したことはないと思います。
3424 <DT>
3425 <A NAME="TypeOf">T</A>ypeOf(any)
3426 <DD>
3427 <!-- Returns a string naming the type of the argument: -->
3428 引数の型を表す文字列を返します:
3429 <UL>
3430 <LI>
3431 "Integer"
3432 <LI>
3433 "Real"
3434 <LI>
3435 "Unicode"
3436 <LI>
3437 "String"
3438 <LI>
3439 "Array"
3440 <LI>
3441 "Void"<BR>
3442 <!-- (The following type is used internally, but I don't think the user can ever
3443 see it. It is included here for completeness) -->
3444 (以下の型は内部的に用いられますが、ユーザがこれを見ることは決してないと思います。完璧を期すためにここに入れています)。
3445 <LI>
3446 "LValue"
3447 </UL>
3448 <P>
3449 <!-- It can execute with no current font. -->
3450 カレントフォントがない状態でも実行することができます。
3451 </DL>
3452 </TD>
3453 </TR>
3454 <TR VALIGN=TOP>
3455 <TD BGCOLOR=yellow><A NAME="U">U</A></TD>
3456 <TD><DL>
3457 <DT>
3458 <A NAME="UCodePoint">U</A>CodePoint(int)
3459 <DD>
3460 <!-- Converts the argument to a unicode code point (a special type used in several
3461 commands). It can execute with no current font. -->
3462 引数を Unicode のコードポイント (いくつかのコマンドで使用される特殊なデータ型) に変換します。カレントフォントがない状態でも実行できます。
3463 <DT>
3464 <A NAME="UnicodeFromName">U</A>nicodeFromName(name)
3465 <DD>
3466 <!-- Looks the string "name" up in FontForge's database of commonly used glyph
3467 names and returns the unicode value associated with that name, or -1 if not
3468 found. This does <EM>not</EM> check the current font (if any). It can execute
3469 with no current font. -->
3470 文字列 "name" を、一般に使用されるグリフ名を格納した FontForge のデータベースから検索して、その名前がもつ Unicode 値を (見つからなければ -1 を) 返します。これは、カレントフォント (があれば) を検査<EM>しません</EM>。カレントフォントがない状態でも実行できます。
3471 <DT>
3472 <A NAME="UnlinkReference" HREF="editmenu.html#Unlink">UnlinkReference</A>
3473 <DD>
3474 <!-- Unlinks all references within all selected glyphs -->
3475 選択中のすべてのグリフに含まれる参照を解除します。
3476 <DT>
3477 <A NAME="Utf8">U</A>tf8(int)
3478 <DD>
3479 <!-- Takes an integer [0,0x10ffff] and returns the utf8 string representing that
3480 unicode code point. If passed an array of integers it will generate a utf8
3481 string containing all of those unicode code points. (it does not expect to
3482 get surrogates). It can execute with no current font.
3483 get surrogates). -->
3484 整数 [0,0x10ffff] をとり、その Unicode コードポイントが指す文字を UTF-8 文字列で返します。整数の配列を渡した場合、それら全ての Unicode コードポイントを含む UTF-8 文字列を生成します。(サロゲートの値を渡されることは想定していません)。カレントフォントがない状態でも実行できます。
3485 </DL>
3486 </TD>
3487 </TR>
3488 <TR VALIGN=TOP>
3489 <TD BGCOLOR=yellow><A NAME="V">V</A></TD>
3490 <TD><DL>
3491 <DT>
3492 <A NAME="VFlip">V</A>Flip([about-y])
3493 <DD>
3494 <!-- All selected glyphss will be vertically flipped about the horizontal line
3495 through y=about-y. If no argument is given then all selected glyphs will
3496 be flipped about their central point. -->
3497 選択中のすべてのグリフを、水平線 y=about-y を中心にして、垂直方向に反転します。引数を指定しない場合、選択中の各グリフを、その上下中心線の周りで反転されます。
3498 <DT>
3499 <A NAME="VKernFromHKern" HREF="metricsmenu.html#VKernFromHKern">VKernFromHKern</A>()
3500 <DD>
3501 <!-- Removes all vertical kern pairs and classes from the current font, and then
3502 generates new vertical kerning pairs by copying the horizontal kerning data
3503 for a pair of glyphs to the vertically rotated versions of those glyphs. -->
3504 カレントフォントからすべての縦書き用カーニングペアとカーニングクラスを削除し、次に、それらのグリフの縦書き用に横転したグリフ同士の文字のペアに設定された横書き用カーニングデータをコピーすることによって、新しい縦書きカーニングペアを生成します。
3505 </DL>
3506 </TD>
3507 </TR>
3508 <TR VALIGN=TOP>
3509 <TD BGCOLOR=yellow><A NAME="W">W</A></TD>
3510 <TD><DL>
3511 <DT>
3512 <A NAME="Wireframe" HREF="elementmenu.html#Wireframe">Wireframe</A>(angle,outline-width,shadow-width)
3513 <DD>
3514 <!-- Converts the selected glyphs into wireframed versions of themselves.-->
3515 選択中のグリフをワイヤフレーム化したものに変換します。
3516 <DT>
3517 <A NAME="WorthOutputting">W</A>orthOutputting([arg])
3518 <DD>
3519 <!-- If there is no argument then a single glyph should be selected and the function
3520 applies to that glyph, otherwise arg is as in <A HREF="#InFont">InFont</A>.
3521 This returns true if the glyph contains any splines, references, images or
3522 has had its width set. -->
3523 引数が存在しない場合、ちょうど 1 個の引数を選択していなければならず、この関数はそのグリフに適用されます。それ以外の場合、arg は <A HREF="#InFont">InFont</A> と同様に解釈されます。この関数は、対象となるグリフが何らかのスプライン、参照、画像を含んでいるか、幅が設定されているときに真を返します。
3524 <DT>
3525 <!-- WriteStringToFile("string","Filename"[,append]) -->
3526 WriteStringToFile("文字列","Filename"[,append])
3527 <DD>
3528 <!-- Creates the file named "Filename" and writes the string to it. If the append
3529 flag is present and non-zero, then the string will be appended to the file.
3530 This deals with null-terminated strings, not with byte arrays. Returns -1
3531 on failure otherwise the number of bytes written. It can execute with no
3532 current font. -->
3533 "Filename" で指定した名前をもつファイルを作成し、文字列をそのファイルへ書き出します。append フラグが指定されていて 0 でない値の場合は、文字列はファイルの末尾に追加されます。この関数は null で終端された文字列を扱うものであり、バイト配列を扱いません。失敗時には -1 を返し、成功時には書き出されたバイト数を返します。カレントフォントがない状態でも実行できます。
3534 </DL>
3535 </TD>
3536 </TR>
3537 <TR VALIGN=TOP>
3538 <TD BGCOLOR=yellow><A NAME="X">X</A></TD>
3539 <TD></TD>
3540 </TR>
3541 <TR VALIGN=TOP>
3542 <TD BGCOLOR=yellow><A NAME="Y">Y</A></TD>
3543 <TD></TD>
3544 </TR>
3545 <TR VALIGN=TOP>
3546 <TD BGCOLOR=yellow><A NAME="Z">Z</A></TD>
3547 <TD></TD>
3548 </TR>
3549 </TABLE>
3550 <P>
3551 <P ALIGN=Center>
3552 <!--
3553 - - <A HREF="scripting.html">Up</A> - - -->
3554 — <A HREF="scripting.html">上</A> —
3555 </DIV>
3556 </BODY></HTML>