summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cascadia-code/CascadiaMonoPL.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/cascadia-code/CascadiaMonoPL.sty')
-rw-r--r--Master/texmf-dist/tex/latex/cascadia-code/CascadiaMonoPL.sty60
1 files changed, 0 insertions, 60 deletions
diff --git a/Master/texmf-dist/tex/latex/cascadia-code/CascadiaMonoPL.sty b/Master/texmf-dist/tex/latex/cascadia-code/CascadiaMonoPL.sty
deleted file mode 100644
index b4e467e9e37..00000000000
--- a/Master/texmf-dist/tex/latex/cascadia-code/CascadiaMonoPL.sty
+++ /dev/null
@@ -1,60 +0,0 @@
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{CascadiaMonoPL}
- [2023/09/26 (autoinst) Style file for CascadiaMonoPL fonts.]
-
-\RequirePackage{xkeyval}
-\newcommand*{\CascadiaMonoPL@scale}{1}
-\DeclareOptionX{scale}{\renewcommand*{\CascadiaMonoPL@scale}{#1}}
-\DeclareOptionX{scaled}{\renewcommand*{\CascadiaMonoPL@scale}{#1}}
-
-\DeclareOptionX{lining}{\edef\CascadiaMonoPL@figurestyle{LF}}
-\DeclareOptionX{tabular}{\edef\CascadiaMonoPL@figurealign{T}}
-\DeclareOptionX{mainfont}{
- \renewcommand{\familydefault}{\ttdefault}
-}
-\DeclareOptionX{semibold}{\edef\bfseries@tt{semibold}}
-\DeclareOptionX{bold}{\edef\bfseries@tt{bold}}
-\DeclareOptionX{regular}{\edef\mdseries@tt{regular}}
-\ExecuteOptionsX{lining,tabular}
-\ProcessOptionsX\relax
-
-\RequirePackage{fontenc,textcomp}
-\RequirePackage{ifthen}
-\RequirePackage{mweights}
-
-\IfFileExists{fontaxes.sty}{
- \RequirePackage{fontaxes}
- \fa@naming@exception{figures}{{superior}{proportional}}{Sup}
- \fa@naming@exception{figures}{{superior}{tabular}}{Sup}
- \def\supfigures{\@nomath\supfigures
- \fontfigurestyle{superior}\selectfont}
- \let\sufigures\supfigures
- \DeclareTextFontCommand{\textsup}{\supfigures}
- \let\textsu\textsup
- \let\textsuperior\textsup
-
-}{}
-
-% Here we implement the scale=MatchLowercase option.
-% If this is given, we must compute the correct value of
-% the "\CascadiaMonoPL@scale" parameter before loading the .fd files;
-% but to determine that value we of course need the font's x-height.
-% To avoid triggering the loading of .fd files,
-% we use plain TeX's \font primitive to load the testfont.
-% We then compute the ratio of the current x-height to our font's x-height;
-% this is the "\CascadiaMonoPL@scale" we will pass to the .fd files.
-\ifthenelse{\equal{\CascadiaMonoPL@scale}{MatchLowercase}}
- { \newlength{\CascadiaMonoPL@currentx}
- \settoheight{\CascadiaMonoPL@currentx}{x}
- \newlength{\CascadiaMonoPL@xheight}
- \settoheight{\CascadiaMonoPL@xheight}
- {{\font\testfont=CascadiaMonoPL-Regular-tlf-ot1 at \f@size pt\testfont x}}
- \renewcommand*{\CascadiaMonoPL@scale}
- {\strip@pt\dimexpr\number\numexpr\number\dimexpr\CascadiaMonoPL@currentx\relax*65536/\number\dimexpr\CascadiaMonoPL@xheight\relax\relax sp\relax}}
- {}
-
-\renewcommand*
- {\ttdefault}
- {CascadiaMonoPL-\CascadiaMonoPL@figurealign\CascadiaMonoPL@figurestyle}
-
-\endinput