diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/roboto/roboto-mono.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/roboto/roboto-mono.sty | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty b/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty index a84818aa941..5e90a8f021c 100644 --- a/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty +++ b/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty @@ -1,10 +1,10 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{roboto-mono} - [2019/03/03 (Bob Tennent) Supports RobotoMono fonts for all LaTeX engines.] + [2019/02/28 (Bob Tennent) Supports RobotoMono fonts for all LaTeX engines.] \RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} -\newif\ifrobotomono@otf +\newif\ifrobotomono@otf \ifxetex \robotomono@otftrue \else\ifluatex @@ -53,8 +53,6 @@ \fi -\def\robotomonofamily{RobotoMono-TLF} - \ifrobotomono@otf \RequirePackage{fontspec} \else @@ -69,7 +67,7 @@ Scale = \RobotoMono@scale , Extension = .ttf } \setmonofont - [ + [ UprightFont = *-\robotomono@regstyle , ItalicFont = *-\ifx\robotomono@regstyle\robotomono@regular Italic\else\robotomono@regstyle Italic\fi , BoldFont = *-\robotomono@boldstyle , @@ -95,13 +93,14 @@ FontFace = {b}{sl}{*-Bold}, FontFace = {b}{it}{*-BoldItalic} ] {RobotoMono} + % grab current family in case of subsequent change: + \let\robotomonofamily\ttdefault \newfontfamily\robotomono - [ + [ UprightFont = *-\robotomono@regstyle , ItalicFont = *-\ifx\robotomono@regstyle\robotomono@regular Italic\else\robotomono@regstyle Italic\fi , BoldFont = *-\robotomono@boldstyle , BoldItalicFont = *-\robotomono@boldstyle Italic , - NFSSFamily = \robotomonofamily, FontFace = {t}{n}{*-Thin}, FontFace = {t}{sc}{*-Thin}, FontFace = {t}{sl}{*-Thin}, @@ -124,6 +123,7 @@ FontFace = {b}{it}{*-BoldItalic} ] {RobotoMono} \else % type1 + \def\robotomonofamily{RobotoMono-TLF} \newcommand*\robotomono{\fontfamily{\robotomonofamily}\selectfont} \def\ttdefault{\robotomonofamily} \fi |