是否有可能使用字体“古迪老风格“在 LaTeX 文档中?我在字体包中没有找到它。
答案1
评论
我下载了字体并将Goudy Old Style.ttf
其放在与我的文件相同的目录中.tex
。
执行
排版xelatex
\documentclass{article}
\pagestyle{empty}% for cropping
\usepackage{fontspec}
\setmainfont{Goudy Old Style.ttf}
\begin{document}
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
1234567890
\end{document}
输出
答案2
您可以在此处下载与 LaTeX 一起使用所需的文件(包括 pfb)(默认情况下,它使用旧式图形): Latex type 1 字体包
以下是示例代码:
documentclass[a4paper, 12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{goudy}
\pagestyle{empty}
\begin{document}
Once upon a time, a long while ago, there were four little people whose names were \textsc{Violet}, \textsc{Slingsby}, \textsc{Guy}, and \textsc{Lionel}, and they all thought they should like to see the world. So they bought a large boat to sail quite round the world by sea, and then they were to come back on the other side by land. The boat was painted blue with green spots, and the sail was yellow with red stripes; and when they set off, they only took a small Cat to steer and look after the boat, besides an elderly Quangle-Wangle, who had to cook dinner and make the tea; for which purposes they took a large kettle.
\end{document}
安装字体包(rar 文件):只需解压它,它会给你一个“goudy”目录,其中包含 dvips/、fonts/ 和 tex/ 目录;这些目录可以按照在本地 texmf 目录中的方式进行复制。
但是,如果您想要全新安装,则可以进行以下更改:dvips 目录仅包含 dvips\config\pgy.map。将 pgy.map 移至 fonts\map\dvips。在同一个目录中,您会发现 paj.map,它似乎是错误出现的(Goudy 无法看到它),可以安全删除,以及移动 pgy.map 后的 dvips 目录。然后复制本地 texmf 目录中的 fonts/ 和 tex/ 目录。
如需了解更多详情,请参阅手动字体安装。