
Myriad Pro Condensedフォントを使用しようとしていますが、何らかの理由でLaTeXがそれを見つけることができません。フォントプロスクリプト。FontPro が明らかにすべてのコンデンス バリアントをインストールしたにもかかわらず、ライト、ノーマル、ボールド、エクストラ ボールドのバリアントは取得できますが、コンデンス バリアントは取得できません。コンデンス フォントを使用しようとすると、次のメッセージが表示されます (OT1 と T1 エンコーディングの両方で、ここでは T1 エンコーディングで表示)。
LaTeX Font Warning: Font shape `T1/MyriadPro-OsF/c/n' undefined (Font) using `T1/MyriadPro-OsF/m/n' instead on input line 11.
以下に私の最小限の動作例を示します。
\documentclass{article}
\usepackage{MyriadPro}
\begin{document}
Hello, World!
{\sffamily
Hello, World!
\fontseries{c}\selectfont Hello, World! NOT CONDENSED
\fontseries{b}\selectfont Hello, World!
\fontseries{l}\selectfont Hello, World!
\fontseries{bx}\selectfont Hello, World!
}
\end{document}
そして、得られた結果は次のとおりです。
Myriad Pro フォントのインストールに何か問題がありますか?
答え1
MyriadProのコンデンスフォントをpdftexで使用する方法
この解決策を見つけるために、Ulrike Fischer の多大な協力と David Carlisle の有益なヒントを得ました。
\documentclass[fontsize=16pt]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%\usepackage{lmodern}
\usepackage[medfamily]{MyriadPro}
\sffamily%to load the fd-file
\DeclareFontShape{T1}{MyriadPro-OsF}{c}{n}
{<-> MyriadPro-Cond-tosf-t1--base}{} %
\DeclareFontShape{T1}{MyriadPro-OsF}{c}{it}
{<-> MyriadPro-CondIt-tosf-t1--base}{} %
\DeclareFontShape{T1}{MyriadPro-OsF}{bc}{n}
{<-> MyriadPro-BoldCond-tosf-t1--base}{} %
\DeclareFontShape{T1}{MyriadPro-OsF}{bc}{it}
{<-> MyriadPro-BoldCondIt-tosf-t1--base}{} %
\usepackage{MinionPro, blindtext, fontaxes}
\begin{document}
\section{\rmfamily{} MinionPro}
\label{CLA:minionpro}
Some Text with different fonts from MinionPro:
Hello World! -- Regular shape.
\emph{Hello World in itshape} \verb|\emph{...}|
\textsw{Hello World! »Swashed: ABCDEFG«:} \verb|\textsw{...}|
\textssc{Hello World! textssc:} \verb|\textssc{...}|
\section{MyriadPro}
\label{CLA:myriadpro}
\sffamily
Now, we change to MyriadPro, using \verb|\sffamily|
\bigskip
\fontseries{ub}\selectfont Hello World ! \% BLACK
\fontseries{eb}\selectfont Hello World ! \% bold, because of option medfamily
\fontseries{b}\selectfont Hello, World! \% semibold (option medfamily)
\fontseries{n}\selectfont Hello, World! \% regular
\fontseries{l}\selectfont Hello, World! \% light
\section{\fontseries{bc}\selectfont MyriadProCond}
\label{CLA:myriadprocond}
\fontseries{c}\selectfont
We even can use the condensed fonts of MyriadPro:
\bigskip{}
Hello World! \% Condensed! (World shrinks?)
\emph{We can use italics and write: Hello World!}
\fontseries{bc}\selectfont Hello World! \% BoldCondensed
\emph{Hello World! BoldCondIT!}
\end{document}
OK、次のようになります:
(古い回答は削除されました)
答え2
(コメントとしては長すぎるため、回答として投稿しました。)
Myriad Pro Condensed フォントの Opentype バージョンにアクセスできる場合は、XeLaTeX または LuaLaTeX のいずれかの使用を検討してください。どちらも Opentype フォントを直接処理できます。(私のシステム (MacTeX2015、MacOSX 10.11.3) では、フォントはMyriam Pro Condensed
Opentype 形式のシステム フォントとしてインストールされています。)
次のスクリーンショットは XeLaTeX で生成されました。
% !TEX TS-program = xelatex
\documentclass{article}
\usepackage{fontspec}
\begin{document}
\setsansfont{Myriad Pro Condensed}
\sffamily
Hello, World!
{\bfseries Hello, World!}
{\itshape Hello, World!}
{\bfseries\itshape Hello, World!}
\medskip
\setsansfont{Myriad Pro} % not "Condensed"
\sffamily
Hello, World!
{\bfseries Hello, World!}
{\itshape Hello, World!}
{\bfseries\itshape Hello, World!}
\end{document}