blob: 1dbd695e8fe1d6f612dd6ff4bea7466c8499b459 (
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
57
58
59
60
61
62
63
64
|
\ProvidesPackage{forum}[%
2020/08/01 (Bob Tennent) Supports Forum fonts for all LaTeX engines. ]
\RequirePackage{ifxetex,ifluatex,textcomp}
\newif\ifforum@otf
\ifxetex
\forum@otftrue
\else\ifluatex
\forum@otftrue
\else % [pdf]LaTeX
\forum@otffalse
\fi\fi
\newcommand*{\Frm@scale}{1}
\RequirePackage{xkeyval}
\DeclareOptionX{scaled}{\renewcommand*{\Frm@scale}{#1}}
\DeclareOptionX{scale}{\renewcommand*{\Frm@scale}{#1}}
\DeclareOptionX{type1}{\forum@otffalse}
\ProcessOptionsX\relax
\ifforum@otf
\RequirePackage{fontspec}
\else
\RequirePackage{fontenc,fontaxes,mweights}
\fi
\ifforum@otf
\ifxetex\XeTeXtracingfonts=1\fi
\defaultfontfeatures{
Ligatures = TeX ,
Extension = .otf ,
Scale = \Frm@scale,
}
\setmainfont
[ UprightFont = *-Regular ,
BoldFont = Frm-Bold,
]
{Forum}
\newfontfamily\forum
[ UprightFont = *-Regular ,
BoldFont = Frm-Bold,
]
{Forum}
\else % type1
\def\mdseries@rm{regular}
\def\bfseries@rm{bold}
\def\forumfamily{Frm-LF}
\renewcommand*\rmdefault{\forumfamily}
\newcommand*\forum{\fontfamily{\forumfamily}\selectfont}
\fi
% turn off defaults in case other fonts are selected:
\ifforum@otf
\defaultfontfeatures{}
\fi
\endinput
|