通常の LaTeX で「The New Yorker」フォントを使用する方法

通常の LaTeX で「The New Yorker」フォントを使用する方法

Allen R. Waldenの「The New Yorker」フォント(フォントスペース) は通常の LaTeX では使用できます (LuLaTeX または XeLaTeX では使用できません)。

答え1

これを行うには 2 つの方法があります。

新しい学校

autoinstを使用しますNEWYORKR.TTF。これにより、(pdf)LaTeX でフォントを使用するために必要なすべてのファイルが作成されます。次のように呼び出すことができます。

autoinst -encoding=T1      \
         -ts1              \
         -noupdmap         \
         -nooldstyle       \
         -noproportional   \
         -nosmallcaps      \
         -noswash          \
         -notitling        \
         -nosuperior       \
         -noinferiors      \
         -nofractions      \
         -noornaments      \
         -target=./Install \
         -verbose          \
         NEWYORKR.TTF

適切にインストールすると、次の結果が得られます。

\documentclass{article}
\usepackage{fonttable,textcomp}
\usepackage[T1]{fontenc}
\usepackage{NewYorker}

\begin{document}

\xfonttable{T1}{NewYorker-TLF}{m}{n}
\clearpage
\xfonttable{TS1}{NewYorker-TLF}{m}{n}

\end{document}

ここに画像の説明を入力してください

古い学校

-fileからファイルafmとファイルを作成し、それを使用しますが、これはやや複雑です。次のようなファイルを記述する必要があります。pfbttffontinstdrv

\input fontinst.sty
\needsfontinstversion{1.926}
\recordtransforms{fny-rec.tex}

\substitutesilent{bx}{m}
\substitutesilent{b}{m}

\transformfont{fnyr8r}{\reencodefont{8r}{\fromafm{NewYorker}}}

\installfonts
\installfamily{T1}{fny}{}
\installfont{fnyr8t}{fnyr8r,newlatin}{t1}{T1}{fny}{m}{n}{}
\endinstallfonts

\installfonts
\installfamily{TS1}{fny}{}
\installfont{fnyr8c}{fnyr8r,textcomp}{ts1}{TS1}{fny}{m}{n}{}
\endinstallfonts

\endrecordtransforms
\bye

mapのようなジェネレータファイル:

\input finstmsc.sty
\resetstr{PSfontsuffix}{.pfb}
\adddriver{dvips}{fny.map}
\input fny-rec.tex
\donedrivers
\bye

次に、ファイルとファイルtexに加えて以下を実行する必要があります。drvmap

for filename in *.pl; do pltotf $filename; done
for filename in *.vpl; do vptovf $filename; done

適切にインストールすると、次のものが得られます。

\documentclass{article}
\usepackage{fonttable,textcomp}
\usepackage[T1]{fontenc}

\renewcommand*{\rmdefault}{fny}
\renewcommand*{\familydefault}{\rmdefault}

\begin{document}
\xfonttable{T1}{fny}{m}{n}
\clearpage
\xfonttable{TS1}{fny}{m}{n}
\end{document}

ここに画像の説明を入力してください

次に、名前が期待と一致しないfontinstフォントから書き込みグリフを取得する方法を教えます。afmfontinst

関連情報