Skip to content

Instantly share code, notes, and snippets.

@h-kitagawa
Last active March 30, 2018 07:06
Show Gist options
  • Save h-kitagawa/bf04c4f2b69e1e624189ba67900b4e8d to your computer and use it in GitHub Desktop.
Save h-kitagawa/bf04c4f2b69e1e624189ba67900b4e8d to your computer and use it in GitHub Desktop.
pLaTeX の \fontfamily で .fd を探索する件
\DeclareFontFamily{OT1}{piyo}{}
\DeclareFontShape{OT1}{piyo}{m}{n}{<->cmfi10}{}
\endinput
\documentclass{jarticle}
\usepackage[T1,TS1,OT1]{fontenc}
\def\TEST#1{%
\paragraph{#1}
\fontencoding{#1}\selectfont
ほげThe quick brown fox jumps over the lazy dog.
\edef\M{\fontname\font}\texttt{\fontencoding{OT1}\selectfont\M}
{\fontfamily{piyo}\selectfont
ほげThe quick brown fox jumps over the lazy dog.
\edef\M{\fontname\font}\texttt{\fontencoding{OT1}\selectfont\M}
}\par}
\begin{document}
\TEST{T1}\TEST{OT1}\TEST{TS1}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment