From: Thomas Pietrzak Date: Wed, 21 Apr 2021 14:29:15 +0000 (+0200) Subject: Fix small caps X-Git-Tag: first-full-draft~198 X-Git-Url: https://git.thomaspietrzak.com/?a=commitdiff_plain;h=53caea3f5fcb3e099ab6e8563d7e7169c8bf5ebe;p=hdr.git Fix small caps --- 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}