summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/crimson/crimson.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/crimson/crimson.sty')
-rw-r--r--Master/texmf-dist/tex/latex/crimson/crimson.sty25
1 files changed, 21 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/crimson/crimson.sty b/Master/texmf-dist/tex/latex/crimson/crimson.sty
index b0b76b79382..baae53f9983 100644
--- a/Master/texmf-dist/tex/latex/crimson/crimson.sty
+++ b/Master/texmf-dist/tex/latex/crimson/crimson.sty
@@ -1,5 +1,5 @@
\ProvidesPackage{crimson}[%
- 2022/09/30 (Bob Tennent) Supports crimson fonts for all LaTeX engines. ]
+ 2024/12/06 (Bob Tennent) Supports crimson fonts for all LaTeX engines. ]
\RequirePackage{ifxetex,ifluatex,textcomp}
@@ -17,6 +17,7 @@
\DeclareOptionX{scaled}{\renewcommand*{\Crimson@scale}{#1}}
\DeclareOptionX{scale}{\renewcommand*{\Crimson@scale}{#1}}
+
\newif\ifcrimson@semibold \crimson@semiboldfalse
\DeclareOptionX{type1}{\crimson@otffalse}
@@ -35,11 +36,26 @@
\ifcrimson@otf
\def\crimson@boldstyle{Bold}
\ifcrimson@semibold\def\crimson@boldstyle{Semibold}\fi
+ \def\crimson@figurestyle{Lining}
+ \def\crimson@figurealign{Proportional}
+ \def\crimson@regularstyle{Regular}
+ \ifcrimson@semibold
+ \def\crimson@boldstyle{SemiBold}
+ \else
+ \def\crimson@boldstyle{Bold}
+ \fi
+
\else % type1
- \def\bfseries@rm{b}
- \ifcrimson@semibold\def\bfseries@rm{sb}\fi
+ \ifcrimson@semibold
+ \def\bfseries@rm{sb}
+ \else
+ \def\bfseries@rm{b}
+ \fi
+
+ \def\crimson@figurestyle{LF}
+ \def\crimson@figurealign{}
\def\mdseries@rm{m}
\fi
@@ -72,13 +88,14 @@
\else % type1
- \def\crimson@family{Crimson-TLF}
+ \def\crimson@family{Crimson-\crimson@figurealign\crimson@figurestyle}
\renewcommand*\rmdefault{\crimson@family}
\newcommand*\crimson{\fontfamily{\crimson@family}\selectfont}
\def\crimsonsemibold{\fontfamily{\crimson@family}\fontseries{sb}\selectfont}
\fi
+
% turn off defaults in case other fonts are selected:
\ifcrimson@otf
\defaultfontfeatures{}