光学字体大小:如何设置固定值?

光学字体大小:如何设置固定值?

目前,这只是对 Minion Pro 光学字体大小的一次实验。我正在尝试制作一个大字母g来比较 Caption、Normal、Subhead 和 Display-size 字体。以下是代码:

% !TEX TS-program = XeLaTeX
\documentclass[a4paper,12pt,oneside]{article}
\usepackage{fontspec}
\begin{document}
\fontsize{72}{72}
\newfontfamily\fonta[SizeFeatures={{Size={5-120},Font=* Display}}]{Minion Pro}
\newfontfamily\fontb[SizeFeatures={{Size={5-120},Font=* Subhead}}]{Minion Pro}
\newfontfamily\fontc[SizeFeatures={{Size={5-120},Font=*}}]{Minion Pro}
\newfontfamily\fontd[SizeFeatures={{Size={5-120},Font=* Caption}}]{Minion Pro}

\fonta g \fontb g \fontc g \fontd g

\end{document}

但我得到了四个相同的字母g,并且唯一的字体是.pdfDisplay-size 字体。

我做错了什么吗(如果是,是什么)?或者这些“智能字体”认为它们比我更聪明(顺便说一句,这很有可能)?


更新:

我可以重现@Herbert的答案。使用LuaLaTeX,所有四种字体都存在。根据日志(修剪),fontspec似乎报告的字体定义略有不同。我不知道这些差异有多大。例如:

XeLaTeX:

. * 'normal' with NFSS spec.:
. <5-120>"Minion Pro Subhead/ICU:script=latn;language=DFLT;"
. * 'small caps' with NFSS spec.:
. <5-120>"Minion Pro Subhead/ICU:script=latn;language=DFLT;+smcp;"
. * 'bold' with NFSS spec.:
. <5-120>"Minion Pro/B Subhead/ICU:script=latn;language=DFLT;"
. * 'bold small caps' with NFSS spec.:
. <5-120>"Minion Pro/B Subhead/ICU:script=latn;language=DFLT;+smcp;"
. * 'italic' with NFSS spec.:
. <5-120>"Minion Pro/I Subhead/ICU:script=latn;language=DFLT;"
. * 'italic small caps' with NFSS spec.:
. <5-120>"Minion Pro/I Subhead/ICU:script=latn;language=DFLT;+smcp;"
. * 'bold italic' with NFSS spec.:
. <5-120>"Minion Pro/BI Subhead/ICU:script=latn;language=DFLT;"
. * 'bold italic small caps' with NFSS spec.:
. <5-120>"Minion Pro/BI Subhead/ICU:script=latn;language=DFLT;+smcp;"

LuaLaTeX:

. * 'small caps' with NFSS spec.:
. <5-120>"name:MinionProSubhead:mode=node;script=latn;language=DFLT;+smcp;"
. * 'bold' with NFSS spec.:
. <5-120>"name:MinionPro/BSubhead:mode=node;script=latn;language=DFLT;"
. * 'bold small caps' with NFSS spec.:
. <5-120>"name:MinionPro/BSubhead:mode=node;script=latn;language=DFLT;+smcp;"
. * 'italic' with NFSS spec.:
. <5-120>"name:MinionPro/ISubhead:mode=node;script=latn;language=DFLT;"
. * 'italic small caps' with NFSS spec.:
. <5-120>"name:MinionPro/ISubhead:mode=node;script=latn;language=DFLT;+smcp;"
. * 'bold italic' with NFSS spec.:
. <5-120>"name:MinionPro/BISubhead:mode=node;script=latn;language=DFLT;"
. * 'bold italic small caps' with NFSS spec.:
. <5-120>"name:MinionPro/BISubhead:mode=node;script=latn;language=DFLT;+smcp;"

答案1

这对我使用 LuaLaTeX 很有效,不是使用 XeLaTeX。我认为可选参数仅对 LuaLaTeX 有效:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Arno Pro}
\newfontfamily\fonta[SizeFeatures={{Size={12-80},Font=* Display}}]{Arno Pro}
\newfontfamily\fontb[SizeFeatures={{Size={12-80},Font=* Subhead}}]{Arno Pro}
\newfontfamily\fontc[SizeFeatures={{Size={6-11},Font=Minion Pro},{Size={12-80},Font=*}}]{Arno Pro}
\newfontfamily\fontd[SizeFeatures={{Size={12-80},Font=* Caption}}]{Arno Pro}

\begin{document}
Arno Pro \fontc Minion Pro\fontsize{14}{15}Arno Pro\par
\fontsize{50}{52}
\fontd Arno Pro Caption\par
\fontb Arno Pro Subhead\par
\fonta Arno Pro Display\par
\normalfont\normalsize normal font
\end{document}

在此处输入图片描述

我使用的字体:

voss@shania:~/Test> pdffonts test.pdf
name                          type              encoding         emb sub uni object ID
----------------------------- ----------------- ---------------- --- --- --- ---------
LBZWCL+ArnoPro-SmText         CID Type 0C       Identity-H       yes yes yes      4  0
NMAHFW+MinionPro-Medium       CID Type 0C       Identity-H       yes yes yes      5  0
BHJMSX+ArnoPro-Caption        CID Type 0C       Identity-H       yes yes yes      6  0
FONMDX+ArnoPro-Subhead        CID Type 0C       Identity-H       yes yes yes      7  0
VYIITZ+ArnoPro-Display        CID Type 0C       Identity-H       yes yes yes      8  0

相关内容