| 1 | <HTML> |
| 2 | <HEAD> |
| 3 | <!-- Created with AOLpress/2.0 --> |
| 4 | <!-- AP: Created on: 19-Feb-2004 --> |
| 5 | <!-- AP: Last modified: 13-Oct-2004 --> |
| 6 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> |
| 7 | <!--<TITLE>Autotracing bitmaps in FontForge</TITLE>--> |
| 8 | <TITLE>FontForge でビットマップを自動トレースする方法</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 | <!--Autotracing bitmaps in FontForge--> |
| 16 | FontForge でビットマップを自動トレースする方法 |
| 17 | </H1> |
| 18 | <P> |
| 19 | <!-- |
| 20 | FontForge does not have a native autotrace, but it will happily use the output |
| 21 | of two freely available programs which do autotracing. These are: --> |
| 22 | FontForge には自動トレース機能はありませんが、2 種類の無料で入手可能な自動トレースプログラムの出力を便利に使うことができます。その 2 種類は: |
| 23 | <UL> |
| 24 | <LI> |
| 25 | <!--Peter Selinger's <A HREF="http://potrace.sf.net/">potrace</A>--> |
| 26 | Peter Selinger の <A HREF="http://potrace.sf.net/">potrace</A> および |
| 27 | <LI> |
| 28 | <!--Martin Weber's <A HREF="http://sourceforge.net/projects/autotrace/">autotrace |
| 29 | program</A><BR> --> |
| 30 | Martin Weber の <A HREF="http://sourceforge.net/projects/autotrace/">autotrace</a> プログラムです。<BR> |
| 31 | <!--<FONT COLOR="Red"><STRONG>CAVEAT: </STRONG></FONT>Autotrace 2.8 changed its |
| 32 | argument conventions (around Dec 2001). New versions (after 15 Dec) of fontforge |
| 33 | will not work with autotrace2.7, old versions of fontforge will not work |
| 34 | with autotrace2.8. I see no way to make fontforge work with both or to detect |
| 35 | the current version...<BR> --> |
| 36 | <FONT COLOR="Red"><STRONG>警告: </STRONG></FONT>AutoTrace 2.8 はコマンドライン引数の用法を (2001年12月頃に) 変更しました。FontForge の新しいバージョン (2001年12月15日以降) は autotrace 2.7 では動作せず、FontForge の古いバージョンは autotrace 2.8 では動きません。FontForge がどちらでも動作するようにする方法も、現在のバージョンを検出する方法も見つかりませんでした……<BR> |
| 37 | <!--<FONT COLOR="Red"><STRONG>CAVEAT2: </STRONG></FONT>I may not be loading the |
| 38 | results of autotrace properly in all cases (I do in my test cases, of course). |
| 39 | AutoTrace traces out both foreground and background regions, so I may sometimes |
| 40 | leave behind a lump which represents a background area. Just delete it if |
| 41 | it happens (and send me the image so I can fix things up). --> |
| 42 | <FONT COLOR="Red"><STRONG>警告 2: </STRONG></FONT>おそらく、場合によっては autotrace の出力が正しく読み込まれない場合があるでしょう (もちろん、私のテストケースでは正しく動いています)。AutoTrace は前面と背面の両方をトレースするので、ときたま背面領域を表す塊が下に残ることがあります。それが起こった場合は消せば問題なく使用できます (その後、その画像を送ってくだされば、その事態が起こらないように修正することができます)。 |
| 43 | </UL> |
| 44 | <P> |
| 45 | <!-- |
| 46 | You must download at least one of these, (and possibly build it), and install |
| 47 | it somewhere along your PATH. --> |
| 48 | これらのうち少なくともどちらか一つをダウンロード (おそらくビルドも) して、PATH で指定されたパスのどこかにインストールする必要があります。 |
| 49 | <P> |
| 50 | <!-- |
| 51 | Having done that you must get an image into the background of the glyph(s) |
| 52 | you want to autotrace. There are several ways of doing this: --> |
| 53 | これが終わったら、自動トレースを行いたいグリフの背景に画像を読み込む必要があります。これを行うにはいくつかの方法があります: |
| 54 | <DL> |
| 55 | <DT> |
| 56 | <!--From a bitmap font --> |
| 57 | ビットマップフォントから |
| 58 | <DD> |
| 59 | <!--If you want to autotrace a bitmap font then (from the FontView)--> |
| 60 | ビットマップフォントを自動トレースする場合、(フォントビューから) 以下の操作を行ってください。 |
| 61 | <UL> |
| 62 | <LI> |
| 63 | <!-- (You will probably want to start out with a new font, but you might not) --> |
| 64 | (おそらく、新しいフォントで作業を始めたいとお考えでしょうが、違うかもしれません) |
| 65 | <LI> |
| 66 | <!-- File->Import --> |
| 67 | <CODE>ファイル(<U>F</U>)</CODE>→<CODE>取り込み(<U>I</U>)...</CODE> |
| 68 | <LI> |
| 69 | <!-- select the bitmap font type (bdf, FON, embedded in a ttf file, TeX bitmap |
| 70 | (GF, PK), etc.) --> |
| 71 | ビットマップフォントのタイプ (BDF, FON, TTF ファイルに埋め込み、TeX ビットマップ (GF, PK) など) を選択する |
| 72 | <LI> |
| 73 | <!-- turn on the <CODE>[*] As Background </CODE>flag --> |
| 74 | <CODE>[*] 背景として使用</CODE> フラグをオンにする |
| 75 | <LI> |
| 76 | <!-- Select your font file --> |
| 77 | フォントファイルを選択する |
| 78 | <LI> |
| 79 | <!-- This should place the bitmaps into the background of the glyphs in the font. |
| 80 | Nothing will be visible in the font view, but if you open up an outline glyph |
| 81 | view, you should see the bitmap version of the glyph as a grey background. --> |
| 82 | これにより、フォントの各グリフの背景にビットマップが配置されるはずです。フォントビューからは何も見えませんが、アウトライングリフビューを開けば、ビットマップ版のグリフが灰色の背景として表示されているはずです。 |
| 83 | </UL> |
| 84 | <DT> |
| 85 | <!--From the clipboard--> |
| 86 | クリップボードから |
| 87 | <DD> |
| 88 | <!--If you have an application that supports sending image selections by mime |
| 89 | type (kde does this), then you should be able to copy the image in that |
| 90 | application and paste it into the appropriate glyph window in FontForge --> |
| 91 | 選択された画像を MIME タイプを指定して送信する処理 (KDE はこれを行います) をサポートしているアプリケーションがあれば、そのアプリケーションで画像をコピーして、FontForge の適切なグリフウィンドウに貼りつけることができます。 |
| 92 | <DT> |
| 93 | <!--From an image file--> |
| 94 | 画像ファイルから |
| 95 | <DD> |
| 96 | <!--If you have a bitmap in an image (it works best if it IS a black and white |
| 97 | bitmap image, rather than a color image) --> |
| 98 | ビットマップ画像 (カラー画像よりも、白黒 2 値の画像の方がうまく処理できます) がある場合 |
| 99 | <UL> |
| 100 | <LI> |
| 101 | <!-- Open up an outline glyph view for the appropriate glyph --> |
| 102 | 適切なグリフのアウトライングリフビューを開く |
| 103 | <LI> |
| 104 | <!-- Make the Background layer active (this is usually not necessary) --> |
| 105 | 背景レイヤーを有効にする (これは通常不要です) |
| 106 | <LI> |
| 107 | <!-- File->Import --> |
| 108 | <CODE>ファイル(<U>F</U>)</CODE>→<CODE>取り込み(<U>I</U>)...</CODE> |
| 109 | <LI> |
| 110 | <!-- select Format=Image (this will show you any image format that fontforge supports) --> |
| 111 | <CODE>フォーマット</CODE> として <CODE>画像</CODE> を選択する (FontForge がサポートする全ての画像フォーマットが表示されます)。 |
| 112 | <LI> |
| 113 | <!-- Select your file --> |
| 114 | ファイルを選択する |
| 115 | <LI> |
| 116 | <!-- The image should now be visible in the background of this glyph --> |
| 117 | その画像が、このグリフの背景として表示されるはずです。 |
| 118 | </UL> |
| 119 | <DT> |
| 120 | <!--From multiple image files--> |
| 121 | 複数の画像ファイルから |
| 122 | <DD> |
| 123 | <!--If you have many images, you can load them with one command, but you must |
| 124 | name them appropriately. For example if your font contains unicode characters |
| 125 | U+0041 (LATIN CAPITAL LETTER A) through U+0049 (LATIN CAPITAL LETTER J) then |
| 126 | create files called "uni0041.png", "uni0042.png", ... "uni0049.png" containing |
| 127 | the images for the appropriate characters, then (from the Font View) --> |
| 128 | 複数の画像ファイルがある場合、それらを 1 回のコマンドで読み込むことができますが、そのためには適切な名前をつけておかねばなりません。フォントに Unicode 文字 U+0041 (LATIN CAPITAL LETTER A) から U+0049 (LATIN CAPITAL LETTER J) までが含まれている場合、それぞれの文字の画像を含む“uni0041.png”,“uni0042.png”, …“uni0049.png”というファイルを作成して、それから |
| 129 | <UL> |
| 130 | <LI> |
| 131 | <!-- Select the requisite glyphs --> |
| 132 | 必要なグリフを選択する |
| 133 | <LI> |
| 134 | <!-- File->Import --> |
| 135 | <CODE>ファイル(<U>F</U>)</CODE>→<CODE>取り込み(<U>I</U>)...</CODE> |
| 136 | <LI> |
| 137 | <!-- select Format=Image template --> |
| 138 | フォーマット として 画像テンプレート を選択する |
| 139 | <LI> |
| 140 | <!-- select the first of your images, "uni0041.png" --> |
| 141 | 画像の最初のファイル“uni0041.png”を選択する |
| 142 | <LI> |
| 143 | <!-- This should load all images that match that template ("uni*.png") into the |
| 144 | appropriate glyph slot --> |
| 145 | これにより、テンプレート (“uni*.png”) に一致するすべての画像を適切な個々のグリフに読み込みます。 |
| 146 | </UL> |
| 147 | </DL> |
| 148 | <P> |
| 149 | <!-- |
| 150 | Once you have background images in your font (and have installed an autotrace |
| 151 | program) --> |
| 152 | フォントの背景画像がフォントに含まれているなら (自動トレースプログラムがインストールされているなら) |
| 153 | <UL> |
| 154 | <LI> |
| 155 | <!--Select all the glyphs you wish to autotrace--> |
| 156 | 自動トレースを行うグリフを選択する |
| 157 | <LI> |
| 158 | <!--Element->Autotrace--> |
| 159 | <CODE>エレメント(<U>L</U>)</CODE>→<CODE>自動トレース(<U>R</U>)</CODE> |
| 160 | </UL> |
| 161 | <P> |
| 162 | <!-- |
| 163 | This can take a while, so be patient. --> |
| 164 | これにはしばらく時間がかかりますので、辛抱強くお待ちください。 |
| 165 | <P> |
| 166 | <!-- |
| 167 | <FONT COLOR="Red"><STRONG>Warning: </STRONG></FONT>Unless you are working |
| 168 | with a TeX bitmap font, you will most likely have an extremely low resolution |
| 169 | image. Autotrace programs work better the more resolution you give them. --> |
| 170 | <FONT COLOR="Red"><STRONG>警告: </STRONG></FONT>TeX のビットマップフォントを処理しているのでない限り、極端に低い解像度の画像を使用していることと思います。自動トレースを行うプログラムは、より高い解像度の方が上手に処理を行います。 |
| 171 | <P> |
| 172 | <!-- |
| 173 | If you hold down the shift key when you invoke AutoTrace from the menu then |
| 174 | you will be prompted for arguments to pass to it, if you do not hold down |
| 175 | the shift key FontForge will use the same arguments it used last time. |
| 176 | AutoTrace's arguments are described in "$ autotrace -help" or in the README |
| 177 | file that came with the program. Please do not specify input/output files |
| 178 | or formats. FontForge fills these in. --> |
| 179 | Shift キーを押しながら、メニューから <CODE>自動トレース(<U>R</U>)</CODE> を選ぶとプログラムに与える引数を入力するように促されます。Shift キーを押していないと、FontForge は全開し要したのと同じ引数を使用します。AutoTrace の引数は“$ <CODE>autotrace -help</CODE>”で見ることができますし、プログラムに添付されている README ファイルにも書かれています。入出力ファイルやフォーマットを指定しないでください。それらは FontForge が割り当てます。 |
| 180 | <P> |
| 181 | <P> |
| 182 | <P ALIGN=Center> |
| 183 | — <A HREF="elementmenu.html#AutoTrace">戻る</A> — |
| 184 | <A HREF="overview.html">目次</A> — |
| 185 | </DIV> |
| 186 | </BODY></HTML> |