summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/plex/plex-sans.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/plex/plex-sans.sty')
-rw-r--r--Master/texmf-dist/tex/latex/plex/plex-sans.sty35
1 files changed, 21 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/plex/plex-sans.sty b/Master/texmf-dist/tex/latex/plex/plex-sans.sty
index a05630477a3..16eea807e7c 100644
--- a/Master/texmf-dist/tex/latex/plex/plex-sans.sty
+++ b/Master/texmf-dist/tex/latex/plex/plex-sans.sty
@@ -40,24 +40,27 @@
\DeclareOptionX{type1}{\plexsans@otffalse}
\DeclareOptionX{sfdefault}{\plexsans@sfdefaulttrue}
-\DeclareOptionX{thin}{\edef\mdseries@rm{t}\def\plexsans@medstyle{Thin}}
-\DeclareOptionX{t}{\edef\mdseries@rm{t}\def\plexsans@medstyle{Thin}}
-\DeclareOptionX{extralight}{\edef\mdseries@rm{el}\def\plexsans@medstyle{ExtraLight}}
-\DeclareOptionX{el}{\edef\mdseries@rm{el}\def\plexsans@medstyle{ExtraLight}}
-\DeclareOptionX{light}{\edef\mdseries@rm{l}\def\plexsans@medstyle{Light}}
-\DeclareOptionX{l}{\edef\mdseries@rm{l}\def\plexsans@medstyle{Light}}
-\DeclareOptionX{text}{\edef\bfseries@rm{tx}\def\plexsans@boldstyle{Text}}
-\DeclareOptionX{tx}{\edef\bfseries@rm{tx}\def\plexsans@boldstyle{Text}}
-\DeclareOptionX{medium}{\edef\bfseries@rm{mb}\def\plexsans@boldstyle{Medium}}
-\DeclareOptionX{m}{\edef\bfseries@rm{mb}\def\plexsans@boldstyle{Medium}}
-\DeclareOptionX{semibold}{\edef\bfseries@rm{sb}\def\plexsans@boldstyle{SemiBold}}
-\DeclareOptionX{sb}{\edef\bfseries@rm{sb}\def\plexsans@boldstyle{SemiBold}}
+\DeclareOptionX{thin}{\edef\mdseries@sf{t}\def\plexsans@medstyle{Thin}}
+\DeclareOptionX{t}{\edef\mdseries@sf{t}\def\plexsans@medstyle{Thin}}
+\DeclareOptionX{extralight}{\edef\mdseries@sf{el}\def\plexsans@medstyle{ExtraLight}}
+\DeclareOptionX{el}{\edef\mdseries@sf{el}\def\plexsans@medstyle{ExtraLight}}
+\DeclareOptionX{light}{\edef\mdseries@sf{l}\def\plexsans@medstyle{Light}}
+\DeclareOptionX{l}{\edef\mdseries@sf{l}\def\plexsans@medstyle{Light}}
+\DeclareOptionX{textmd}{\edef\mdseries@sf{tx}\def\plexsans@medstyle{Text}}
+\DeclareOptionX{txmd}{\edef\mdseries@sf{tx}\def\plexsans@medstyle{Text}}
+\DeclareOptionX{text}{\edef\bfseries@sf{tx}\def\plexsans@boldstyle{Text}}
+\DeclareOptionX{tx}{\edef\bfseries@sf{tx}\def\plexsans@boldstyle{Text}}
+\DeclareOptionX{medium}{\edef\bfseries@sf{mb}\def\plexsans@boldstyle{Medium}}
+\DeclareOptionX{m}{\edef\bfseries@sf{mb}\def\plexsans@boldstyle{Medium}}
+\DeclareOptionX{semibold}{\edef\bfseries@sf{sb}\def\plexsans@boldstyle{SemiBold}}
+\DeclareOptionX{sb}{\edef\bfseries@sf{sb}\def\plexsans@boldstyle{SemiBold}}
\ProcessOptionsX\relax
\ifplexsans@otf
+ \def\plexsans@regular{Regular}
\ifxetex\XeTeXtracingfonts=1\fi
\defaultfontfeatures{
Ligatures = TeX ,
@@ -65,14 +68,18 @@
Extension = .otf }
\setsansfont
[ UprightFont = *-\plexsans@medstyle ,
- ItalicFont = *-\plexsans@medstyle Italic ,
+ ItalicFont = *-\ifx\plexsans@medstyle\plexsans@regular
+ Italic
+ \else\plexsans@medstyle Italic\fi ,
BoldFont = *-\plexsans@boldstyle ,
BoldItalicFont = *-\plexsans@boldstyle Italic ]
{IBMPlexSans}
\let\plexsansfamily\sfdefault
\newfontfamily\plexsans
[ UprightFont = *-\plexsans@medstyle ,
- ItalicFont = *-\plexsans@medstyle Italic ,
+ ItalicFont = *-\ifx\plexsans@medstyle\plexsans@regular
+ Italic
+ \else\plexsans@medstyle Italic\fi ,
BoldFont = *-\plexsans@boldstyle ,
BoldItalicFont = *-\plexsans@boldstyle Italic ]
{IBMPlexSans}