summaryrefslogtreecommitdiff
path: root/fonts/newtx/tex/ly1ntxlf.fd
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/newtx/tex/ly1ntxlf.fd')
-rw-r--r--fonts/newtx/tex/ly1ntxlf.fd18
1 files changed, 14 insertions, 4 deletions
diff --git a/fonts/newtx/tex/ly1ntxlf.fd b/fonts/newtx/tex/ly1ntxlf.fd
index d3395d04c3..6598756cec 100644
--- a/fonts/newtx/tex/ly1ntxlf.fd
+++ b/fonts/newtx/tex/ly1ntxlf.fd
@@ -1,4 +1,8 @@
-\ProvidesFile{ly1ntxlf.fd}[2015/01/17 v1.0 font definition file for LY1/ntx/lf]
+\ProvidesFile{ly1ntxlf.fd}[2021/05/08 v1.0 font definition file for LY1/ntx/lf]
+
+\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%
@@ -21,9 +25,15 @@
\DeclareFontShape{LY1}{ntxlf}{bx}{n}{<->ssub * ntxlf/b/n}{}
\DeclareFontShape{LY1}{ntxlf}{bx}{scit}{<->ssub * ntxlf/b/scit}{}
\DeclareFontShape{LY1}{ntxlf}{bx}{it}{<->ssub * ntxlf/b/it}{}
-\DeclareFontShape{LY1}{ntxlf}{m}{sl}{<-> \ntx@scaled ntx-Italic-tlf-th-ly1}{}
-\DeclareFontShape{LY1}{ntxlf}{b}{sl}{<->ssub * ntxlf/m/sl}{}
-\DeclareFontShape{LY1}{ntxlf}{bx}{sl}{<->ssub * ntxlf/m/sl}{}
+\ifntx@sl % point to real slanted fonts
+ \DeclareFontShape{LY1}{ntxlf}{m}{sl}{<-> \ntx@scaled ly1xsl-lf}{}
+ \DeclareFontShape{LY1}{ntxlf}{b}{sl}{<-> \ntx@scaled ztmbsl-lf-ly1}{}
+ \DeclareFontShape{LY1}{ntxlf}{bx}{sl}{<->ssub * ntxlf/b/sl}{}
+\else %point to theorem font
+ \DeclareFontShape{LY1}{ntxlf}{m}{sl}{<-> \ntx@scaled ntxth-Italic-tlf-ot1}{}
+ \DeclareFontShape{LY1}{ntxlf}{b}{sl}{<->ssub * ntxlf/m/sl}{}
+ \DeclareFontShape{LY1}{ntxlf}{bx}{sl}{<->ssub * ntxlf/m/sl}{}
+\fi
\DeclareFontShape{LY1}{ntxlf}{b}{scsl}{<->ssub * ntxlf/b/scit}{}
\DeclareFontShape{LY1}{ntxlf}{bx}{scsl}{<->ssub * ntxlf/b/scit}{}
\DeclareFontShape{LY1}{ntxlf}{m}{scsl}{<->ssub * ntxlf/m/scit}{}