summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/imfellenglish/imfellEnglish.sty
blob: a582fe239fae1b23a985c96663fa2646700d70c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{imfellEnglish}
    [2015/10/04 (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 ,
        SmallCapsFont  = *sc28P,
      ]
      
\else % type1

  \def\imfellEnglish@family{IMFELLEnglish-TLF}
  \renewcommand*\rmdefault{\imfellEnglish@family}
  \newcommand*\imfellEnglish{\fontfamily{\imfellEnglish@family}\selectfont}

\fi

\ifimfellEnglish@otf
  \defaultfontfeatures{}
\fi

\endinput