summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-06 22:15:23 +0000
committerKarl Berry <karl@freefriends.org>2019-03-06 22:15:23 +0000
commitd9346aef7f27482484e35ada722ac1625a11cce1 (patch)
treee2fe8df5e6da798889af1975d948d218e685244a /Master/texmf-dist/tex/latex/roboto/roboto-mono.sty
parent88d52bfd345feff22ca14aaf8c9d2ea92dddc3c8 (diff)
roboto (6mar19)
git-svn-id: svn://tug.org/texlive/trunk@50263 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/roboto/roboto-mono.sty')
-rw-r--r--Master/texmf-dist/tex/latex/roboto/roboto-mono.sty14
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