From f1261b349e875b842745b63258c3e338cb1fe3bf Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Sun, 23 May 2021 03:00:39 +0000
Subject: CTAN sync 202105230300

---
 fonts/newpx/tex/t1zpltosf.fd | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

(limited to 'fonts/newpx/tex/t1zpltosf.fd')

diff --git a/fonts/newpx/tex/t1zpltosf.fd b/fonts/newpx/tex/t1zpltosf.fd
index d800b5b786..85009e16e6 100644
--- a/fonts/newpx/tex/t1zpltosf.fd
+++ b/fonts/newpx/tex/t1zpltosf.fd
@@ -1,5 +1,7 @@
 \ProvidesFile{t1zpltosf.fd}[2015/01/17 v1.0 font definition file for T1/zpl/tosf]
 
+\@ifundefined{ifzpl@sl}{\global\newif\ifzpl@sl\global\zpl@sltrue}{}
+
 \expandafter\ifx\csname zpl@scaled\endcsname\relax
   \global\let\zpl@scaled\@empty%
 \fi
@@ -23,9 +25,15 @@
 \DeclareFontShape{T1}{zpltosf}{bx}{n}{<->ssub * zpltosf/b/n}{}
 \DeclareFontShape{T1}{zpltosf}{bx}{scit}{<->ssub * zpltosf/b/scit}{}
 \DeclareFontShape{T1}{zpltosf}{bx}{it}{<->ssub * zpltosf/b/it}{}
-\DeclareFontShape{T1}{zpltosf}{m}{sl}{<->\zpl@scaled zpl-Italic-osf-th-t1}{}
-\DeclareFontShape{T1}{zpltosf}{b}{sl}{<->ssub * zpltosf/b/it}{}
-\DeclareFontShape{T1}{zpltosf}{bx}{sl}{<->ssub * zpltosf/b/it}{}
+\ifzpl@sl % point to real slanted fonts
+  \DeclareFontShape{T1}{zpltosf}{m}{sl}{<-> \zpl@scaled zpl-Slanted-tosf-t1}{}
+  \DeclareFontShape{T1}{zpltosf}{b}{sl}{<-> \zpl@scaled zpl-BoldSlanted-tosf-t1}{}
+  \DeclareFontShape{T1}{zpltosf}{bx}{sl}{<->ssub * zpltosf/b/sl}{}
+\else %point to theorem font
+  \DeclareFontShape{T1}{zpltosf}{m}{sl}{<-> \zpl@scaled zplth-Italic-osf-t1}{}
+  \DeclareFontShape{T1}{zpltosf}{b}{sl}{<->ssub * zpltosf/m/sl}{}
+  \DeclareFontShape{T1}{zpltosf}{bx}{sl}{<->ssub * zpltosf/m/sl}{}
+\fi
 \DeclareFontShape{T1}{zpltosf}{b}{scsl}{<->ssub * zpltosf/b/scit}{}
 \DeclareFontShape{T1}{zpltosf}{bx}{scsl}{<->ssub * zpltosf/b/scit}{}
 \DeclareFontShape{T1}{zpltosf}{m}{scsl}{<->ssub * zpltosf/m/scit}{}
-- 
cgit v1.2.3

