summaryrefslogtreecommitdiff
path: root/fonts/noto/latex/noto-mono.sty
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/noto/latex/noto-mono.sty')
-rw-r--r--fonts/noto/latex/noto-mono.sty24
1 files changed, 11 insertions, 13 deletions
diff --git a/fonts/noto/latex/noto-mono.sty b/fonts/noto/latex/noto-mono.sty
index 61f36d939d..9d80b245fc 100644
--- a/fonts/noto/latex/noto-mono.sty
+++ b/fonts/noto/latex/noto-mono.sty
@@ -1,16 +1,16 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{noto-mono}
- [2019/10/22 (Bob Tennent) Supports NotoSansMono fonts for all LaTeX engines.]
+ [2021/09/04 (Bob Tennent) Supports NotoSansMono fonts for all LaTeX engines.]
\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
-\newif\ifnotomono@otf
+\newif\ifnotomono@ttf
\ifxetex
- \notomono@otftrue
+ \notomono@ttftrue
\else\ifluatex
- \notomono@otftrue
+ \notomono@ttftrue
\else % [pdf]LaTeX
- \notomono@otffalse
+ \notomono@ttffalse
\fi\fi
\newcommand*{\NotoSansMono@scale}{1}
@@ -18,7 +18,7 @@
\DeclareOptionX{scale}{\renewcommand*{\NotoSansMono@scale}{#1}}
-\DeclareOptionX{type1}{\notomono@otffalse}
+\DeclareOptionX{type1}{\notomono@ttffalse}
\newif\ifnotomono@oldstyle \notomono@oldstylefalse
\newif\ifnotomono@proportional \notomono@proportionalfalse
@@ -60,7 +60,7 @@
\ProcessOptionsX\relax
-\ifnotomono@otf
+\ifnotomono@ttf
\def\notomono@boldstyle{Bold}
\ifnotomono@semibold\def\notomono@boldstyle{SemiBold}\fi
\ifnotomono@extrabold\def\notomono@boldstyle{ExtraBold}\fi
@@ -112,7 +112,7 @@
\fi
-\ifnotomono@otf
+\ifnotomono@ttf
\def\notomono@figurestyle{Lining}
\ifnotomono@oldstyle\def\notomono@figurestyle{OldStyle}\fi
@@ -127,7 +127,7 @@
\def\notomono@tonefigurealign{T}
\ifnotomono@proportional\def\notomono@tonefigurealign{}\fi
-\ifnotomono@otf
+\ifnotomono@ttf
\RequirePackage{fontspec}
\else
\RequirePackage{fontenc,fontaxes,mweights}
@@ -137,19 +137,17 @@
\fontfigurestyle{superior}\selectfont}
\fi
-\ifnotomono@otf
+\ifnotomono@ttf
\def\notomono@regular{Regular}
\ifxetex\XeTeXtracingfonts=1\fi
\defaultfontfeatures{
HyphenChar=None,
- Ligatures = CommonOff,
Extension = .ttf }
\def\notomono@Lining{Lining}
\ifnotomono@condensed
\setmonofont
[ Numbers = {\ifx\notomono@figurestyle\notomono@Lining\else\notomono@figurestyle\fi} ,
Scale = \NotoSansMono@scale ,
- Ligatures = CommonOff, % NotoSansMono has the liga feature!
UprightFont = *\ifx\notomono@regstyle\notomono@regular\else\notomono@regstyle\fi,
BoldFont = *\notomono@boldstyle ,
]
@@ -222,7 +220,7 @@
\newcommand*\notomonolgr{\fontencoding{LGR}\fontfamily{NotoSansMono-T\notomono@tonefigurestyle}\selectfont}
-\ifnotomono@otf
+\ifnotomono@ttf
% turn off defaults in case other fonts are selected:
\defaultfontfeatures{}
\fi