Skip to content

Commit

Permalink
Move workaround to font loading
Browse files Browse the repository at this point in the history
  • Loading branch information
cdlm committed Nov 20, 2019
1 parent 8fdc9e6 commit a741ab9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sbabook.cls
Expand Up @@ -46,6 +46,9 @@

\setmainfont{Gentium Book Basic}
\setsansfont{Open Sans}[
\@ifpackagelater{opensans}{2019/06/19}% test for font naming bug
{}% 2019/06/20 fixed it
{BoldFont = {* Bold},}
Scale=MatchLowercase,
Numbers=OldStyle
]
Expand All @@ -56,10 +59,6 @@
% alternative solution: \usepackage[htt]{hyphenat}
]

\@ifpackagelater{opensans}{2019/06/19}
{}% we're all good
{\defaultfontfeatures[Open Sans]{BoldFont = {* Bold}}}% workaround naming bug

\let\codefamily\ttfamily
\newcommand\textcode[1]{\texttt{#1}}

Expand Down

0 comments on commit a741ab9

Please sign in to comment.