| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 
 | <HTML>
<HEAD>
<!--   Created with AOLpress/2.0 -->
<!--   AP: Created on: 27-Jan-2003 -->
<!--   AP: Last modified: 11-Dec-2005 -->
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!-- <TITLE>Using FontForge with TeX</TITLE> -->
     <TITLE>FontForge を TeX とともに使用する方法</TITLE>
  <LINK REL="icon" href="../../_static/fftype16.png">
  <LINK REL="stylesheet" TYPE="text/css" HREF="FontForge.css">
</HEAD>
<BODY>
<DIV id="in">
  <H1 ALIGN=Center>
<!--   <A NAME="TeX">FontForge and TeX</A> -->
       <A NAME="TeX">FontForge と TeX</A>
  </H1>
  <P>
<!--
  FontForge has a number of features built in to it to deal with TeX. -->
  FontForge には、TeX を取り扱うための多数の機能が組み込まれています。
  <P>
<!--
  It can read "pk" and "gf" bitmap files and
  <A HREF="elementmenu.html#AutoTrace">autotrace</A> them to generate outline
  fonts. It can even invoke metafont directly on a ".mf" file, generate a "gf"
  bitmap from that, autotrace it and generate an outline font. -->
  “pk”形式と“gf”形式のビットマップを読み込むことができ、それらに <A HREF="elementmenu.html#AutoTrace">autotrace</A> を適用してアウトラインフォントを生成することができます。
  “.mf”ファイルに metafont を直接呼び出して“gf”ビットマップを生成し、autotrace にかけてアウトラインフォントを出力することさえ可能です。
  <P>
<!--
  It can read ligature, kerning information from a ".tfm" file. It can create
  a tfm file. -->
  合字とカーニングの情報を“.tfm”ファイルから読み込むことができます。
  TFM ファイルを作成することもできます。
  <P>
<!--
  The <A HREF="../Encodings.ps.gz">encodings</A> file has a number of standard
  TeX encodings built in to it. -->
  <A HREF="https://fontforge.org/downloads/Encodings.ps.gz">エンコーディング</A> ファイルには、多数の標準 TeX エンコーディングが組み込まれています。
  <P>
<!--
  For large CJK truetype fonts it can read a sub-font definition file as defined
  in the ttf2tfm man page and <A HREF="generate.html">generate</A> a series
  of postscript type-1 fonts based on those two. -->
  大規模な CJK の TrueType フォントに対しては、ttf2tfm のマニュアルページで手議されているとおりのサブフォント定義ファイルを読み込むことができ、この 2 つのファイルを元に一揃いの PostScript Type 1 フォントを <A HREF="generate.html">出力</A> することができます。
  <P>
<!--
  In consultation with the lilypond group we have designed a new
  <A HREF="non-standard.html">SFNT table 'TeX </A>' for storing TeX specific
  information in True/OpenType files. -->
  Lilypond 開発者グループと協議して、TeX 固有の情報を True/OpenType ファイルに格納する <A HREF="non-standard.html">SFNT テーブル‘TeX’</A> を新たに設計しました。
  <H3>
<!--   Generating a tfm file (and an enc file). -->
       TFM ファイル (と ENC ファイル) を出力する方法
  </H3>
  <P>
<!--
  Before you generate a tfm file you should perform some of the following -->
  TFM ファイルを出力する前に、以下の手順のいくつかを実行しなければなりません。
  <DL>
    <DT>
<!--  Set the font parameters -->
      フォントのパラメータを設定する
    <DD>
<!--  Do this with Element->Font Info->TeX. -->
      これは、<CODE>エレメント(<U>L</U>)</CODE>→<CODE>フォント情報(<U>F</U>)...</CODE>→<CODE>[ΤεΧ]</CODE> で行います。
    <DT>
<!--  Optionally set <A NAME="Italic">Italic</A> Correction values for glyphs-->
      必要に応じて、グリフの<A NAME="Italic">イタリック</A>補正値を入力する
    <DD>
