summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/magra
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-01-09 21:30:43 +0000
committerKarl Berry <karl@freefriends.org>2021-01-09 21:30:43 +0000
commit8057c1aec923e58067a6e4bd18ed9af38fb1b64c (patch)
treebae0f9bbabbdd0babcb061854b351f1cf3509325 /Master/texmf-dist/tex/latex/magra
parentaf2eb5865018765eca9a73759eebf200dabd9507 (diff)
magra (9jan21)
git-svn-id: svn://tug.org/texlive/trunk@57361 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/magra')
-rw-r--r--Master/texmf-dist/tex/latex/magra/LY1Magra-TLF.fd51
-rw-r--r--Master/texmf-dist/tex/latex/magra/Magra.sty50
-rw-r--r--Master/texmf-dist/tex/latex/magra/OT1Magra-TLF.fd51
-rw-r--r--Master/texmf-dist/tex/latex/magra/T1Magra-TLF.fd51
-rw-r--r--Master/texmf-dist/tex/latex/magra/TS1Magra-TLF.fd51
5 files changed, 254 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/magra/LY1Magra-TLF.fd b/Master/texmf-dist/tex/latex/magra/LY1Magra-TLF.fd
new file mode 100644
index 00000000000..5a87c7143d7
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/magra/LY1Magra-TLF.fd
@@ -0,0 +1,51 @@
+%% Generated by autoinst on 2021/01/09
+%%
+\ProvidesFile{LY1Magra-TLF.fd}
+ [2021/01/09 (autoinst) Font definitions for LY1/Magra-TLF.]
+
+\ifcsname s@fct@alias\endcsname\else
+\gdef\s@fct@alias{\sub@sfcnt\@font@aliasinfo}
+\gdef\@font@aliasinfo#1{%
+ \@font@info{Font\space shape\space `\curr@fontshape'\space will
+ \space be\space aliased\MessageBreak to\space `\mandatory@arg'}%
+}
+\fi
+
+\expandafter\ifx\csname Magra@scale\endcsname\relax
+ \let\Magra@@scale\@empty
+\else
+ \edef\Magra@@scale{s*[\csname Magra@scale\endcsname]}%
+\fi
+
+\DeclareFontFamily{LY1}{Magra-TLF}{}
+
+
+% ---- b = bold ----
+
+\DeclareFontShape{LY1}{Magra-TLF}{b}{n}{
+ <-> \Magra@@scale Magra-Bold-tlf-ly1
+}{}
+
+\DeclareFontShape{LY1}{Magra-TLF}{bold}{n}{
+ <-> alias * Magra-TLF/b/n
+}{}
+
+
+% ---- m = regular ----
+
+\DeclareFontShape{LY1}{Magra-TLF}{m}{n}{
+ <-> \Magra@@scale Magra-tlf-ly1
+}{}
+
+\DeclareFontShape{LY1}{Magra-TLF}{regular}{n}{
+ <-> alias * Magra-TLF/m/n
+}{}
+
+
+% ---- Extra 'ssub' rules to map 'bx' to 'b' ----
+
+\DeclareFontShape{LY1}{Magra-TLF}{bx}{n}{
+ <-> ssub * Magra-TLF/b/n
+}{}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/magra/Magra.sty b/Master/texmf-dist/tex/latex/magra/Magra.sty
new file mode 100644
index 00000000000..b5769207a25
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/magra/Magra.sty
@@ -0,0 +1,50 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{Magra}
+ [2021/01/09 (Carl-Clemens Ebinger & autoinst) Style file for Magra fonts.]
+
+\RequirePackage{xkeyval}
+\newcommand*{\Magra@scale}{1}
+\DeclareOptionX{scale}{\renewcommand*{\Magra@scale}{#1}}
+\DeclareOptionX{scaled}{\renewcommand*{\Magra@scale}{#1}}
+
+\DeclareOptionX{lining}{\edef\Magra@figurestyle{LF}}
+\DeclareOptionX{tabular}{\edef\Magra@figurealign{T}}
+\DeclareOptionX{mainfont}{
+ \renewcommand{\familydefault}{\rmdefault}
+}
+\DeclareOptionX{bold}{\edef\bfseries@rm{bold}}
+\DeclareOptionX{regular}{\edef\mdseries@rm{regular}}
+\ExecuteOptionsX{lining,tabular}
+\ProcessOptionsX\relax
+
+\RequirePackage{fontenc,textcomp}
+\RequirePackage{ifthen}
+\RequirePackage{mweights}
+
+\IfFileExists{fontaxes.sty}{
+ \RequirePackage{fontaxes}
+}{}
+
+% Here we implement the scale=MatchLowercase option.
+% If this is given, we must compute the correct value of
+% the "\Magra@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 "\Magra@scale" we will pass to the .fd files.
+\ifthenelse{\equal{\Magra@scale}{MatchLowercase}}
+ { \newlength{\Magra@currentx}
+ \settoheight{\Magra@currentx}{x}
+ \newlength{\Magra@xheight}
+ \settoheight{\Magra@xheight}
+ {{\font\testfont=Magra-tlf-ot1 at \f@size pt\testfont x}}
+ \renewcommand*{\Magra@scale}
+ {\strip@pt\dimexpr\number\numexpr\number\dimexpr\Magra@currentx\relax*65536/\number\dimexpr\Magra@xheight\relax\relax sp\relax}}
+ {}
+
+\renewcommand*
+ {\rmdefault}
+ {Magra-\Magra@figurealign\Magra@figurestyle}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/magra/OT1Magra-TLF.fd b/Master/texmf-dist/tex/latex/magra/OT1Magra-TLF.fd
new file mode 100644
index 00000000000..2ae87cbcb6b
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/magra/OT1Magra-TLF.fd
@@ -0,0 +1,51 @@
+%% Generated by autoinst on 2021/01/09
+%%
+\ProvidesFile{OT1Magra-TLF.fd}
+ [2021/01/09 (autoinst) Font definitions for OT1/Magra-TLF.]
+
+\ifcsname s@fct@alias\endcsname\else
+\gdef\s@fct@alias{\sub@sfcnt\@font@aliasinfo}
+\gdef\@font@aliasinfo#1{%
+ \@font@info{Font\space shape\space `\curr@fontshape'\space will
+ \space be\space aliased\MessageBreak to\space `\mandatory@arg'}%
+}
+\fi
+
+\expandafter\ifx\csname Magra@scale\endcsname\relax
+ \let\Magra@@scale\@empty
+\else
+ \edef\Magra@@scale{s*[\csname Magra@scale\endcsname]}%
+\fi
+
+\DeclareFontFamily{OT1}{Magra-TLF}{}
+
+
+% ---- m = regular ----
+
+\DeclareFontShape{OT1}{Magra-TLF}{m}{n}{
+ <-> \Magra@@scale Magra-tlf-ot1
+}{}
+
+\DeclareFontShape{OT1}{Magra-TLF}{regular}{n}{
+ <-> alias * Magra-TLF/m/n
+}{}
+
+
+% ---- b = bold ----
+
+\DeclareFontShape{OT1}{Magra-TLF}{b}{n}{
+ <-> \Magra@@scale Magra-Bold-tlf-ot1
+}{}
+
+\DeclareFontShape{OT1}{Magra-TLF}{bold}{n}{
+ <-> alias * Magra-TLF/b/n
+}{}
+
+
+% ---- Extra 'ssub' rules to map 'bx' to 'b' ----
+
+\DeclareFontShape{OT1}{Magra-TLF}{bx}{n}{
+ <-> ssub * Magra-TLF/b/n
+}{}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/magra/T1Magra-TLF.fd b/Master/texmf-dist/tex/latex/magra/T1Magra-TLF.fd
new file mode 100644
index 00000000000..5c156473294
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/magra/T1Magra-TLF.fd
@@ -0,0 +1,51 @@
+%% Generated by autoinst on 2021/01/09
+%%
+\ProvidesFile{T1Magra-TLF.fd}
+ [2021/01/09 (autoinst) Font definitions for T1/Magra-TLF.]
+
+\ifcsname s@fct@alias\endcsname\else
+\gdef\s@fct@alias{\sub@sfcnt\@font@aliasinfo}
+\gdef\@font@aliasinfo#1{%
+ \@font@info{Font\space shape\space `\curr@fontshape'\space will
+ \space be\space aliased\MessageBreak to\space `\mandatory@arg'}%
+}
+\fi
+
+\expandafter\ifx\csname Magra@scale\endcsname\relax
+ \let\Magra@@scale\@empty
+\else
+ \edef\Magra@@scale{s*[\csname Magra@scale\endcsname]}%
+\fi
+
+\DeclareFontFamily{T1}{Magra-TLF}{}
+
+
+% ---- b = bold ----
+
+\DeclareFontShape{T1}{Magra-TLF}{b}{n}{
+ <-> \Magra@@scale Magra-Bold-tlf-t1
+}{}
+
+\DeclareFontShape{T1}{Magra-TLF}{bold}{n}{
+ <-> alias * Magra-TLF/b/n
+}{}
+
+
+% ---- m = regular ----
+
+\DeclareFontShape{T1}{Magra-TLF}{m}{n}{
+ <-> \Magra@@scale Magra-tlf-t1
+}{}
+
+\DeclareFontShape{T1}{Magra-TLF}{regular}{n}{
+ <-> alias * Magra-TLF/m/n
+}{}
+
+
+% ---- Extra 'ssub' rules to map 'bx' to 'b' ----
+
+\DeclareFontShape{T1}{Magra-TLF}{bx}{n}{
+ <-> ssub * Magra-TLF/b/n
+}{}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/magra/TS1Magra-TLF.fd b/Master/texmf-dist/tex/latex/magra/TS1Magra-TLF.fd
new file mode 100644
index 00000000000..28f68b8e705
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/magra/TS1Magra-TLF.fd
@@ -0,0 +1,51 @@
+%% Generated by autoinst on 2021/01/09
+%%
+\ProvidesFile{TS1Magra-TLF.fd}
+ [2021/01/09 (autoinst) Font definitions for TS1/Magra-TLF.]
+
+\ifcsname s@fct@alias\endcsname\else
+\gdef\s@fct@alias{\sub@sfcnt\@font@aliasinfo}
+\gdef\@font@aliasinfo#1{%
+ \@font@info{Font\space shape\space `\curr@fontshape'\space will
+ \space be\space aliased\MessageBreak to\space `\mandatory@arg'}%
+}
+\fi
+
+\expandafter\ifx\csname Magra@scale\endcsname\relax
+ \let\Magra@@scale\@empty
+\else
+ \edef\Magra@@scale{s*[\csname Magra@scale\endcsname]}%
+\fi
+
+\DeclareFontFamily{TS1}{Magra-TLF}{}
+
+
+% ---- b = bold ----
+
+\DeclareFontShape{TS1}{Magra-TLF}{b}{n}{
+ <-> \Magra@@scale Magra-Bold-tlf-ts1
+}{}
+
+\DeclareFontShape{TS1}{Magra-TLF}{bold}{n}{
+ <-> alias * Magra-TLF/b/n
+}{}
+
+
+% ---- m = regular ----
+
+\DeclareFontShape{TS1}{Magra-TLF}{m}{n}{
+ <-> \Magra@@scale Magra-tlf-ts1
+}{}
+
+\DeclareFontShape{TS1}{Magra-TLF}{regular}{n}{
+ <-> alias * Magra-TLF/m/n
+}{}
+
+
+% ---- Extra 'ssub' rules to map 'bx' to 'b' ----
+
+\DeclareFontShape{TS1}{Magra-TLF}{bx}{n}{
+ <-> ssub * Magra-TLF/b/n
+}{}
+
+\endinput