diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/imfellenglish/imfellEnglish.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/imfellenglish/imfellEnglish.sty | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/imfellenglish/imfellEnglish.sty b/Master/texmf-dist/tex/latex/imfellenglish/imfellEnglish.sty new file mode 100644 index 00000000000..9aebdfa913e --- /dev/null +++ b/Master/texmf-dist/tex/latex/imfellenglish/imfellEnglish.sty @@ -0,0 +1,63 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{imfellEnglish} + [2015/09/30 (Bob Tennent and autoinst) Style file for IM Fell English fonts.] + +\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} + +\newif\ifimfellEnglish@otf +\ifxetex + \imfellEnglish@otftrue +\else\ifluatex + \imfellEnglish@otftrue +\else % [pdf]LaTeX + \imfellEnglish@otffalse +\fi\fi + +\newcommand*{\IMFELLEnglish@scale}{1} +\RequirePackage{xkeyval} +\DeclareOptionX{scaled}{\renewcommand*{\IMFELLEnglish@scale}{#1}\renewcommand*{\IMFELLEnglishSC@scale}{#1}} +\DeclareOptionX{scale}{\renewcommand*{\IMFELLEnglish@scale}{#1}\renewcommand*{\IMFELLEnglishSC@scale}{#1}} +\DeclareOptionX{type1}{\imfellEnglish@otffalse} + +\ProcessOptionsX\relax + +\ifimfellEnglish@otf + \RequirePackage{fontspec} +\else + \RequirePackage{fontenc,fontaxes} +\fi + +\ifimfellEnglish@otf + \ifxetex\XeTeXtracingfonts=1\fi + \defaultfontfeatures{ + Ligatures = TeX , + Scale = \IMFELLEnglish@scale , + Extension = .otf } + \setmainfont{IMFeEN}[ + UprightFont = *rm28P , + ItalicFont = *it28P , + BoldFont = *rm28P , + BoldItalicFont = *it28P , + ] + + \newfontfamily\scshape[ + UprightFont = *sc28P, + ] + {IMFeEN} + +\else % type1 + + \def\imfellEnglish@family{IMFELLEnglish-TLF} + \def\imfellEnglishSC@family{IMFELLEnglishSC-TLF} + \renewcommand*\rmdefault{\imfellEnglish@family} + \newcommand*\imfellEnglish{\fontfamily{\imfellEnglish@family}\selectfont} + + \DeclareRobustCommand\scshape{\fontfamily{\imfellEnglishSC@family}\selectfont} + +\fi + +\ifimfellEnglish@otf + \defaultfontfeatures{} +\fi + +\endinput |