
Adobe Typekit 字型會自行安裝在應用程式字型清單(Word、InDesign 等)中,但不會安裝在 Mac Fontbook 中。他們是租來的,所以這是他們執行許可條款的方式。
由於它們實際上隱藏在目錄結構中,因此我無法找到在 fontspec 套件的 Latex 文件中使用它們的方法。
有沒有人設法解決這個問題並將它們與 fontspec 一起使用?
答案1
這教學Andrew Cashner 評論中引用的 stackoverflow 答案提供了您需要的大部分內容。將字體與 TypeKit 同步後,我們需要找到隱藏在 Adobe 支援目錄之一中的文件
以下是終端機中步驟的簡短摘要:
defaults write com.apple.finder AppleShowAllFiles TRUE
cd ~/Library/Application\ Support/Adobe/CoreSync/plugins/livetype/.r/
open .
這將打開一個查找器窗口,然後我們需要“獲取文件資訊”,以便我們可以看到字體的名稱。然後,例如,我發現“.22140.otf”確實是 Petalo Pro Bold:
cp .22140.otf ~/myproject/petalo-pro-bold.otf
那麼最簡單的使用方法就是使用 XeLaTeX。以下程式碼來自 TexShop 隨附的範本之一:
% XeLaTeX can use any Mac OS X font. See the setromanfont command below.
% Input to XeLaTeX is full Unicode, so Unicode characters can be typed directly into the source.
% The next lines tell TeXShop to typeset with xelatex, and to open and save the source with Unicode encoding.
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[12pt]{article}
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper} % ... or a4paper or a5paper or ...
%\geometry{landscape} % Activate for for rotated page geometry
%\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amssymb}
% Will Robertson's fontspec.sty can be used to simplify font choices.
% To experiment, open /Applications/Font Book to examine the fonts provided on Mac OS X,
% and change "Hoefler Text" to any of these choices.
\usepackage{fontspec,xunicode}
\setmainfont{petalo-pro-bold.otf}
\title{Brief Article}
\author{The Author}
\begin{document}
\maketitle
\end{document}
產生此 PDF: