-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrwufont.sty
More file actions
58 lines (49 loc) · 1.68 KB
/
rwufont.sty
File metadata and controls
58 lines (49 loc) · 1.68 KB
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
\NeedsTeXFormat{LaTeX2e}[2017/01/01]
\ProvidesPackage{rwufont}[2019/11/26 RWU corporate font package]
\RequirePackage{kvoptions}
\RequirePackage{ifthen}
\RequirePackage{fontspec}
\SetupKeyvalOptions{
family=rwufont,
prefix=rwufont@
}
\DeclareStringOption[barlowsc]{fontsetup}
\ProcessKeyvalOptions*
\setsansfont[Ligatures=TeX]{Barlow Semi Condensed}
\ifthenelse{\equal{\rwufont@fontsetup}{barlowsc}}{
\setmainfont[Ligatures=TeX]{Barlow Semi Condensed}
}{
\ifthenelse{\equal{\rwufont@fontsetup}{barlow}}{
\setmainfont[Ligatures=TeX]{Barlow}
}{
\ifthenelse{\equal{\rwufont@fontsetup}{basic}}{
% do not set up main font
}{
\PackageError{rwufont}{Invalid fontsetup option}{%
Please use one of the following:\MessageBreak%
\space\space fontsetup=barlowsc\MessageBreak%
\space\space fontsetup=barlow\MessageBreak%
\space\space fontsetup=basic\MessageBreak%
}
}
}
}
\providecommand*{\glqq}{\mbox{\char"201E}}
\renewcommand*{\glqq}{\mbox{\char"201E}}
\providecommand*{\grqq}{\mbox{\char"201C}}
\renewcommand*{\grqq}{\mbox{\char"201C}}
% FIXME: Disabled for now, as the font glyph for the opening single
% quotation mark has unwanted extra space after it (font bug)!
%\providecommand*{\glq}{\mbox{\char"201A}}
%\renewcommand*{\glq}{\mbox{\char"201A}}
%\providecommand*{\grq}{\mbox{\char"2018}}
%\renewcommand*{\grq}{\mbox{\char"2018}}
\providecommand*{\flqq}{\mbox{\char"00BB}}
\renewcommand*{\flqq}{\mbox{\char"00BB}}
\providecommand*{\frqq}{\mbox{\char"00AB}}
\renewcommand*{\frqq}{\mbox{\char"00AB}}
\providecommand*{\flq}{\mbox{\char"203A}}
\renewcommand*{\flq}{\mbox{\char"203A}}
\providecommand*{\frq}{\mbox{\char"2039}}
\renewcommand*{\frq}{\mbox{\char"2039}}
\endinput