| 1 | <HTML> |
| 2 | <HEAD> |
| 3 | <!-- Created with AOLpress/2.0 --> |
| 4 | <!-- AP: Created on: 6-Dec-2000 --> |
| 5 | <!-- AP: Last modified: 3-Jul-2006 --> |
| 6 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> |
| 7 | <!-- |
| 8 | <TITLE>Steps to creating a font...</TITLE> --> |
| 9 | <TITLE>フォント作成のための手順…</TITLE> |
| 10 | <LINK REL="icon" href="../../_static/fftype16.png"> |
| 11 | <LINK REL="stylesheet" TYPE="text/css" HREF="FontForge.css"> |
| 12 | </HEAD> |
| 13 | <BODY> |
| 14 | <DIV id="in"> |
| 15 | <H1 ALIGN=Center> |
| 16 | <!--Tutorial<BR>--> |
| 17 | チュートリアル<BR> |
| 18 | <A HREF="editexample.html"><IMG src="../../_images/Nisshoki-Japan.png" WIDTH="39" |
| 19 | HEIGHT="26"></A> |
| 20 | <A HREF="../de/editexample.html"><IMG src="../../_images/GermanFlag.png" WIDTH="39" |
| 21 | HEIGHT="26"></A> |
| 22 | </H1> |
| 23 | <P> |
| 24 | <!-- |
| 25 | I shall not presume to teach aesthetics, I concentrate solely on the mechanics |
| 26 | here.<BR>--> |
| 27 | 私に美学を教える能力があるとは思いません。ここでは機能のみに集中します。<BR> |
| 28 | <!-- |
| 29 | <SMALL>(this tutorial is also available as a |
| 30 | <A HREF="../fontforge-tutorial.pdf">pdf version</A>)</SMALL> --> |
| 31 | <SMALL>(このチュートリアル (英語版) は <A HREF="http://fontforge.sourceforge.net/fontforge-tutorial.pdf">PDF 版</A>でも入手可能です)</SMALL> |
| 32 | <UL> |
| 33 | <LI> |
| 34 | <!-- <A HREF="editexample.html#FontCreate">Font Creation</A>--> |
| 35 | <A HREF="editexample.html#FontCreate">フォントの作成</A> |
| 36 | <LI> |
| 37 | <!-- <A HREF="editexample.html#CharCreate">Creating a glyph (tracing outlines)</A>--> |
| 38 | <A HREF="editexample.html#CharCreate">グリフの作成 (アウトラインのトレース) 法</A> |
| 39 | <LI> |
| 40 | <!-- <A HREF="editexample2.html#Navigating">Navigating to other glyphs</A>--> |
| 41 | <A HREF="editexample2.html#Navigating">他のグリフの呼び出し方</A> |
| 42 | <LI> |
| 43 | <!-- <A HREF="editexample2.html#Creating-o">On to the next glyph (consistent |
| 44 | directions)</A>--> |
| 45 | <A HREF="editexample2.html#Creating-o">次のグリフに関して (矛盾のないパスの向き)</A> |
| 46 | <LI> |
| 47 | <!-- <A HREF="editexample3.html#consistent-stems">Consistent serifs and stem |
| 48 | widths</A>--> |
| 49 | <A HREF="editexample3.html#consistent-stems">統一のとれたセリフとステムの太さ</A> |
| 50 | <LI> |
| 51 | <!-- <A HREF="editexample4.html#accents">Building accented glyphs</A>--> |
| 52 | <A HREF="editexample4.html#accents">アクセントつきグリフの組み立て方</A> |
| 53 | <LI> |
| 54 | <!-- <A HREF="editexample4.html#ligature">Building a ligature</A>--> |
| 55 | <A HREF="editexample4.html#ligature">合字の組み立て方</A> |
| 56 | <LI> |
| 57 | <!-- <A HREF="editexample5.html#metrics">Examining metrics</A>--> |
| 58 | <A HREF="editexample5.html#metrics">メトリックの確認法</A> |
| 59 | <UL> |
| 60 | <LI> |
| 61 | <!-- <A HREF="editexample5.html#baseline">Setting the baseline to baseline spacing |
| 62 | of a font</A> --> |
| 63 | <A HREF="editexample5.html#baseline">フォントのベースラインとベースラインの間隔の設定方法</A> |
| 64 | </UL> |
| 65 | <LI> |
| 66 | <!-- <A HREF="editexample5.html#Kerning">Kerning</A>--> |
| 67 | <A HREF="editexample5.html#Kerning">カーニング</A> |
| 68 | <LI> |
| 69 | <!-- <A HREF="editexample6.html#Variants">Glyph variants</A>--> |
| 70 | <A HREF="editexample6.html#Variants">異体関係にあるグリフ</A> |
| 71 | <LI> |
| 72 | <!-- <A HREF="editexample6.html#Marks">Anchoring marks</A>--> |
| 73 | <A HREF="editexample6.html#Marks">アンカーマーク</A> |
| 74 | <LI> |
| 75 | <!-- <A HREF="editexample6-5.html#Conditional">Conditional features</A>--> |
| 76 | <A HREF="editexample6-5.html#Conditional">条件つき機能</A> |
| 77 | <LI> |
| 78 | <!-- <A HREF="editexample7.html#checking">Checking your font</A>--> |
| 79 | <A HREF="editexample7.html#checking">フォントのチェック法</A> |
| 80 | <LI> |
| 81 | <!-- <A HREF="editexample7.html#Bitmaps">Bitmaps</A>--> |
| 82 | <A HREF="editexample7.html#Bitmaps">ビットマップ</A> |
| 83 | <LI> |
| 84 | <!-- <A HREF="editexample7.html#generating">Generating it</A>--> |
| 85 | <A HREF="editexample7.html#generating">フォントの出力方法</A> |
| 86 | <LI> |
| 87 | <!-- <A HREF="editexample7.html#Families">Font Families</A>--> |
| 88 | <A HREF="editexample7.html#Families">フォントファミリー</A> |
| 89 | <LI> |
| 90 | <!-- <A HREF="editexample7.html#summary">Final Summary</A>--> |
| 91 | <A HREF="editexample7.html#summary">最後のまとめ</A> |
| 92 | <LI> |
| 93 | <!-- <A HREF="scripting-tutorial.html">Scripting Tutorial</A> --> |
| 94 | <A HREF="scripting-tutorial.html">スクリプト処理のチュートリアル</A> |
| 95 | <LI> |
| 96 | <!-- <A HREF="scriptnotes.html#Special">Notes on various scripts</A>--> |
| 97 | <A HREF="scriptnotes.html#Special">各種の用字系における注意点</A> |
| 98 | </UL> |
| 99 | <BLOCKQUOTE ID="lit"> |
| 100 | <!--<B><SMALL>NOBLEMAN:</SMALL></B><SMALL> </SMALL>Now this is what I call |
| 101 | workmanship. There is nothing on earth more exquisite than a bonny book, |
| 102 | with well-placed columns of rich black writing in beautiful borders, and |
| 103 | illuminated pictures cunningly inset. But nowadays, instead of looking at |
| 104 | books, people read them. A book might as well be one of those orders for |
| 105 | bacon and bran that you are scribbling. --> |
| 106 | <p><B><SMALL>貴族:</SMALL></B><SMALL> </SMALL>これだよ、職人わざというのは。美しい書物以上に精緻をきわめたものはまたとあるまい。美しい縁どりに収められた漆黒の文字の見事な配列、巧みに挿入された色刷りの絵。ところがこの頃の人間は、書物を眺めようとせず、読んでばかりいる。これでは書物も、いま君が書きなぐっているベーコンや魚の注文伝票と、なんの変わりもありはしない。 |
| 107 | <P ALIGN=Right> |
| 108 | <!-- - - Saint Joan, Scene IV<BR> |
| 109 | George Bernard Shaw, 1924 --> |
| 110 | —『聖女ジョウン』第四場<BR> |
| 111 | ジョージ・バーナード・ショー, 1924 年<BR> |
| 112 | (中川龍一・小田島雄志訳) |
| 113 | </BLOCKQUOTE> |
| 114 | <H2> |
| 115 | <!--<A NAME="FontCreate">Font creation</A>--> |
| 116 | <A NAME="FontCreate">フォントの作成</A> |
| 117 | </H2> |
| 118 | <P> |
| 119 | <!-- |
| 120 | First create a new font with the <CODE>New</CODE> command in the |
| 121 | <CODE>File</CODE> menu (or by using the <KBD>-new</KBD> argument at startup). --> |
| 122 | まず、フォントを <CODE>ファイル(<U>F</U>)</CODE> メニューの <CODE>新規(<U>N</U>)</CODE> コマンドで (または、起動時に引数 <KBD>-new</KBD> を指定して) 作成します。 |
| 123 | <P> |
| 124 | <IMG src="../../_images/newfont.png" WIDTH="419" HEIGHT="189"> |
| 125 | <P> |
| 126 | <!-- |
| 127 | Give the font a name with the <CODE><A HREF="fontinfo.html">Font |
| 128 | Info</A></CODE> command from the <CODE>Element</CODE> menu. You use this |
| 129 | same command to set the copyright message and change the ascent and descent |
| 130 | (the sum of these two determines the size of the em square for the font, |
| 131 | and by convention is 1000 for postscript fonts, a power of two (often 2048 |
| 132 | or 4096) for truetype fonts and 15,000 for Ikarus fonts). <SMALL>(Also if |
| 133 | you are planning on making a truetype font you might want to check the Quadratic |
| 134 | Splines checkbox to use the native truetype format. Editing is a little more |
| 135 | difficult in this mode though)</SMALL> --> |
| 136 | フォントには <CODE>エレメント(<U>L</U>)</CODE> メニューの <CODE><A HREF="fontinfo.html">フォント情報(<U>F</U>)...</A></CODE> コマンドで名前をつけてください。このコマンドは他にも、著作権表示を設定したり高さ (ascent)・深さ (descent) を設定するのに使えます。高さと深さ、2 つの値の合計はフォントの全角正方形 (em square) を決定します。一般には PostScript フォントでは 1000, TrueType フォントでは 2 の冪乗 (多くは 2048 か 4096), Ikarus フォントでは 15000 です。<SMALL>(もし TrueType を作る予定ならば、<CODE>2 次スプライン(<U>Q</U>)</CODE> チェックボックスをオンにして、TrueType フォーマットそのもので編集した方がいいかもしれません。ただし、このモードでは編集が少し難しくなります)</SMALL> |
| 137 | <P> |
| 138 | <IMG SRC="fontinfo.png" WIDTH="325" HEIGHT="454"> |
| 139 | <P> |
| 140 | <!-- |
| 141 | You may also wish to use Encoding->Reencode to change what characters |
| 142 | are available in your font. FontForge generally creates new fonts with an |
| 143 | ISO-8859-1, which contains (most of) the characters needed for Western Europe |
| 144 | (the latin letters, some accented letters, digits, and symbols). --> |
| 145 | フォント内でどの文字が利用できるかを変更したい場合は、<CODE>エンコーディング(<U>N</U>)</CODE>→<CODE>エンコーディング変換(<U>R</U>)</CODE> を使用することができます。特に設定していなければ、FontForge は新しいフォントを ISO-8859-1 で作成します。このエンコーディングには、西ヨーロッパで必要とされる (ほとんどの) 文字 (ラテン文字、いくつかのアクセントつき文字、数字および記号) が含まれています。 |
| 146 | <H2> |
| 147 | <!--<A NAME="CharCreate">Creating a glyph</A>--> |
| 148 | <A NAME="CharCreate">グリフの作成法</A> |
| 149 | </H2> |
| 150 | <P> |
| 151 | <!-- |
| 152 | Once you have done that you are ready to start editing characters. Double |
| 153 | click on the entry for "C" in the font view above. You should now have an |
| 154 | empty Outline Character window: --> |
| 155 | それが終わったら、文字の編集を始める用意ができています。上のフォントビューの“C”の項目をダブルクリックして下さい。空の文字アウトラインウィンドウが表示されます。 |
| 156 | <P> |
| 157 | <IMG src="../../_images/C1.png" WIDTH="272" HEIGHT="283"> |
| 158 | <P> |
| 159 | <!-- |
| 160 | The outline glyph window contains two palettes snuggled up on the left side |
| 161 | of the window. The top palette contains a set of editing tools, and the bottom |
| 162 | palette controls which layers of the window are visible or editable. |
| 163 | --> |
| 164 | このアウトライングリフウィンドウの左端には、2 個のパレットが埋め込まれています。上のパレットは編集ツールの一覧を含み、下のパレットはウィンドウのどのレイヤが見え、どれが編集可能かを制御しています。 |
| 165 | <P> |
| 166 | <!-- |
| 167 | The foreground layer contains the outline that will become part of the font. |
| 168 | The background layer can contain images or line drawings that help you draw |
| 169 | this particular glyph. The guide layer contains lines that are useful on |
| 170 | a font-wide basis (such as the x-height). Currently all layers are empty. |
| 171 | --> |
| 172 | 前面レイヤはフォントの部品となるアウトラインを含んでいます。背面レイヤはこの特定のグリフを描画する補助となる画像または描線を含んでいます。ガイドレイヤはフォントごとの基準として役立つ線 (x ハイトなど) を含んでいます。今のところ、全てのレイヤは空です。 |
| 173 | <P> |
| 174 | <!-- |
| 175 | This window also shows the glyph's internal coordinate system with the x |
| 176 | and y axes drawn in light grey. A line representing the glyph's advance width |
| 177 | is drawn in black at the right edge of the window. FontForge assigns an advance |
| 178 | width of one em (in PostScript that will usually be 1000 units) to the advance |
| 179 | width of a new glyph. |
| 180 | --> |
| 181 | このウィンドウには、グリフの内部座標系が x 軸と y 軸とともに薄い灰色で示されています。グリフの送り幅 (advance width) を示す線が黒で、ウィンドウの右端に描かれています。FontForge は、新規に作るグリフの送り幅としては、1 em の幅を割り当てます (PostScript では、これは通常 1000 ユニットです)。 |
| 182 | <P> |
| 183 | <!-- |
| 184 | Select the Import command from the File menu and import an image of the glyph |
| 185 | you are creating. It will be scaled so that it is as high as the em-square. |
| 186 | --> |
| 187 | <CODE>ファイル(<U>F</U>)</CODE> メニューから <CODE>取り込み(<U>I</U>)...</CODE> コマンドを選び、あなたが作成したグリフの画像を取り込んでください。グリフの高さが全角正方形 (em-square) に一致するように拡大/縮小されます。 |
| 188 | <P> |
| 189 | <IMG src="../../_images/C2.png" WIDTH="272" HEIGHT="283"> |
| 190 | <P> |
| 191 | <!-- |
| 192 | Select the background layer as editable from the layers palette, move the |
| 193 | mouse pointer to one of the edges of the image, hold down the shift key, |
| 194 | depress and drag the corner until the image is a reasonable size, then move |
| 195 | the pointer onto the dark part of the image, depress the mouse and drag until |
| 196 | the image is properly positioned. --> |
| 197 | レイヤパレットで背面レイヤを選択して、編集可能な状態にします。マウスポインタを画像の端のどこかに合わせ、シフトキーを押しながら隅をクリックし、画像が適切なサイズになるまでドラッグします。そののち、ポインタを画像の暗色の部分に載せてマウスボタンを押下し、画像が適切な位置に来るまでドラッグします。 |
| 198 | <P> |
| 199 | <IMG src="../../_images/C3.png" WIDTH="272" HEIGHT="283"> |
| 200 | <P> |
| 201 | <!-- |
| 202 | If you have downloaded the |
| 203 | <A HREF="http://sourceforge.net/projects/autotrace/">autotrace program</A> |
| 204 | you can invoke <CODE>Element->AutoTrace</CODE> to generate an outline |
| 205 | from the image. But if you have not you must add points yourself. Change |
| 206 | the active layer to be the foreground, and go to the tools palette and select |
| 207 | the round (or curve) point. Then move the pointer to the edge of the image |
| 208 | and add a point. I find that it is best to add points at places where the |
| 209 | curve is horizontal or vertical, at corners, or where the curve changes |
| 210 | inflection (A change of inflection occurs in a curve like "S" where the curve |
| 211 | changes from being open to the left to being open on the right. If you follow |
| 212 | these rules hinting will work better. --> |
| 213 | もしあなたが <A HREF="http://sourceforge.net/projects/autotrace/">autotrace</A> プログラムをダウンロード済みならば、<CODE>エレメント(<U>L</U>)</CODE>→<CODE>自動トレース(<U>R</U>)</CODE> で画像からアウトラインを生成することができます。しかし、インストールしていない場合は自分で点を追加しなければなりません。前面をアクティブレイヤに変更してから、ツールパレットで丸い (曲線上の) 点を選択します。その後でポインタを画像の縁に移し、点を追加します。私の経験では、曲線が水平または垂直になっている点や、角、そして変曲点 (曲率方向の変化は、S 字形の曲線が、右側に開いた部分から左側から開いた部分へ移るところで起こります) に点を追加するのが最良です。この方針に従えば、ヒント処理がより適切に働くようになるでしょう。 |
| 214 | <P> |
| 215 | <IMG src="../../_images/C4.png" WIDTH="272" HEIGHT="283"> |
| 216 | <P> |
| 217 | <!-- |
| 218 | It is best to enter a curve in a clockwise fashion, so the next point should |
| 219 | be added up at the top of the image on the flat section. Because the shape |
| 220 | becomes flat here, a curve point is not appropriate, rather a tangent point |
| 221 | is (this looks like a little triangle on the tools palette). A tangent point |
| 222 | makes a nice transition from curves to straight lines because the curve leaves |
| 223 | the point with the same slope the line had when it entered. --> |
| 224 | 曲線は時計回りに入力していくのが最善です。そうすれば、次の点は、画像の上端の平らな部分に追加されます。輪郭線がそこで直線にさしかかるので、曲線上の点は不適切で、(曲線と直線の) 接点 (ツールパレット上では小さな三角形のように見えます) のほうが適切です。接点は曲線から直線への美しい移り変わりを形づくります。これは、その点における曲線の傾きが、引き続く直線が入力された時の傾きと同じに保たれるからです。 |
| 225 | <P> |
| 226 | <IMG src="../../_images/C5.png" WIDTH="272" HEIGHT="283"> |
| 227 | <P> |
| 228 | <!-- |
| 229 | At the moment this "curve" doesn't match the image at all, don't worry about |
| 230 | that we'll fix it later, and anyway it will change on its own as we continue. |
| 231 | Note that we now have a control point attached to the tangent point (the |
| 232 | little blue x). The next point needs to go where the image changes direction |
| 233 | abruptly. Neither a curve nor a tangent point is appropriate here, instead |
| 234 | we must use a corner point (one of the little squares on the tools palette). |
| 235 | --> |
| 236 | 今のところこの「曲線」は画像と全く一致していません。後で修正しますし、作業を続けるに従っていずれにしろ変形するのでこれは気にせず続けてください。制御点が接点 (小さな青い×印) につながっていることに注意してください。画像で輪郭の方向が突然変化している箇所に次の点を置かなければなりません。曲線上の点も接点も不適切ですから、角の点 (ツールパレット上の小さな四角の一つ) を使用しなくてはなりません。 |
| 237 | <P> |
| 238 | <IMG src="../../_images/C6.png" WIDTH="272" HEIGHT="283"> |
| 239 | <P> |
| 240 | <!-- |
| 241 | As you see the old curve now follows the image a bit more closely. We continue |
| 242 | adding points until we are ready to close the path. --> |
| 243 | 図に見るように、先ほどの曲線はわずかながら前より密接に画像に沿っています。 |
| 244 | パスが閉じる直前のところまで、点の追加を続けましょう。 |
| 245 | <P> |
| 246 | <IMG src="../../_images/C7.png" WIDTH="272" HEIGHT="283"> |
| 247 | <P> |
| 248 | <!-- |
| 249 | Then we close the path just by adding a new point on top of the old start |
| 250 | point --> |
| 251 | その後、以前の開始点の上に重ねて新しく点を追加すれば、それでパスは閉じます。 |
| 252 | <P> |
| 253 | <IMG src="../../_images/C8.png" WIDTH="272" HEIGHT="283"> |
| 254 | <P> |
| 255 | <!-- |
| 256 | Now we must make the curve track the image more closely, to do this we must |
| 257 | adjust the control points (the blue "x"es). To make all the control points |
| 258 | visible select the pointer tool and double-click on the curve and then move |
| 259 | the control points around until the curve looks right. --> |
| 260 | ここで、曲線が画像をより正確にたどるようにする必要がありますが、そのためには制御点 (青い×印) を調整する必要があります。 |
| 261 | 全ての制御点が見えるようにするため、ポインタツールを選んで曲線上でダブルクリックし、それから曲線が画像と同じ形になるように制御点を動かします。 |
| 262 | <P> |
| 263 | <IMG src="../../_images/C9.png" WIDTH="266" HEIGHT="279"> |
| 264 | <P> |
| 265 | <!-- |
| 266 | Finally we set width. Again with the pointer tool, move the mouse to the |
| 267 | width line on the right edge of the screen, depress and drag the line back |
| 268 | to a reasonable location. --> |
| 269 | 最後に幅を設定します。ポインタツールに戻り、マウスを画面の右端にある字幅線に合わせてクリックし、文字幅が適切な位置に来るまでドラッグして戻します。 |
| 270 | <P> |
| 271 | <IMG src="../../_images/C10.png" WIDTH="266" HEIGHT="279"> |
| 272 | <P> |
| 273 | <!-- |
| 274 | And we are done with this glyph. --> |
| 275 | これでこのグリフについては完成です。 |
| 276 | <P> |
| 277 | <!-- |
| 278 | If you are mathematically inclined you may be interested in the coordinates |
| 279 | that fontforge shows in the upper left of the window. Generally you can draw |
| 280 | glyphs quite happily without bothering about these, but for those who are |
| 281 | interested here is some basic info: --> |
| 282 | もしあなたが数学に興味のある性格ならば、FontForge がウィンドウの左上に表示する座標値に興味を持たれたことでしょう。一般にはこれらの値を気にしなくても非常に快適にグリフを描画することができますが、興味をお持ちの方のために基本的な情報を提供しておきます: |
| 283 | <UL> |
| 284 | <LI> |
| 285 | <!-- Each glyph has its own coordinate system. --> |
| 286 | 各グリフはそれ自身の座標系をもっています。 |
| 287 | <LI> |
| 288 | <!-- The vertical origin is the font's baseline (the line on which most latin |
| 289 | letters rest) --> |
| 290 | 垂直方向の原点はフォントのベースライン (ほとんどのラテン文字が載っかっている線) の上にあります。 |
| 291 | <LI> |
| 292 | <!-- The horizontal origin is the place where drawing the glyph will commence. |
| 293 | In the example above what gets drawn initially is empty space, that is fairly |
| 294 | common, and that empty space (the distance from the origin to the left edge |
| 295 | of the glyph) is called the left side bearing. --> |
| 296 | 水平方向の原点が、グリフの描画が開始される基準位置です。上の例では、最初に描画されるのは空っぽの空間ですが、これは非常によくあることで、この空っぽの空間 (原点からグリフの左端までの距離) を左サイドベアリングと呼びます。 |
| 297 | <LI> |
| 298 | <!-- The units of the coordinate system are determined by the em-size of the font. |
| 299 | This is the sum of the font's ascent and descent. In the example above the |
| 300 | font's ascent is 800 and descent is 200, and the ascent line (the one just |
| 301 | above the top of the "C") is 800 units from the baseline, while the descent |
| 302 | line is 200 units below. --> |
| 303 | 座標系の単位はフォントの em サイズにより決まります。これはフォントの高さと深さ の和です。上の例ではフォントの高さは 800 で、深さは 200 です。そして高さの基準線 (“C”の最上部のすぐ上にある線) はベースラインから 800 ユニット離れており、深さの基準線は 200 ユニット下にあります。 |
| 304 | <LI> |
| 305 | <!-- So a position of 282,408 (as above) means that the cursor is 282 units right |
| 306 | of the horizontal origin and 408 units above the baseline (or halfway between |
| 307 | baseline and ascent). --> |
| 308 | ですから、(上の図の) <CODE>282,408</CODE> という位置は、カーソルが水平方向の原点から 282 ユニット右に、ベースラインから 408 ユニット上に (すなわち、上端と下端のほぼ中間に) ある ということを意味しています。 |
| 309 | </UL> |
| 310 | <P ALIGN=Center> |
| 311 | — <A HREF="overview.html">前</A> — <A HREF="overview.html">目次</A> — |
| 312 | <A HREF="editexample2.html">次</A> — |
| 313 | </DIV> |
| 314 | </BODY></HTML> |
| 315 |