<!--  (FontForge will generate default values for italic fonts, so you only need
      do this if FontForge gets it wrong). -->
      (FontForge はイタリックフォントに対してデフォルトの値を生成しますので、この作業は、FontForge の見積りが間違っているときのみ行えば十分です)
      <UL>
	<LI>
<!--  	Select a glyph which should have an Italic Correction -->
  	イタリック補正を含むべきグリフを選択する
	<LI>
<!--  	Element->Glyph Info->Alt Pos -->
  	<CODE>エレメント(<U>L</U>)</CODE>→<CODE>グリフ情報(<U>I</U>)...→<CODE>[選択型の置換]</CODE> タブを選ぶ
	<LI>
<!--  	Press [New] -->
  	<CODE>[新規(<U>N</U>)]</CODE> を押す
	<LI>
<!--  	Set the tag to <CODE>Italic Correction</CODE> from the pulldown list -->
  	プルダウンリスト <CODE>タグ(<U>T</U>)</CODE> で <CODE>イタリック補正</CODE> を選ぶ
	<LI>
<!--  	Set the XAdvance to the italic correction -->
  	イタリック補正値を <CODE>ΔXadvance</CODE> に入力する
      </UL>
    <DT>
<!--  Optionally set any <A NAME="charlist">glyphlists</A>-->
      必要に応じて、何らかの TeX <A NAME="charlist">グリフリスト</A>を設定する
    <DD>
      <UL>
	<LI>
<!--  	Select the first glyph in the charlist (the smallest one) -->
  	TeX 文字リストに含める最初の文字 (コードが最小の文字) をセレクトする 
	<LI>
<!--  	Element->Glyph Info->Alt Subs -->
  	<CODE>エレメント(<U>L</U>)</CODE>→<CODE>文字情報(<U>I</U>)</CODE>→<CODE>[別の位置]</CODE> タブを選ぶ
	<LI>
<!--  	Press [New] -->
  	<CODE>[新規(<U>N</U>)...]</CODE> を押す
	<LI>
<!--  	Set the tag to <CODE>TeX Glyphlist</CODE> from the pulldown list -->
  	プルダウンリスト <CODE>タグ(<U>T</U>)</CODE> で <CODE>TeXグリフリスト</CODE> を選ぶ
	<LI>
<!--  	Type the names of all the other glyphs in the charlist into the Components
  	field<BR>
  	文字リストに含まれる他の全てのグリフの名前を <CODE>構成要素</CODE> フィールドに入力する<BR>
<!--  	So if the charlist is for left parenthesis<BR> -->
  	例えば、左括弧に対する文字リストの場合:<BR>
<!--  	You would select the lparen glyph and might type in "lparen.big lparen.bigger
  	lparen.biggest" -->
  	グリフ lparen を選択し、“<CODE>lparen.big lparen.bigger lparen.biggest</CODE>”と打ち込むことになる。
      </UL>
    <DT>
<!--  Optionally set any <A NAME="extension">extension</A> characters. -->
      必要に応じて、何らかの<A NAME="extension">拡張</a>文字を設定する
    <DD>
      <UL>
	<LI>
<!--  	If the glyph is in a charlist then Select the last glyph in the charlist
  	(the largest one) -->
  	そのグリフが TeX グリフリストに存在する場合、グリフリストの最後のグリフ (インデックスが最大の文字) をセレクトする
	<LI>
<!--  	Element->Glyph Info->Mult Subs -->
  	<CODE>エレメント(<U>L</U>)</CODE>→<CODE>文字情報(<U>I</U>)</CODE>→<CODE>[複数の置換先]</CODE> タブを選ぶ
	<LI>
<!--  	Press [New] -->
  	<CODE>[新規(<U>N</U>)]</CODE> を押す
	<LI>
<!--  	Set the tag to <CODE>TeX Extension list </CODE>from the pulldown list -->
  	プルダウンリスト <CODE>タグ(<CODE>T</CODE>)</CODE> で <CODE>TeX拡張リスト</CODE> を選ぶ
	<LI>
