Fix small caps
authorThomas Pietrzak <thomas.pietrzak@gmail.com>
Wed, 21 Apr 2021 14:29:15 +0000 (16:29 +0200)
committerThomas Pietrzak <thomas.pietrzak@gmail.com>
Wed, 21 Apr 2021 14:29:15 +0000 (16:29 +0200)
mystyle.sty

index e541e445bb8631a4f47d7c891b0b1a79aadcda4c..d6d0a17058d098deb93b35af777855ad436ece3e 100644 (file)
   \defaultfontfeatures{Mapping=tex-text}
 
   %\newfontfamily\mynormal{Palatino}% Linotype}
-  \newfontfamily\mynormal{Optima}[SmallCapsFont={Palatino}]% Linotype}
+  \newfontfamily\mynormal{Optima}[SmallCapsFont={Latin Modern Roman Caps}, AutoFakeBold=1.5]% Linotype}
   % font-computer-modern
   \newfontfamily\mygreek{CMU Serif}
   \setTransitionsForGreek{\mygreek}{}
   %\setDefaultTransitions{\mynormal}{}
 
-  \setmainfont{Optima}[SmallCapsFont={Palatino}]
-  \setsansfont{Optima}[SmallCapsFont={Palatino}]
+  \newfontfamily\sctitle{Linux Libertine Display Capitals}%[SizeFeatures = {{ Size = 14}}]
+
+%  \setmainfont{Optima}[SmallCapsFont={Linux Libertine}]
+  \setmainfont{Optima}[SmallCapsFont={Latin Modern Roman Caps}, AutoFakeBold=1.5]
+
+  \setsansfont{Optima}[SmallCapsFont={Latin Modern Roman Caps}, AutoFakeBold=1.5]
+
+  \fontspec[FakeBold=2.5]{Latin Modern Roman Caps}
+  \DeclareFontShape{\UTFencname}{Latin Modern Roman Caps(0)}{bx}{sc}{<->ssub * Latin Modern Roman Caps(1)/m/sc}{}
+
+%  \setmainfont{Optima}[SmallCapsFont={Linux Libertine}, SmallCapsFeatures={Letters=SmallCaps}]
+%  \setsansfont{Optima}[SmallCapsFont={Linux Libertine}, SmallCapsFeatures={Letters=SmallCaps}]
   \setmonofont[Contextuals={Alternate}]{Fira Code}
 \else
   \usepackage[utf8]{inputenc}