summaryrefslogtreecommitdiff
path: root/fonts/newtx/tex/ot1ntxtosf.fd
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/newtx/tex/ot1ntxtosf.fd')
-rw-r--r--fonts/newtx/tex/ot1ntxtosf.fd18
1 files changed, 14 insertions, 4 deletions
diff --git a/fonts/newtx/tex/ot1ntxtosf.fd b/fonts/newtx/tex/ot1ntxtosf.fd
index 14a6cb7dc7..5d8421fec7 100644
--- a/fonts/newtx/tex/ot1ntxtosf.fd
+++ b/fonts/newtx/tex/ot1ntxtosf.fd
@@ -1,4 +1,8 @@
-\ProvidesFile{ot1ntxtosf.fd}[2015/01/17 v1.0 font definition file for OT1/ntx/tosf]
+\ProvidesFile{ot1ntxtosf.fd}[2021/05/08 v1.0 font definition file for OT1/ntx/tosf]
+
+\expandafter\ifx\csname ntx@sltrue\endcsname\relax
+ \global\newif\ntx@sl\global\ntx@sltrue%
+\fi
\expandafter\ifx\csname ntx@scaled\endcsname\relax
\let\ntx@scaled\@empty%
@@ -23,9 +27,15 @@
\DeclareFontShape{OT1}{ntxtosf}{bx}{n}{<->ssub * ntxtosf/b/n}{}
\DeclareFontShape{OT1}{ntxtosf}{bx}{scit}{<->ssub * ntxtosf/b/scit}{}
\DeclareFontShape{OT1}{ntxtosf}{bx}{it}{<->ssub * ntxtosf/b/it}{}
-\DeclareFontShape{OT1}{ntxtosf}{m}{sl}{<-> \ntx@scaled ntx-Italic-osf-th-ot1}{}
-\DeclareFontShape{OT1}{ntxtosf}{b}{sl}{<->ssub * ntxtosf/m/sl}{}
-\DeclareFontShape{OT1}{ntxtosf}{bx}{sl}{<->ssub * ntxtosf/m/sl}{}
+\ifntx@sl % point to real slanted fonts
+ \DeclareFontShape{OT1}{ntxtosf}{m}{sl}{<-> \ntx@scaled ot1xsl-tosf}{}
+ \DeclareFontShape{OT1}{ntxtosf}{b}{sl}{<-> \ntx@scaled ztmbsl-tosf-ot1}{}
+ \DeclareFontShape{OT1}{ntxtosf}{bx}{sl}{<->ssub * ntxtosf/b/sl}{}
+\else %point to theorem font
+ \DeclareFontShape{OT1}{ntxtosf}{m}{sl}{<-> \ntx@scaled ntxth-Italic-tlf-ot1}{}
+ \DeclareFontShape{OT1}{ntxtosf}{b}{sl}{<->ssub * ntxtosf/m/sl}{}
+ \DeclareFontShape{OT1}{ntxtosf}{bx}{sl}{<->ssub * ntxtosf/m/sl}{}
+\fi
\DeclareFontShape{OT1}{ntxtosf}{b}{scsl}{<->ssub * ntxtosf/b/scit}{}
\DeclareFontShape{OT1}{ntxtosf}{bx}{scsl}{<->ssub * ntxtosf/b/scit}{}
\DeclareFontShape{OT1}{ntxtosf}{m}{scsl}{<->ssub * ntxtosf/m/scit}{}