Debian Codegraph @

doc/sphinx/olddocs/old/ja/editexample2.html

raw symbols SCIP
1 <HTML>
2 <HEAD>
3 <!-- Created with AOLpress/2.0 -->
4 <!-- AP: Created on: 27-Jan-2003 -->
5 <!-- AP: Last modified: 21-Apr-2006 -->
6 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
7 <!--<TITLE>Creating the letter "o" - - consistant directions</TITLE>-->
8 <TITLE>文字 "o" の作成——矛盾の無いパスの向き</TITLE>
9 <LINK REL="icon" href="../../_static/fftype16.png">
10 <LINK REL="stylesheet" TYPE="text/css" HREF="FontForge.css">
11 </HEAD>
12 <BODY>
13 <DIV id="in">
14 <H1 ALIGN=Center>
15 <!--Tutorial #2 -->
16 チュートリアル (その 2)
17 </H1>
18 <UL>
19 <LI>
20 <!-- <A HREF="editexample.html#FontCreate">Font Creation</A>-->
21 <A HREF="editexample.html#FontCreate">フォントの作成</A>
22 <LI>
23 <!-- <A HREF="editexample.html#CharCreate">Creating a glyph (tracing outlines)</A>-->
24 <A HREF="editexample.html#CharCreate">グリフの作成 (アウトラインのトレース) 法</A>
25 <LI>
26 <!-- <A HREF="editexample2.html#Navigating">Navigating to other glyphs</A>-->
27 <A HREF="editexample2.html#Navigating">他のグリフの呼び出し方</A>
28 <LI>
29 <!-- <A HREF="editexample2.html#Creating-o">On to the next glyph (consistent
30 directions)</A>-->
31 <A HREF="editexample2.html#Creating-o">次のグリフに関して (矛盾のないパスの向き)</A>
32 <LI>
33 <!-- <A HREF="editexample3.html#consistent-stems">Consistent serifs and stem
34 widths</A>-->
35 <A HREF="editexample3.html#consistent-stems">統一のとれたセリフとステムの太さ</A>
36 <LI>
37 <!-- <A HREF="editexample4.html#accents">Building accented glyphs</A>-->
38 <A HREF="editexample4.html#accents">アクセントつきグリフの組み立て方</A>
39 <LI>
40 <!-- <A HREF="editexample4.html#ligature">Building a ligature</A>-->
41 <A HREF="editexample4.html#ligature">合字の組み立て方</A>
42 <LI>
43 <!-- <A HREF="editexample5.html#metrics">Examining metrics</A>-->
44 <A HREF="editexample5.html#metrics">メトリックの確認法</A>
45 <LI>
46 <!-- <A HREF="editexample5.html#Kerning">Kerning</A>-->
47 <A HREF="editexample5.html#Kerning">カーニング</A>
48 <LI>
49 <!-- <A HREF="editexample6.html#Variants">Glyph variants</A>-->
50 <A HREF="editexample6.html#Variants">異体関係にあるグリフ</A>
51 <LI>
52 <!-- <A HREF="editexample6.html#Marks">Anchoring marks</A>-->
53 <A HREF="editexample6.html#Marks">アンカーマーク</A>
54 <LI>
55 <!-- <A HREF="editexample6-5.html#Conditional">Conditional features</A>-->
56 <A HREF="editexample6-5.html#Conditional">条件つき機能</A>
57 <LI>
58 <!-- <A HREF="editexample7.html#checking">Checking your font</A>-->
59 <A HREF="editexample7.html#checking">フォントのチェック法</A>
60 <LI>
61 <!-- <A HREF="editexample7.html#generating">Generating it</A>-->
62 <A HREF="editexample7.html#generating">フォントの出力方法</A>
63 <LI>
64 <!-- <A HREF="editexample7.html#Families">Font Families</A>-->
65 <A HREF="editexample7.html#Families">フォントファミリー</A>
66 <LI>
67 <!-- <A HREF="editexample7.html#summary">Final Summary</A>-->
68 <A HREF="editexample7.html#summary">最後のまとめ</A>
69 <LI>
70 <!-- <A HREF="scripting-tutorial.html">Scripting Tutorial</A> -->
71 <A HREF="scripting-tutorial.html">スクリプト処理のチュートリアル</A>
72 <LI>
73 <!-- <A HREF="scriptnotes.html#Special">Notes on various scripts</A>-->
74 <A HREF="scriptnotes.html#Special">各種の用字系における注意点</A>
75 </UL>
76 <H2>
77 <!--<A NAME="Navigating">Navigating to glyphs.</A>-->
78 <A NAME="Navigating">グリフの呼び出し方</A>
79 </H2>
80 <P>
81 <!--
82 The font view provides one way of navigating around the glyphs in a font.
83 Simple scroll around it until you find the glyph you need and then double
84 click on it to open a window looking at that glyph. -->
85 フォントビュー (表示画面) は、フォント内のグリフを呼び出すための一つの方法を提供します。単純に、あなたが必要とするグリフがみつかるまで画面をスクロールしてから、そのグリフをダブルクリックして、グリフを見るためのウィンドウを開いてください。
86 <P>
87 <!--
88 Typing a glyph will move to that glyph. -->
89 文字をタイプすれば、その文字に割り当てられたグリフに移動します。
90 <P>
91 <!--
92 However some fonts are huge (Chinese, Japanese and Korean fonts have thousands
93 or even tens of thousands of glyphs) and scrolling around the font view is
94 a an inefficient way of finding your glyph. <CODE>View-&gt;Goto </CODE>provides
95 a simple dialog which will allow you to move directly to any glyph for which
96 you know the name (or encoding). If your font is a Unicode font, then this
97 dialog will also allow you to find glyphs by block name (ie. Hebrew rather
98 than Alef). -->
99 しかしながらある種のフォントは巨大で (中国語や日本語・韓国語のフォントは数千から数万字にも及ぶグリフを含みます) フォントビューをスクロールして回るのはグリフを探す方法としては非効率です。<CODE>表示(<U>V</U>)</CODE>→<CODE>移動(<U>G</U>)</CODE> を実行するとダイアログが表示され、そこでグリフの名前 (または文字符号) を入力すれば、目的の文字に直接移動することができます。あなたのフォントが Unicode フォントであるなら、グリフを探すときにこのダイアログにブロック名を入力することができます (例: Alef でなく Hebrew と入力できる)。
100 <P>
101 <!--
102 The simplest way to navigate is just to go to the next or previous glyph.
103 And <CODE>View-&gt;Next Char</CODE> and <CODE>View-&gt;Prev Char</CODE> will
104 do exactly that. -->
105 いちばん単純な呼び出し方法は、前後の文字に移動することです。これらの操作は、<CODE>表示(<U>V</U>)</CODE>→<CODE>次のグリフ(<U>N</U>)</CODE> と <CODE>表示(<U>V</U>)</CODE>→<CODE>前のグリフ(<U>P</U>)</CODE> でできます。
106 <H2>
107 <!--<A NAME="Creating-o">Creating </A>the letter "o" - - consistent directions -->
108 文字“o”の <A NAME="Creating-o">作成</A>——矛盾の無いパスの向き
109 </H2>
110 <P>
111 <!--
112 In the previous example the bitmap of the letter filled the canvas of the
113 image. And when FontForge imported the image it needed to be scaled once
114 in the program. But usually when you create the image of the letter you have
115 some idea of how much white space there should be around it. If your images
116 are exactly one em high then FontForge will scale them automatically to be
117 the right size. So in the following examples all the images have exactly
118 the right amount of white-space around them to fit perfectly in an em. -->
119 さきほどの例では、文字のビットマップは画像の大きさいっぱいに描かれていました。そのため FontForge に画像を取り込んだ時、最初にプログラム内で拡大/縮小を行う必要がありました。しかし一般的には、文字の画像を作成する時には、その周りにどれだけの空白を置くかをあらかじめ想定しているのがふつうです。画像の高さがちょうど全角 (em) に等しい場合、FontForge は正しいサイズに自動的に拡大/縮小します。これ以降の例では、全ての画像は、全角にぴったり一致するだけの空白を文字の周りに含んでいるものとします。
120 <P>
121 <!--
122 For the next example double click on the square in the font view that should
123 contain "o", and import "o_Ambrosia.png" into it. -->
124 次の例を表示するには、フォントビュー内で“o”を含んでいるマスをダブルクリックして“o_Ambrosia.png”を取り込んでください。
125 <TABLE BORDER CELLPADDING="2">
126 <CAPTION>
127 <!-- Stages in editing "o" -->
128 文字“o”の編集の各段階
129 </CAPTION>
130 <TR>
131 <TD><IMG src="../../_images/o1.png" WIDTH="190" HEIGHT="287"></TD>
132 <TD><IMG src="../../_images/o2.png" WIDTH="190" HEIGHT="287"></TD>
133 <TD><IMG src="../../_images/o3.png" WIDTH="190" HEIGHT="287"></TD>
134 <TD><IMG src="../../_images/o4.png" WIDTH="190" HEIGHT="287"></TD>
135 </TR>
136 </TABLE>
137 <P>
138 <!--
139 Notice that the first outline is drawn clockwise and the second
140 counter-clockwise. This change in drawing direction is important. Both PostScript
141 and TrueType require that the outer boundary of a glyph be drawn in a certain
142 direction (they happen to be opposite from each other, which is a mild
143 annoyance), within FontForge all outer boundaries must be drawn clockwise,
144 while all inner boundaries must be drawn counter-clockwise. -->
145 最初のアウトラインは時計回りに、2 番目を反時計回りに描かれていることに注意してください。PostScript・TrueTypeのどちらにおいてもグリフの輪郭は特定の向きに描かれなくてはならないことに決まっており (ちょっと面倒なことに、これらは互いに逆方向になっています)、FontForge では外側の輪郭線はすべて時計回りに、内側の輪郭線はすべて反時計回りでなくてはなりません。
146 <P>
147 <!--
148 If you fail to alternate directions between outer and inner boundaries you
149 may get results like the one on the left
150 <IMG src="../../_images/o-baddir.png" WIDTH="51" HEIGHT="28">. If you fail to draw the
151 outer contour in a clockwise fashion the errors are more subtle, but will
152 generally result in a less pleasing result once the glyph has been rasterized. -->
153 外側の輪郭と内側の輪郭を逆向きにするのを忘れた場合、この図 <IMG src="../../_images/o-baddir.png" WIDTH="51" HEIGHT="28"> の左側のような結果が得られるでしょう。外側を時計回りにするということを忘れた場合は、エラーはもっと軽微なものですが、それでも一般的には、グリフをラスタライズする必要が生じた時にあまり愉快ではない結果が得られるでしょう。
154 <P>
155 <!--
156 <SMALL><STRONG>TECHNICAL AND CONFUSING</STRONG>: the exact behavior of
157 rasterizers varies. Early PostScript rasterizers used a "non-zero winding
158 number rule" while more recent ones use an "even-odd" rule. TrueType uses
159 the "non-zero" rule. The description given above is for the "non-zero" rule.
160 The "even-odd" rule would fill the "o" correctly no matter which way the
161 paths were drawn (though there would probably be subtle problems with
162 hinting).</SMALL> -->
163 <SMALL><STRONG>技術的で分かりにくい事柄</STRONG>: ラスタライザの正確なふるまいは様々です。初期の PostScript ラスタライザは「非ゼロ巻き数ルール」を使っていましたが、最近のものは「奇偶ルール」を使います。TrueType は「非ゼロルール」です。上で行った説明は「非ゼロルール」です。「奇偶ルール」の場合、パスがどちら向きであっても問題なく“o”は正確に表示されます (ただしヒント処理のときに微妙な問題をひき起こすでしょう)。</SMALL>
164 <P>
165 <!--
166 <SMALL>Filling using the <A NAME="even-odd">even-odd </A>rules that a line
167 is drawn from the current pixel to infinity (in any direction) and the number
168 of contour crossings is counted. If this number is even the pixel is not
169 filled. If the number is odd the pixel is filled. In the
170 <A NAME="non-zero">non-zero </A>winding number rule the same line is drawn,
171 contour crossings in a clockwise direction add 1 to the crossing count,
172 counter-clockwise contours subtract 1. If the result is 0 the pixel is not
173 filled, any other result will fill it.</SMALL> -->
174 <SMALL><A NAME="even-odd">奇偶</A>ルールを用いた塗りつぶしは、現在のピクセルから (任意の方向に) 直線を引き、輪郭線と交差する回数を数えるというものです。この回数が偶数なら、ピクセルは塗りつぶしません。回数が奇数ならピクセルを塗りつぶします。<A NAME="non-zero">非ゼロ</A>巻き数ルールでも同じ線を引きます。時計回りの輪郭線と交差するたびに交差回数に 1 を加え、反時計回りの線に交差するたびに 1 を引きます。結果が 0 ならば、ピクセルは塗りつぶさず、それ以外の値ならば塗りつぶします。</SMALL>
175 <P>
176 <!--
177 The command <CODE><A HREF="elementmenu.html#Correct">Element-&gt;Correct
178 Direction</A></CODE> will look at each selected contour, figure out whether
179 it qualifies as an outer or inner contour and will reverse the drawing direction
180 when the contour is drawn incorrectly. -->
181 <A HREF="elementmenu.html#Correct"><CODE>エレメント(<U>L</U>)</CODE>→<CODE>アウトラインの向きを修正(<U>C</U>)</A></CODE> コマンドは、選択された各輪郭を眺め、それが外側になるか内側になるかを判断し、輪郭線が間違って逆向きに描かれている場合にはその向きを逆転させます。
182 <P>
183 <P ALIGN=Center>
184 — <A HREF="editexample.html">前</A> — <A HREF="overview.html">目次</A>
185 — <A HREF="editexample3.html">次</A> —
186 </DIV>
187 </BODY></HTML>