summaryrefslogtreecommitdiff
path: root/fonts/noto/latex/noto-sans.sty
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/noto/latex/noto-sans.sty')
-rw-r--r--fonts/noto/latex/noto-sans.sty28
1 files changed, 17 insertions, 11 deletions
diff --git a/fonts/noto/latex/noto-sans.sty b/fonts/noto/latex/noto-sans.sty
index d866f7ea83..6c24f1a926 100644
--- a/fonts/noto/latex/noto-sans.sty
+++ b/fonts/noto/latex/noto-sans.sty
@@ -1,16 +1,16 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{noto-sans}
- [2019/10/22 (Bob Tennent) Supports NotoSans fonts for all LaTeX engines.]
+ [2021/09/04 (Bob Tennent) Supports NotoSans fonts for all LaTeX engines.]
\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
-\newif\ifnotosans@otf
+\newif\ifnotosans@ttf
\ifxetex
- \notosans@otftrue
+ \notosans@ttftrue
\else\ifluatex
- \notosans@otftrue
+ \notosans@ttftrue
\else % [pdf]LaTeX
- \notosans@otffalse
+ \notosans@ttffalse
\fi\fi
\newif\ifnotosans@sfdefault \notosans@sfdefaultfalse
@@ -21,7 +21,7 @@
\DeclareOptionX{sfdefault}{\notosans@sfdefaulttrue}
-\DeclareOptionX{type1}{\notosans@otffalse}
+\DeclareOptionX{type1}{\notosans@ttffalse}
\newif\ifnotosans@oldstyle \notosans@oldstylefalse
\newif\ifnotosans@proportional \notosans@proportionalfalse
@@ -63,7 +63,7 @@
\ProcessOptionsX\relax
-\ifnotosans@otf
+\ifnotosans@ttf
\def\notosans@boldstyle{Bold}
\ifnotosans@semibold\def\notosans@boldstyle{SemiBold}\fi
\ifnotosans@extrabold\def\notosans@boldstyle{ExtraBold}\fi
@@ -117,7 +117,7 @@
\fi
-\ifnotosans@otf
+\ifnotosans@ttf
\def\notosans@figurestyle{Lining}
\ifnotosans@oldstyle\def\notosans@figurestyle{OldStyle}\fi
@@ -132,7 +132,7 @@
\def\notosans@tonefigurealign{T}
\ifnotosans@proportional\def\notosans@tonefigurealign{}\fi
-\ifnotosans@otf
+\ifnotosans@ttf
\RequirePackage{fontspec}
\else
\RequirePackage{fontenc,fontaxes,mweights}
@@ -142,7 +142,7 @@
\fontfigurestyle{superior}\selectfont}
\fi
-\ifnotosans@otf
+\ifnotosans@ttf
\def\notosans@regular{Regular}
\ifxetex\XeTeXtracingfonts=1\fi
\defaultfontfeatures{
@@ -249,10 +249,16 @@
\DeclareTextFontCommand{\textsu}{\sufigures}
+% LGR
+
+\def\notosans@tonefigurestyle{LF}
+\ifnotosans@oldstyle\def\notosans@tonefigurestyle{OsF}\fi
+\def\notosans@tonefigurealign{T}
+\ifnotosans@proportional\def\notosans@tonefigurealign{}\fi
\newcommand*\notosanslgr{\fontencoding{LGR}\fontfamily{NotoSans-\notosans@tonefigurealign\notosans@tonefigurestyle}\selectfont}
-\ifnotosans@otf
+\ifnotosans@ttf
% turn off defaults in case other fonts are selected:
\defaultfontfeatures{}
\fi