<!--  	Type the names of the glyphs that this character decomposes into in the order:
  	top middle bottom extension<BR>
  	If a field is not present use .notdef<BR> -->
  	この文字が分解される各グリフの名前を、以下の順番で入力する:<BR>
  	上部、中央、下部、拡張<BR>
  	フィールドが存在しない場合、.notdef を使用する<BR>
<!--  	So if the extension list is for left parenthesis<BR>
  	You would select the lparen.biggest glyph and might type in "lparen.top
  	lparen.mid lparen.bottom lparen.ext" -->
  	例えば、左括弧に対応する拡張リストの場合:
  	lparen.biggest を選択し、“<CODE>lparen.top lparen.mid lparen.bottom lparen.ext</CODE>" と入力することになる。
      </UL>
  </DL>
  <P>
<!--
  Note: When FontForge does a File->Merge Kern Info on a tfm file, it will
  set these values appropriately. -->
  注意: FontForge が <CODE>ファイル(<U>F</U>)</CODE>→<CODE>カーニング情報の統合(<U>M</U>)</CODE> を TFM ファイルに対して行った場合、これらの値は適切に設定されます。
  <P>
<!--
  Having done this to your satisfaction you are ready to generate a tfm file.
  Go to File->Generate Fonts, select one of the postscript encodings from
  the pulldown list, press the [Options] button and turn on the [*] Tfm &
  Enc check box. -->
  満足の行くまでこれを行ったならば、TFM ファイルを出力する準備ができています。
  <CODE>ファイル(<U>F</U>)</CODE>→<CODE>フォントを出力(<U>G</U>)</CODE> で出てくるプルダウンリストから PostScript エンコーディングのどれか 1 つを選び、<CODE>[オプション]</CODE> ボタンを押して <CODE>[*]TFMとENCを出力</CODE> チェックボックスをオンにします。
  <P>
<!--
  I'm not sure what you <EM>do</EM> with these files yet, but this should create
  them. -->
  あなたがこれらのファイルを使って何を<EM>行う</EM>のか筆者は完全に理解していませんが、それらはこの手順で作成できるでしょう。
  <H3>
<!--  <A NAME="TeX-Install">Installing a type1 (pfb) postscript font for TeX</A> -->
      <A NAME="TeX-Install">TeX に Type1 (PFB) PostScript フォントをインストールする方法</a>
  </H3>
  <P>
<!--
  I am a novice TeX/LaTeX user so my comments should be taken with a grain
  of salt. I did manage to get this process to work on my own system. -->
  筆者は初心者の TeX/LaTeX ユーザなので、コメントは眉に唾をつけて読んでください。
  手元のシステムではこの手順で動かすことに成功しました。
  <P>
