LetterSpace 経由の XeTeX による追跡

LetterSpace 経由の XeTeX による追跡

PDFLaTeXを使用するときは、microtype小文字大文字のフォント(例:\usepackage{lmodern})

\usepackage[
protrusion=true,
expansion=true,
kerning=true,
spacing=true,
tracking=true,
factor=1100,
stretch=40,
shrink=10
]{microtype}
\SetTracking{encoding={*}, family= *, shape=fsc}{16}

XeLaTeX でも同じ設定を (可能な限り) 行いたいです。XeLaTeX では microtype でのみ突出が許可されていることは知っていますが、\rmfamily\bfseries\scshapeコマンドに (セクションなど) が多数含まれているため、microtype が PDFLaTeX で行っているのと同じように、グローバルに追跡を有効にしたいと考えています。ローカルで実行するために を使用できることは知っていますLetterSpaceが、一度だけ実行する方法はありますか?

答え1

これは Linux Libertine のスキームです:

\documentclass{article}
\usepackage{fontspec}

\setmainfont[
  Ligatures=TeX,
  UprightFeatures={
    SmallCapsFont={Linux Libertine O},
    SmallCapsFeatures={Letters=SmallCaps,LetterSpace=50},
  },
  BoldFeatures={
    SmallCapsFont={LinLibertineOB},
    SmallCapsFeatures={Letters=SmallCaps,LetterSpace=50},
  },
  ItalicFeatures={
    SmallCapsFont={LinLibertineOI},
    SmallCapsFeatures={Letters=SmallCaps,LetterSpace=50},
  },
  BoldItalicFeatures={
    SmallCapsFont={LinLibertineOBI},
    SmallCapsFeatures={Letters=SmallCaps,LetterSpace=50},
  },
]{Linux Libertine O}

\begin{document}

This is text and \textsc{This is in Small Caps}

Don't use the following combinations, please:

{\scshape\bfseries This is Bold Small Caps}

{\scshape\itshape This is Italic Small Caps}

{\scshape\bfseries\itshape This is Bold Italic Small Caps}

\end{document}

設定に合わせて調整してください。トラッキングは 50 に設定されていますが、効果を明確に示すには多すぎます。

ここに画像の説明を入力してください

関連情報