summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bitter
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-11 21:27:50 +0000
committerKarl Berry <karl@freefriends.org>2019-05-11 21:27:50 +0000
commit91f036cf24a64320f86b66435db4733711e3aeb6 (patch)
tree4c2e191f1454b14cbba4b5439f90626b414bfe6e /Master/texmf-dist/tex/latex/bitter
parent439c8dadc32c3029c7aa2bb7c0ce2fd8326a61c3 (diff)
bitter (11may19)
git-svn-id: svn://tug.org/texlive/trunk@51086 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bitter')
-rw-r--r--Master/texmf-dist/tex/latex/bitter/LY1Bitter-TLF.fd65
-rw-r--r--Master/texmf-dist/tex/latex/bitter/OT1Bitter-TLF.fd65
-rw-r--r--Master/texmf-dist/tex/latex/bitter/T1Bitter-TLF.fd65
-rw-r--r--Master/texmf-dist/tex/latex/bitter/TS1Bitter-TLF.fd65
-rw-r--r--Master/texmf-dist/tex/latex/bitter/bitter.sty72
5 files changed, 332 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/bitter/LY1Bitter-TLF.fd b/Master/texmf-dist/tex/latex/bitter/LY1Bitter-TLF.fd
new file mode 100644
index 00000000000..1d1a22b1975
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/bitter/LY1Bitter-TLF.fd
@@ -0,0 +1,65 @@
+%% Generated by autoinst on 2019/05/10
+%%
+\ProvidesFile{LY1Bitter-TLF.fd}
+ [2019/05/10 (autoinst) Font definitions for LY1/Bitter-TLF.]
+
+\expandafter\ifx\csname Bitter@scale\endcsname\relax
+ \let\Bitter@@scale\@empty
+\else
+ \edef\Bitter@@scale{s*[\csname Bitter@scale\endcsname]}%
+\fi
+
+\DeclareFontFamily{LY1}{Bitter-TLF}{}
+
+
+% ---- regular ----
+
+\DeclareFontShape{LY1}{Bitter-TLF}{regular}{n}{
+ <-> \Bitter@@scale Bitter-Regular-tlf-ly1
+}{}
+
+\DeclareFontShape{LY1}{Bitter-TLF}{regular}{it}{
+ <-> \Bitter@@scale Bitter-Italic-tlf-ly1
+}{}
+
+\DeclareFontShape{LY1}{Bitter-TLF}{regular}{sl}{
+ <-> ssub * Bitter-TLF/regular/it
+}{}
+
+
+% ---- bold ----
+
+\DeclareFontShape{LY1}{Bitter-TLF}{bold}{n}{
+ <-> \Bitter@@scale Bitter-Bold-tlf-ly1
+}{}
+
+%
+% Extra 'ssub' rules to map the standard NFSS codes to our fancy names
+%
+
+% m --> regular
+
+\DeclareFontShape{LY1}{Bitter-TLF}{m}{sl}{
+ <-> ssub * Bitter-TLF/regular/sl
+}{}
+
+\DeclareFontShape{LY1}{Bitter-TLF}{m}{n}{
+ <-> ssub * Bitter-TLF/regular/n
+}{}
+
+\DeclareFontShape{LY1}{Bitter-TLF}{m}{it}{
+ <-> ssub * Bitter-TLF/regular/it
+}{}
+
+
+% b --> bold
+
+\DeclareFontShape{LY1}{Bitter-TLF}{b}{n}{
+ <-> ssub * Bitter-TLF/bold/n
+}{}
+
+\DeclareFontShape{LY1}{Bitter-TLF}{bx}{n}{
+ <-> ssub * Bitter-TLF/b/n
+}{}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/bitter/OT1Bitter-TLF.fd b/Master/texmf-dist/tex/latex/bitter/OT1Bitter-TLF.fd
new file mode 100644
index 00000000000..cf2ba306962
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/bitter/OT1Bitter-TLF.fd
@@ -0,0 +1,65 @@
+%% Generated by autoinst on 2019/05/10
+%%
+\ProvidesFile{OT1Bitter-TLF.fd}
+ [2019/05/10 (autoinst) Font definitions for OT1/Bitter-TLF.]
+
+\expandafter\ifx\csname Bitter@scale\endcsname\relax
+ \let\Bitter@@scale\@empty
+\else
+ \edef\Bitter@@scale{s*[\csname Bitter@scale\endcsname]}%
+\fi
+
+\DeclareFontFamily{OT1}{Bitter-TLF}{}
+
+
+% ---- regular ----
+
+\DeclareFontShape{OT1}{Bitter-TLF}{regular}{n}{
+ <-> \Bitter@@scale Bitter-Regular-tlf-ot1
+}{}
+
+\DeclareFontShape{OT1}{Bitter-TLF}{regular}{it}{
+ <-> \Bitter@@scale Bitter-Italic-tlf-ot1
+}{}
+
+\DeclareFontShape{OT1}{Bitter-TLF}{regular}{sl}{
+ <-> ssub * Bitter-TLF/regular/it
+}{}
+
+
+% ---- bold ----
+
+\DeclareFontShape{OT1}{Bitter-TLF}{bold}{n}{
+ <-> \Bitter@@scale Bitter-Bold-tlf-ot1
+}{}
+
+%
+% Extra 'ssub' rules to map the standard NFSS codes to our fancy names
+%
+
+% m --> regular
+
+\DeclareFontShape{OT1}{Bitter-TLF}{m}{sl}{
+ <-> ssub * Bitter-TLF/regular/sl
+}{}
+
+\DeclareFontShape{OT1}{Bitter-TLF}{m}{n}{
+ <-> ssub * Bitter-TLF/regular/n
+}{}
+
+\DeclareFontShape{OT1}{Bitter-TLF}{m}{it}{
+ <-> ssub * Bitter-TLF/regular/it
+}{}
+
+
+% b --> bold
+
+\DeclareFontShape{OT1}{Bitter-TLF}{b}{n}{
+ <-> ssub * Bitter-TLF/bold/n
+}{}
+
+\DeclareFontShape{OT1}{Bitter-TLF}{bx}{n}{
+ <-> ssub * Bitter-TLF/b/n
+}{}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/bitter/T1Bitter-TLF.fd b/Master/texmf-dist/tex/latex/bitter/T1Bitter-TLF.fd
new file mode 100644
index 00000000000..30ef1da2e80
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/bitter/T1Bitter-TLF.fd
@@ -0,0 +1,65 @@
+%% Generated by autoinst on 2019/05/10
+%%
+\ProvidesFile{T1Bitter-TLF.fd}
+ [2019/05/10 (autoinst) Font definitions for T1/Bitter-TLF.]
+
+\expandafter\ifx\csname Bitter@scale\endcsname\relax
+ \let\Bitter@@scale\@empty
+\else
+ \edef\Bitter@@scale{s*[\csname Bitter@scale\endcsname]}%
+\fi
+
+\DeclareFontFamily{T1}{Bitter-TLF}{}
+
+
+% ---- regular ----
+
+\DeclareFontShape{T1}{Bitter-TLF}{regular}{n}{
+ <-> \Bitter@@scale Bitter-Regular-tlf-t1
+}{}
+
+\DeclareFontShape{T1}{Bitter-TLF}{regular}{it}{
+ <-> \Bitter@@scale Bitter-Italic-tlf-t1
+}{}
+
+\DeclareFontShape{T1}{Bitter-TLF}{regular}{sl}{
+ <-> ssub * Bitter-TLF/regular/it
+}{}
+
+
+% ---- bold ----
+
+\DeclareFontShape{T1}{Bitter-TLF}{bold}{n}{
+ <-> \Bitter@@scale Bitter-Bold-tlf-t1
+}{}
+
+%
+% Extra 'ssub' rules to map the standard NFSS codes to our fancy names
+%
+
+% m --> regular
+
+\DeclareFontShape{T1}{Bitter-TLF}{m}{sl}{
+ <-> ssub * Bitter-TLF/regular/sl
+}{}
+
+\DeclareFontShape{T1}{Bitter-TLF}{m}{n}{
+ <-> ssub * Bitter-TLF/regular/n
+}{}
+
+\DeclareFontShape{T1}{Bitter-TLF}{m}{it}{
+ <-> ssub * Bitter-TLF/regular/it
+}{}
+
+
+% b --> bold
+
+\DeclareFontShape{T1}{Bitter-TLF}{b}{n}{
+ <-> ssub * Bitter-TLF/bold/n
+}{}
+
+\DeclareFontShape{T1}{Bitter-TLF}{bx}{n}{
+ <-> ssub * Bitter-TLF/b/n
+}{}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/bitter/TS1Bitter-TLF.fd b/Master/texmf-dist/tex/latex/bitter/TS1Bitter-TLF.fd
new file mode 100644
index 00000000000..8504d093ef3
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/bitter/TS1Bitter-TLF.fd
@@ -0,0 +1,65 @@
+%% Generated by autoinst on 2019/05/10
+%%
+\ProvidesFile{TS1Bitter-TLF.fd}
+ [2019/05/10 (autoinst) Font definitions for TS1/Bitter-TLF.]
+
+\expandafter\ifx\csname Bitter@scale\endcsname\relax
+ \let\Bitter@@scale\@empty
+\else
+ \edef\Bitter@@scale{s*[\csname Bitter@scale\endcsname]}%
+\fi
+
+\DeclareFontFamily{TS1}{Bitter-TLF}{}
+
+
+% ---- regular ----
+
+\DeclareFontShape{TS1}{Bitter-TLF}{regular}{n}{
+ <-> \Bitter@@scale Bitter-Regular-tlf-ts1
+}{}
+
+\DeclareFontShape{TS1}{Bitter-TLF}{regular}{it}{
+ <-> \Bitter@@scale Bitter-Italic-tlf-ts1
+}{}
+
+\DeclareFontShape{TS1}{Bitter-TLF}{regular}{sl}{
+ <-> ssub * Bitter-TLF/regular/it
+}{}
+
+
+% ---- bold ----
+
+\DeclareFontShape{TS1}{Bitter-TLF}{bold}{n}{
+ <-> \Bitter@@scale Bitter-Bold-tlf-ts1
+}{}
+
+%
+% Extra 'ssub' rules to map the standard NFSS codes to our fancy names
+%
+
+% m --> regular
+
+\DeclareFontShape{TS1}{Bitter-TLF}{m}{sl}{
+ <-> ssub * Bitter-TLF/regular/sl
+}{}
+
+\DeclareFontShape{TS1}{Bitter-TLF}{m}{n}{
+ <-> ssub * Bitter-TLF/regular/n
+}{}
+
+\DeclareFontShape{TS1}{Bitter-TLF}{m}{it}{
+ <-> ssub * Bitter-TLF/regular/it
+}{}
+
+
+% b --> bold
+
+\DeclareFontShape{TS1}{Bitter-TLF}{b}{n}{
+ <-> ssub * Bitter-TLF/bold/n
+}{}
+
+\DeclareFontShape{TS1}{Bitter-TLF}{bx}{n}{
+ <-> ssub * Bitter-TLF/b/n
+}{}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/bitter/bitter.sty b/Master/texmf-dist/tex/latex/bitter/bitter.sty
new file mode 100644
index 00000000000..1362c92640d
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/bitter/bitter.sty
@@ -0,0 +1,72 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{bitter}
+ [2019/05/10 (R.D. Tennent) Supports Bitter fonts for all LaTeX engines.]
+
+\RequirePackage{ifxetex,ifluatex,textcomp}
+
+\newif\ifBitter@ttf
+\ifxetex
+ \Bitter@ttftrue
+\else\ifluatex
+ \Bitter@ttftrue
+\else % [pdf]LaTeX
+ \Bitter@ttffalse
+\fi\fi
+
+\newcommand*{\Bitter@scale}{1}
+\RequirePackage{xkeyval}
+\DeclareOptionX{scaled}{\renewcommand*{\Bitter@scale}{#1}}
+\DeclareOptionX{scale}{\renewcommand*{\Bitter@scale}{#1}}
+
+\DeclareOptionX{type1}{\Bitter@ttffalse}
+
+\ProcessOptionsX\relax
+
+\ifBitter@ttf
+ \RequirePackage{fontspec}
+\else
+ \RequirePackage{fontenc,fontaxes,mweights}
+\fi
+
+\ifBitter@ttf
+ \def\Bitter@regular{Regular}
+ \ifxetex\XeTeXtracingfonts=1\fi
+ \defaultfontfeatures{
+ Ligatures = TeX ,
+ Extension = .ttf ,
+ Scale = \Bitter@scale ,
+ }
+ \setmainfont
+ [ UprightFont = *-Regular ,
+ ItalicFont = *-Italic ,
+ BoldFont = *-Bold ,
+ ]
+ {Bitter}
+ % grab current family in case of subsequent change:
+ \let\Bitterfamily\rmdefault
+
+ \newfontfamily\bitter
+ [ UprightFont = *-Regular ,
+ ItalicFont = *-Italic ,
+ BoldFont = *-Bold ,
+ ]
+ {Bitter}
+
+\else % type1
+
+ \def\bfseries@rm{b}
+ \def\mdseries@rm{m}
+ \def\seriesdefault{\mdseries@rm}
+ \def\bitterfamily{Bitter-TLF}
+ \def\bitter{\fontfamily{\bitterfamily}\selectfont}
+ \def\rmdefault{\bitterfamily}
+
+\fi
+
+% turn off defaults in case other fonts are selected:
+\ifBitter@ttf
+ \defaultfontfeatures{}
+\fi
+
+\endinput
+