From b63aa636b82853ca4885c1e90c619cdbcfa72730 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 6 Sep 2021 03:02:24 +0000 Subject: CTAN sync 202109060302 --- fonts/noto/latex/noto-sans.sty | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'fonts/noto/latex/noto-sans.sty') 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 -- cgit v1.2.3