summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/plex-otf
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-11-29 22:06:59 +0000
committerKarl Berry <karl@freefriends.org>2017-11-29 22:06:59 +0000
commit86f9ebd65ed31beb87a5f088a57a787aa80ad8cb (patch)
treeaa0fa21a811f6f02e5477791ce0e386ae2c9c526 /Master/texmf-dist/tex/latex/plex-otf
parent46f16e177b9b567c95e3d151acd368eed19a3c70 (diff)
plex-otf (29nov17)
git-svn-id: svn://tug.org/texlive/trunk@45939 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/plex-otf')
-rw-r--r--Master/texmf-dist/tex/latex/plex-otf/plex-otf.sty63
1 files changed, 58 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/plex-otf/plex-otf.sty b/Master/texmf-dist/tex/latex/plex-otf/plex-otf.sty
index cfb1945172f..aac581cc7be 100644
--- a/Master/texmf-dist/tex/latex/plex-otf/plex-otf.sty
+++ b/Master/texmf-dist/tex/latex/plex-otf/plex-otf.sty
@@ -1,4 +1,4 @@
-%% $Id: plex-otf.sty 653 2017-11-22 19:55:12Z herbert $
+%% $Id: plex-otf.sty 662 2017-11-28 20:56:40Z herbert $
%%
%% This file is distributed under the terms of the LaTeX Project Public
%% License from CTAN archives in directory macros/latex/base/lppl.txt.
@@ -7,7 +7,7 @@
% Copyright 2017 Herbert Voss hvoss@tug.org
%%
\ProvidesPackage{plex-otf}[%
- 2017/11/22 v. 0.03 (Herbert Voss) Supports plex OpenType for lualatex/xelatex.]
+ 2017/11/29 v. 0.05 (Herbert Voss) Supports plex OpenType for lualatex/xelatex.]
%
\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
\RequirePackage{fontspec}
@@ -132,9 +132,18 @@
BoldFont = *-\Plex@RMboldstyle,
ItalicFont = *-\Plex@RMstyle Italic,
BoldItalicFont = *-\Plex@RMboldstyle Italic,
+ SlantedFont = *-\Plex@RMstyle Italic,
% Scale = 0.92,
\PlexRM@features,
]
+ \newfontfamily\slshapeRM{IBMPlexSerif}[%
+ Extension = .otf,
+ FakeSlant = 0.2,
+ UprightFont = *-\Plex@@Weight,
+ BoldFont = *-\Plex@RMboldstyle,
+ \PlexRM@features,
+ ]
+%
\newfontfamily\PlexExtraLightRM{IBMPlexSerif}[%
\PlexRM@features,
Extension = .otf,
@@ -182,9 +191,19 @@
BoldFont = *-\Plex@SSboldstyle,
ItalicFont = *-\Plex@SSstyle Italic,
BoldItalicFont = *-\Plex@SSboldstyle Italic,
+ SlantedFont = *-\Plex@SSstyle Italic,
% Scale = 0.92,
\PlexSS@features,
]
+%
+ \newfontfamily\slshapeSS{IBMPlexSans}[%
+ Extension = .otf,
+ FakeSlant = 0.2,
+ UprightFont = *-\Plex@@Weight,
+ BoldFont = *-\Plex@SSboldstyle,
+ \PlexSS@features,
+ ]
+%
\newfontfamily\PlexExtraLightSS{IBMPlexSans}[%
\PlexSS@features,
Extension = .otf,
@@ -232,8 +251,16 @@
BoldFont = *-\Plex@TTboldstyle,
ItalicFont = *-\Plex@TTstyle Italic,
BoldItalicFont = *-\Plex@TTboldstyle Italic,
+ SlantedFont = *-\Plex@TTstyle Italic,
\PlexTT@features,
]
+ \newfontfamily\slshapeTT{IBMPlexMono}[%
+ Extension = .otf,
+ FakeSlant = 0.2,
+ UprightFont = *-\Plex@@Weight,
+ BoldFont = *-\Plex@TTboldstyle,
+ \PlexTT@features,
+ ]
\newfontfamily\PlexExtraLightTT{IBMPlexMono}[%
Extension = .otf,
UprightFont= *-ExtraLight,
@@ -284,7 +311,14 @@
BoldFont = * \Plex@RMboldstyle,
ItalicFont = * \Plex@RMstyle Italic,
BoldItalicFont = * \Plex@RMboldstyle Italic,
- Scale = 0.92,
+ SlantedFont = *-\Plex@RMstyle Italic,
+% Scale = 0.92,
+ \PlexRM@features,
+ ]
+ \newfontfamily\slshapeRM{IBMPlexSans}[%
+ FakeSlant = 0.2,
+ UprightFont = * \Plex@@Weight,
+ BoldFont = * \Plex@RMboldstyle,
\PlexRM@features,
]
\newfontfamily\PlexExtraLightRM{IBM Plex Serif}[%
@@ -328,7 +362,14 @@
BoldFont = * \Plex@SSboldstyle,
ItalicFont = * \Plex@SSstyle Italic,
BoldItalicFont = * \Plex@SSboldstyle Italic,
- Scale = 0.92,
+ SlantedFont = *-\Plex@SSstyle Italic,
+% Scale = 0.92,
+ \PlexSS@features,
+ ]
+ \newfontfamily\slshapeSS{IBMPlexSans}[%
+ FakeSlant = 0.2,
+ UprightFont = * \Plex@@Weight,
+ BoldFont = * \Plex@SSboldstyle,
\PlexSS@features,
]
\newfontfamily\PlexExtraLightSS{IBM Plex Sans}[%
@@ -372,7 +413,14 @@
BoldFont = * \Plex@TTboldstyle,
ItalicFont = * \Plex@TTstyle Italic,
BoldItalicFont = * \Plex@TTboldstyle Italic,
- Scale = 0.92,
+ SlantedFont = *-\Plex@TTstyle Italic,
+% Scale = 0.92,
+ \PlexTT@features,
+ ]
+ \newfontfamily\slshapeTT{IBMPlexMono}[%
+ FakeSlant = 0.2,
+ UprightFont = * \Plex@@Weight,
+ BoldFont = * \Plex@TTboldstyle,
\PlexTT@features,
]
\newfontfamily\PlexExtraLightTT{IBM Plex Mono}[%
@@ -410,6 +458,11 @@
%
\fi% end \ifPlex@usefilenames
+\DeclareTextFontCommand{\textsl}{\ifx\f@family\rmdefault\slshapeRM\else\slshapeSS\fi}
+\DeclareRobustCommand\slshape
+ {\not@math@alphabet\slshape\relax
+ \ifx\f@family\rmdefault\slshapeRM\else\ifx\f@family\sfdefault\slshapeSS\else\slshapeTT\fi\fi}
+
%Define some special Characters
\providecommand\IBM[1][0]{\ifcase#1
\symbol{"EBE1}\or