<!--
  Installing a PostScript font for TeX is more complicated than one would hope
  (and so far I've only figured out how to install a Latin font). Instead of
  just moving the font file to some standard directory you must: -->
  PostScript フォントを TeX にインストールするのは予想よりずっと複雑です (そのため、私はラテン文字のフォントをインストールする方法しか説明できません)。
  フォントファイルを単に標準ディレクトリに移動するだけではなく以下のことをしなければなりません:
  <UL>
    <LI>
<!--  <configure TeX so that it is prepared for local additions> -->
      <TeX をローカルな追加に対応できるように設定しておく>
    <LI>
<!--  Rename the font file so that the filename is in a format TeX understands<BR>
      (I'm told this isn't required, but I couldn't get things to work without
      doing this. Perhaps I have an old system. Perhaps I didn't try hard enough) -->
      フォントファイルの名前を TeX が理解可能なフォーマットに変更する<BR>
      (これは不要だと聞いたのですが、この手順抜きではうまく動きませんでした。
       筆者のシステムが古いのか、正しい手順を踏んでいないのだと思います)
    <LI>
<!--  Create several helper files that TeX will use for its own purposes -->
      TeX が自分の目的のために使ういくつかのヘルパーファイルを作成する
    <LI>
<!--  Move each file type into its own special directory -->
      ファイルをそれぞれのファイルタイプごとに専用のディレクトリに移動する
    <LI>
<!--  Optionally: Create a package file to make it easy for LaTeX to find the font -->
      必要に応じて: LaTeX がフォントを見つけやすくするためのパッケージファイルを作成する
    <LI>
<!--  Optionally: Move the package file into its own directory -->
      必要に応じて: パッケージファイルをそれ自身のディレクトリに移動する
    <LI>
<!--  Use the updmap script or manually: -->
      updmap スクリプトを使用するか手動で以下を行う:
      <UL>
	<LI>
<!--  	Update dvips's configuration files so that it knows where to look for the
  	postscript fonts -->
  	dvips の設定ファイルを更新し、PostScript フォントを探す場所を知らせる
  
	<LI>
<!--  	Optionally: Update pdftex's configuration files so that it knows where to
  	look too. -->
  	必要に応じて、PdfTeX の設定ファイルも更新し、フォントを探す場所を知らせる
      </UL>
  </UL>
  <P>
<!--
  I suggest that before you read further you look at the following resources
  on the web: -->
  この先を読む前に、web 上の以下のリソースを参照することをお奨めします:
  <UL>
    <LI>
<!--  It is possible to add your fonts to the standard TeX directory structure,
      but the TeX guru's frown on this as it makes updating TeX difficult. They
      suggest instead that you make all your changes in some parallel directory
      and provide they instructions on how to go about doing this at:
      <A HREF="http://www.ctan.org/installationadvice/">Installation advice for
      TeX fonts and directories</A>. They also provide an example of a font
      installation but that is better explained in
      <A HREF="http://www.ctan.org/tex-archive/info/Type1fonts/fontinstallationguide.pdf">the
      LaTeX font-faq</A>.-->
      自作フォントを TeX の標準ディレクトリ構造に追加することも可能ですが、これを行うと TeX のアップグレードが難しくなるので、TeX グルの顰蹙をかうでしょう。
      彼らは、それと同じディレクトリ階層を別の場所に作って <A HREF="http://www.ctan.org/installationadvice/">TeX フォントとディレクトリに関するインストール上の助言</A> にあるように指定することを進めるでしょう。
      彼らは、より詳しく説明されたフォントのインストールの例を <A HREF="http://www.ctan.org/tex-archive/info/Type1fonts/fontinstallationguide.pdf">the LaTeX font-faq</A> で提供しています。
    <LI>
<!--  Old versions of TeX (ie. mine) are still worried about the old 8 character
      limitation on DOS filenames. This means that the tools I was using don't
      accept understandable filenames instead they require a format described in
      <A HREF="http://www.tug.org/fontname/html/index.html">TeX font file naming
      conventions</A>. If you are creating your own fonts this boils down to: -->
      古いバージョンの TeX (例えば筆者のシステム) は、いまだに昔の DOS ファイル名の 8 文字制限を気にかけます。
      つまり、筆者が使ったツールは <A HREF="http://www.tug.org/fontname/html/index.html">TeX font file naming conventions</A> の記述に従わないファイル名を理解しません。
      自作フォントの場合、一言で言えばこういうことです:
      <UL>
	<LI>
<!--  	the first letter of the font should be "f" (which means the font wasn't made
  	by one of the big-name font vendors) -->
  	フォントの最初の文字は“f”にします (これは、フォントが有名なフォントベンダ製のものではないことを意味します)
	<LI>
<!--  	the next two letters are some abbreviation of the family-name for your font -->
  	続く 2 文字はあなたのフォントのファミリー名を表す特定の略称です。
	<LI>
<!--  	the next letter (or two) should be "r" for a roman font, "i" for italic,
  	"o" for oblique, "b" for bold, and "bi" for bold italic -->
  	続く 1〜2 文字は、ローマン体のフォントには“r”, イタリックには“i”, オブリークには“o”, ボールドには“b”, ボールドイタリックには“bi”をつけます。
	<LI>
<!--  	the last two letters should be "8a" (which means your font is in Adobe Standard
  	Encoding. And your font <EM>must be</EM> in that encoding or things don't
  	work).<BR> -->
  	最後の 2 文字は“8a”とします (これは、フォントが Adobe 標準エンコーディングであるということであり、作成するフォントは<EM>必ず</EM>このエンコーディングでなければなりません。そうでないと動きません)<BR>
  
<!--  	(Again I am told that you can use any encoding as long as you register it
  	with TeX. I was unable to get this to work. But my system is out of date) -->
  	(付言すると、どんなエンコーディングでも、きちんと登録すれば TeX で使えるようになると聞きました。これはうまく動きませんでしたが、筆者のシステムが旧式の物だからでしょう)
      </UL>
    <LI>
<!--  Finally
      <A HREF="http://www.ctan.org/tex-archive/info/Type1fonts/fontinstallationguide.pdf">the
      LaTeX font-faq</A> describes the gory details of how to go about installing
      the font. It's only (minor) drawback is that it assumes you are installing
      a font from Adobe. That is easily glossed over it means that: -->
      最後に
      <A HREF="http://www.ctan.org/tex-archive/info/Type1fonts/fontinstallationguide.pdf">the
      LaTeX font-faq</A> はフォントのインストールをどう押し進めるかについての血まみれの細部について語っています。
      唯一の (些細な) 難点は、インストールするフォントが Adobe 製であると仮定していることです。
      以下の点に注意すれば読み替えることは簡単です:
      <UL>
	<LI>
<!--  	fonts from Adobe should have font names beginning with "p" rather than "f". -->
  	Adobe 製フォントは“f”ではなく“p”で始まる名前をつけることになっています。
	<LI>
<!--  	the translation from adobe's font-families to 2 character abbreviations has
  	already been done, when using an adobe font you look the family up in a table
  	to get the 2 character abbreviation, when creating your own font you make
  	up your own. -->
  	Adobe のフォントファミリー名から 2 文字の略称への変換規則は既に存在しており、Adobe フォントを使う時はその表からファミリー名を探して 2 文字の略称を得ます。
  	自作のフォントファミリーを作る時は自分で決めます。
	<LI>
<!--  	the vendor directory for adobe is "adobe", but the vendor directory for fonts
  	you make should be "public" -->
  	Adobe 用のベンダディレクトリは“adobe”ですが、自作フォント用のベンダディレクトリは“public”になるでしょう。
	<LI>
<!--  	(I hope these comments will make sense after you've read the above links) -->
  	(上のリンク先を読むときに、このコメントが役に立てば幸いです)
      </UL>
    <LI>
<!--  I've not tried to work with truetype fonts, but here's a document that talks
      about it to some extent. <A HREF="http://www.radamir.com/tex/ttf-tex.htm">LaTeX
      and TTF</A> -->
      TrueType フォントが使えるかを筆者は試してみていませんが、その点についていくつかの情報がこの文書にはあります。<A HREF="http://www.radamir.com/tex/ttf-tex.htm">LaTeX と TTF</a>
    <LI>
<!--  If you are interested in the basics, here's the documentation on
      <A HREF="http://www.ctan.org/tex-archive/fonts/utilities/fontinst/doc/fontinst.ps">fontinst</A>
      itself. -->
      基礎的な事柄に興味がある人には、ここに <A HREF="http://www.ctan.org/tex-archive/fonts/utilities/fontinst/doc/fontinst.ps">fontinst</A> のドキュメンテーションそのものがあります。
    <LI>
<!--  I don't know how to deal with cyrillic (except that cyrillic T2 encodings
      are called 6a), greek or CJK fonts yet. -->
      筆者は、キリル文字やギリシャ文字、CJK のフォントをどう扱うかについてはまだ知りません (キリル文字の T2 エンコーディングは 6a と言うことだけは知っています)。
    <LI>
<!--  Here's some info on how to use fonts once they are installed:
      <A HREF="http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/fonts.html">LaTeX
      and fonts</A> -->
      インストールされたフォントをどう使うかについていくつかの情報があります。
      <A HREF="http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/fonts.html">LaTeX とフォント</A>
  </UL>
  <P>
  <P>
<!--
  I did the following: -->
  筆者は以下のようにしました:
  <UL>
    <LI>
<!--  I created a directory structure as described in
      <A HREF="http://www.ctan.org/installationadvice/">Installation advice</A>
      (and also in
      <A HREF="http://www.ctan.org/tex-archive/info/Type1fonts/fontinstallationguide.pdf">the
      LaTeX font-faq</A>). -->
      <A HREF="http://www.ctan.org/installationadvice/">Installation advice</A> にあるとおりにディレクトリ構造を作りました (これは <A HREF="http://www.ctan.org/tex-archive/info/Type1fonts/fontinstallationguide.pdf">the LaTeX font-faq</A> にもあります)。
    <LI>
<!--  I made a font (which I will call Cupola), initially I encoded it with the
      TeX Base Encoding (this was to make sure I had all the characters I needed)
  -->
      フォントを作り (Cupola という名前です), まずこれを TeX ベースエンコーディングでエンコードしました (これは、必要な全ての文字を作ったことを確認するためです)
    <LI>
<!--  Then just before generating it I reencoded it into Adobe Standard Encoding
      (because TeX's fontinst routine expects that) -->
      フォントの生成を行う直前に、これを Adobe 標準エンコーディングでエンコードし直しました (TeX の fontinst ルーチンがそう仮定しているからです)
    <LI>
<!--  I generated the font naming it "fcur8a.pfb" which means: -->
      フォントを“fcur8a.pfb”という名前で出力しました。意味は以下のとおりです:
      <UL>
	<LI>
<!--  	f -- made by a small font vendor, public domain, etc. -->
  	f — 小さなフォントベンダの製品やパブリックドメインのフォントなど
	<LI>
<!--  	cu - - abbreviation for the family name "Cupola" -->
  	cu — ファミリー名“Cupola”の略称
	<LI>
<!--  	r - - roman face -->
  	r — ローマン体
	<LI>
<!--  	8a - - Adobe Standard Encoding -->
  	8a — Adobe 標準エンコーディング
      </UL>
    <LI>
<!--  I applied the following script: -->
      以下のスクリプトを実行しました:
      <BLOCKQUOTE>
      <PRE>#!/bin/bash <!--
# You will need to change the next two lines to suit your font.
# You may need to change the two after that as well. -->
# 以下の 2 行はあなたの作るフォントに合わせて修正する必要があるでしょう。
# その後ろの 2 行も変更したいかもしれません。
BASE=fcu
PACKAGE=cupola
VENDOR=public
LOCALTEXMF=/usr/local/share/texmf
<!--
# remove any old files that might be lying around and might confuse us later on -->
# 後で混乱の元になりそうなファイルが元からあれば全て削除します
csh -c "rm fi.tex *.mtx *.pl *.vpl"
<!--
# create a little script to get TeX to create various useful files it needs -->
# TeX が必要とする各種のファイルを生成できるように、小さなスクリプトを作成します
echo "\\input fontinst.sty" >fi.tex
echo "\\latinfamily{$BASE}{}" >>fi.tex
echo "\\bye" >>fi.tex
<!--
#execute that script -->
# そのスクリプトを実行します
tex fi
<!--
# But we need to do a bit more processing on some of those files -->
# しかし、これらのファイルはちょっと追加の加工を行う必要があります
for file in *.pl ; do
pltotf $file
done
for file in *.vpl ; do
vptovf $file
done
<!--
# Get rid of stuff we don't need any more -->
# もう必要でなくなったゴミを削除します
rm fi.tex *.mtx *.pl *.vpl
<!--
# create the directories we need for the various components -->
# さまざまなコンポーネントが必要とするディレクトリを作成します
mkdir -p $LOCALTEXMF/fonts/type1/$VENDOR/$PACKAGE \
	$LOCALTEXMF/fonts/afm/$VENDOR/$PACKAGE \
	$LOCALTEXMF/fonts/tfm/$VENDOR/$PACKAGE \
	$LOCALTEXMF/fonts/vf/$VENDOR/$PACKAGE \
	$LOCALTEXMF/tex/latex/$VENDOR/$PACKAGE
<!--
# move everything into its expected directory -->
# 全ての物をあるべきディレクトリに置きます
cp $BASE*.pfb $LOCALTEXMF/fonts/type1/$VENDOR/$PACKAGE
cp $BASE*.afm $LOCALTEXMF/fonts/afm/$VENDOR/$PACKAGE
mv $BASE*.tfm $LOCALTEXMF/fonts/tfm/$VENDOR/$PACKAGE
mv $BASE*.vf $LOCALTEXMF/fonts/vf/$VENDOR/$PACKAGE
mv *$BASE*.fd $LOCALTEXMF/tex/latex/$VENDOR/$PACKAGE
<!--
# finally create the LaTeX package for this font (and put it in the right place) -->
# 最後にこのフォントの LaTeX パッケージを作成し (て、正しい場所に置き) ます
echo "\\ProvidesPackage{$PACKAGE}" > $LOCALTEXMF/tex/latex/$VENDOR/$PACKAGE/$PACKAGE.sty
echo "\\renewcommand{\\rmdefault}{$BASE}" >> $LOCALTEXMF/tex/latex/$VENDOR/$PACKAGE/$PACKAGE.sty
echo "\\endinput" >> $LOCALTEXMF/tex/latex/$VENDOR/$PACKAGE/$PACKAGE.sty <!--
# but updating the map files required a bit more knowlege than this script has
# so I left that to be done by hand -->
# しかし map ファイルの更新にはこのスクリプトが知っているよりちょっと余分に
# 知識が必要です。筆者はこれを手動で行ってもらうことにしました
echo "*********************************************************************" <!--
echo You need to create your own map files
echo One should be called $LOCALTEXMF/dvips/config/$BASE.map and should
echo " contain a line for each file in the family. One might look like this:"
-->
echo あなたは自分のマップファイルを作成する必要があります。
echo 一つは $LOCALTEXMF/dvips/config/$BASE.map という名前で、ファミリーに
echo "含まれる各フォントを列挙した 1 行からなります 以下のような感じです:"
echo "${BASE}r8a $PACKAGE-Regular \"TexBase1Encoding ReEncodeFont\" <8r.enc <${BASE}r8a.pfb" <!--
echo Then change the config.ps file by looking for the location defining the
echo " standard map file and adding:" -->
echo それから config.ps ファイルで標準のマップファイルを定義している場所を
echo 探して、その後ろを以下のように書き換えてください:
echo "p +$BASE.map" <!--
echo " after it."
echo Then go to $LOCALTEXMF/pdftex/config/
echo Make a copy "(or a link)" of $LOCALTEXMF/dvips/config/$BASE.map
echo and edit pdftex.cfg and insert -->
echo それから $LOCALTEXMF/pdftex/config/ に移動し、
echo $LOCALTEXMF/dvips/config/$BASE.map をコピー "(またはリンク)" して
echo pdftex.cfg を編集し、これも同様に
echo "p +$BASE.map" <!--
echo at the appropriate place in it too. -->
echo という記述を適切な場所に追加してください。
</PRE>
      </BLOCKQUOTE>
    <LI>
  </UL>
  <P ALIGN=Center>
  — <A HREF="scripting.html">前</A> — <A HREF="overview.html">目次</A> —
  <A HREF="locale.html">次</A> —
</DIV>
</BODY></HTML>
 |