From 53caea3f5fcb3e099ab6e8563d7e7169c8bf5ebe Mon Sep 17 00:00:00 2001 From: Thomas Pietrzak Date: Wed, 21 Apr 2021 16:29:15 +0200 Subject: [PATCH] Fix small caps --- mystyle.sty | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/mystyle.sty b/mystyle.sty index e541e44..d6d0a17 100644 --- a/mystyle.sty +++ b/mystyle.sty @@ -18,14 +18,24 @@ \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} -- 2.30.2