summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-05 22:32:46 +0000
committerKarl Berry <karl@freefriends.org>2019-03-05 22:32:46 +0000
commitdc89c467e680b069a8f6d50a46024e38dc595d7b (patch)
tree03f6433b202080a7a8366c0e9ceeee3a5c2bc57e /Master/texmf-dist/tex/latex/roboto/roboto-mono.sty
parent0821fbce8c6b00847d6309001cff2d39281d1a1a (diff)
roboto (5mar19)
git-svn-id: svn://tug.org/texlive/trunk@50242 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 5e90a8f021c..a84818aa941 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/02/28 (Bob Tennent) Supports RobotoMono fonts for all LaTeX engines.]
+ [2019/03/03 (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,6 +53,8 @@
\fi
+\def\robotomonofamily{RobotoMono-TLF}
+
\ifrobotomono@otf
\RequirePackage{fontspec}
\else
@@ -67,7 +69,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 ,
@@ -93,14 +95,13 @@
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},
@@ -123,7 +124,6 @@
FontFace = {b}{it}{*-BoldItalic} ]
{RobotoMono}
\else % type1
- \def\robotomonofamily{RobotoMono-TLF}
\newcommand*\robotomono{\fontfamily{\robotomonofamily}\selectfont}
\def\ttdefault{\robotomonofamily}
\fi