
¿Cómo puedo utilizar la fuente "The New Yorker" de Allen R. Walden (verEspacio de fuentes) en LaTeX normal (no en LuLaTeX o XeLaTeX).
Respuesta1
Hay dos maneras de hacer esto:
Nueva escuela
Usar autoinst
en NEWYORKR.TTF
. Crea todos los archivos que necesita para usar la fuente con (pdf)LaTeX. Puedes invocarlo así:
autoinst -encoding=T1 \
-ts1 \
-noupdmap \
-nooldstyle \
-noproportional \
-nosmallcaps \
-noswash \
-notitling \
-nosuperior \
-noinferiors \
-nofractions \
-noornaments \
-target=./Install \
-verbose \
NEWYORKR.TTF
Instalado correctamente, puede obtener el siguiente resultado:
\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}
Vieja escuela
Cree los archivos afm
y a partir del archivo -y utilícelo, que es algo más complejo. Tienes que escribir un archivo como:pfb
ttf
fontinst
drv
\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
y un map
archivo generador como:
\input finstmsc.sty
\resetstr{PSfontsuffix}{.pfb}
\adddriver{dvips}{fny.map}
\input fny-rec.tex
\donedrivers
\bye
Luego tienes que ejecutar tex
los archivos drv
y map
más:
for filename in *.pl; do pltotf $filename; done
for filename in *.vpl; do vptovf $filename; done
Correctamente instalado, obtienes:
\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}
Lo siguiente sería enseñar fontinst
a tomar los glifos de escritura de las fuentes donde el nombre afm
no coincide con fontinst
las expectativas.