summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/charissil/CharisSIL.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-07-20 21:19:19 +0000
committerKarl Berry <karl@freefriends.org>2020-07-20 21:19:19 +0000
commit3ce2b0bf4b5bfb7ae7aa13812ba83330fe08269a (patch)
tree3444eaa3603d04e34cbfd53819dca37688d6858d /Master/texmf-dist/tex/latex/charissil/CharisSIL.sty
parentdbfd3d35c0325197dec305820484818e46f8ac13 (diff)
charissil (20jul20)
git-svn-id: svn://tug.org/texlive/trunk@55888 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/charissil/CharisSIL.sty')
-rw-r--r--Master/texmf-dist/tex/latex/charissil/CharisSIL.sty66
1 files changed, 66 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/charissil/CharisSIL.sty b/Master/texmf-dist/tex/latex/charissil/CharisSIL.sty
new file mode 100644
index 00000000000..4d500802437
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/charissil/CharisSIL.sty
@@ -0,0 +1,66 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{CharisSIL}
+ [2020/07/19 (Bob Tennent and autoinst) Style file for CharisSIL fonts.]
+
+\RequirePackage{iftex,xkeyval,textcomp}
+
+\newif\ifCharisSIL@ttf
+\ifxetex
+ \CharisSIL@ttftrue
+\else\ifluatex
+ \CharisSIL@ttftrue
+\else % [pdf]LaTeX
+ \CharisSIL@ttffalse
+ \fi\fi
+
+\RequirePackage{fontaxes}
+
+\newcommand*{\CharisSIL@scale}{1}
+\RequirePackage{xkeyval}
+\DeclareOptionX{scaled}{\renewcommand*{\CharisSIL@scale}{#1}}
+\DeclareOptionX{scale}{\renewcommand*{\CharisSIL@scale}{#1}}
+\DeclareOptionX{type1}{\CharisSIL@ttffalse}
+
+\ProcessOptionsX\relax
+
+\ifCharisSIL@ttf
+ \RequirePackage{fontspec}
+\else
+ \RequirePackage{fontenc,fontaxes}
+\fi
+
+\ifCharisSIL@ttf
+ \ifxetex\XeTeXtracingfonts=1\fi
+ \defaultfontfeatures{
+ Ligatures = TeX ,
+ Scale = \CharisSIL@scale ,
+ Extension = .ttf }
+ \setmainfont
+ [ UprightFont = *-R,
+ ItalicFont = *-I,
+ BoldFont = *-B,
+ BoldItalicFont = *-BI ,
+ ]
+ {CharisSIL}
+ \newfontfamily\CharisSIL
+ [ UprightFont = *-R,
+ ItalicFont = *-I,
+ BoldFont = *-B,
+ BoldItalicFont = *-BI ,
+ ]
+ {CharisSIL}
+
+
+\else % type1
+
+ \def\CharisSIL@family{CharisSIL-TLF}
+ \renewcommand*\rmdefault{\CharisSIL@family}
+ \newcommand*\CharisSIL{\fontfamily{\CharisSIL@family}\selectfont}
+
+\fi
+
+\ifCharisSIL@ttf
+ \defaultfontfeatures{}
+\fi
+
+\endinput