summaryrefslogtreecommitdiff
path: root/fonts/junicode/doc/JunicodeManual.sty
blob: f7c4c7ab46552aaa350b73be7405739a02de9fe4 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
\ProvidesPackage{JunicodeManual}

\usepackage{microtype}

\usepackage[
  MainFeatures={
    StylisticSet={9,10}
  },
  MainRegularSizeFeatures={
    {size=8.6,wght=550,wdth=120},
    {size=10.99,wght=475,wdth=115},
    {size=21.59,wght=400,wdth=112.5},
    {size=21.59,wght=351,wdth=100}
  },
  MainItalicSizeFeatures={
    {size=8.6,wght=550,wdth=118},
    {size=10.99,wght=475,wdth=114},
    {size=21.59,wght=450,wdth=111},
    {size=21.59,wght=372,wdth=98}
  },
  MainBoldSizeFeatures={
    {size=8.6,wght=700,wdth=120},
    {size=10.99,wght=700,wdth=115},
    {size=21.59,wght=650,wdth=112.5},
    {size=21.59,wght=600,wdth=100}
  },
  MainBoldItalicSizeFeatures={
    {size=8.6,wght=700,wdth=118},
    {size=10.99,wght=700,wdth=114},
    {size=21.59,wght=650,wdth=111},
    {size=21.59,wght=600,wdth=98}
  },
  CondSizeFeatures={
    {size=8.5,wght=420,wdth=75},
    {size=11,wght=400,wdth=75},
    {size=22,wght=350,wdth=75},
    {size=22,wght=345,wdth=75}
  },
  SmCondLightFeatures={StylisticSet=9},
  SmCondFeatures={StylisticSet=9}
]{junicodevf}
\setfontface\samplefootnote{JunicodeVF}[
    Renderer = HarfBuzz,
    SizeFeatures = {{Size={5-}, RawFeature={axis={wght=490,wdth=115}}}},
]
\setfontface\sampleheader{JunicodeVF}[
    Renderer = HarfBuzz,
    StylisticSet = 9,
    SizeFeatures = {{Size={5-}, RawFeature={axis={wght=350,wdth=95}}}}
]
\setmonofont{Fira Mono}[Scale=MatchLowercase,Numbers=Lowercase]
\setsansfont{Fira Sans}[Scale=MatchLowercase,Numbers=Lowercase]

\usepackage{imakeidx}
\usepackage{idxlayout}

\makeindex[title=Index of OpenType Features,intoc]

\usepackage{fancyhdr}
\usepackage{realscripts}
\usepackage{graphicx}
\usepackage[table,dvipsnames]{xcolor}
\definecolor{BrickRed}{RGB}{146,18,6}
\definecolor{SlateGray}{RGB}{112,128,144}
\definecolor{GGOrange}{RGB}{240,74,6}
\definecolor{RViolet}{RGB}{70,18,87}
\definecolor{myRed}{rgb}{0.5,0,0}
\definecolor{myBlue}{rgb}{0,0,0.5}
\definecolor{myLightRed}{RGB}{255,232,244}
\definecolor{myLightYellow}{RGB}{239,249,218}
\definecolor{myLightBlue}{RGB}{203,228,249}
\definecolor{myLightGreen}{RGB}{234,255,244}
\definecolor{myLightPurple}{RGB}{214,205,234}
\definecolor{GunMetalGray}{RGB}{42,52,57}
\usepackage{multicol}
\usepackage{array}
\usepackage{tabto}
\usepackage{supertabular}
\usepackage{hhline}
\usepackage{metalogo}
\usepackage{hyperref}
\hypersetup{pdftex, colorlinks=true, linkcolor=blue, citecolor=blue, filecolor=blue,%
  urlcolor=blue, pdftitle=, pdfauthor=, pdfsubject=, pdfkeywords=}
% Footnotes configuration
\makeatletter
\renewcommand\thefootnote{\arabic{footnote}}
\makeatother
% Text styles
\linespread{1.1}
\newopentypefeature{MyStyle}{mirrored}{+rtlm}
\newopentypefeature{MyStyle}{IPA}{+ss03}
\newopentypefeature{MyStyle}{thornswap}{+ss01}
\newopentypefeature{MyStyle}{noentities}{-ss10}
\newopentypefeature{Ligatures}{histoff}{-hlig}
\newcommand{\noent}[1]{{\addfontfeature{MyStyle=noentities}#1}}
\newcommand\textex[1]{\textrm{\textbf{\color{BrickRed}#1}}}
\newcommand\textUName[1]{\textsc{#1}}
\newcommand\textSourceText[1]{{\color{GGOrange}\texttt{#1}}}
\newcommand\cvc[1]{{\color{magenta}#1}}
\newcommand\textstyleEmphasis[1]{\textit{#1}}
\newcommand\textstyleEntityRef[1]{\textrm{#1}}
\newcommand{\cvd}[3][0]{{\addfontfeature{CharacterVariant=#2:#1}#3}}
\newcommand{\hlig}[1]{{\addfontfeature{Ligatures=Historic}#1}}
\newcommand{\sups}[1]{{\addfontfeature{VerticalPosition = Superior}#1}}
\newcommand{\subs}[1]{{\addfontfeature{VerticalPosition = Inferior}#1}}
\newcommand{\oprop}[1]{{\addfontfeature{Numbers={Lowercase,Proportional}}#1}}
\newcommand{\lprop}[1]{{\addfontfeature{Numbers={Uppercase,Proportional}}#1}}
\newcommand{\otab}[1]{{\addfontfeature{Numbers={Lowercase,Monospaced}}#1}}
\newcommand{\ltab}[1]{{\addfontfeature{Numbers={Uppercase,Monospaced}}#1}}
\newcommand{\ornm}[2][0]{{\addfontfeature{Ornament=#1}#2}}
\newcommand{\unic}[1]{{\jSmCond\addfontfeature{Numbers={Uppercase,Monospaced}}#1}}
\newcommand{\src}[1]{{\color{BrickRed}\texttt{#1}}}
\newcommand{\option}[1]{{\color{RViolet}\sffamily#1}}
\newcommand{\enla}[1]{{\EnlargedOne#1}}
\newcommand{\enlax}[1]{{\EnlargedTwo#1}}
\newcommand{\ltech}{Lua\kern-1.5pt\TeX}
\newcommand{\restag}[1]{{\addfontfeature{StylisticSet=10}#1}}
\newcommand{\mufi}{\rowcolor{myLightGreen}}
\newcommand{\prob}{\cellcolor{myLightPurple}}
\newcommand{\opua}{\rowcolor{myLightYellow}}
\newcommand{\stdu}{\rowcolor{myLightBlue}}
\newcommand{\bluerow}{\rowcolor{myLightBlue}}
\newcommand{\nuni}{\rowcolor{myLightRed}}
\newcommand{\ctosc}[1]{{\addfontfeature{Letters=UppercaseSmallCaps}#1}}
\newcommand{\secletter}[1]{\textbf{#1}}
\newcommand{\fspec}{{\sffamily fontspec}}
\makeatletter
\newcommand\arraybslash{\let\\\@arraycr}
\makeatother
\setlength\headheight{15pt}
\pagestyle{fancy}
\footskip = 30pt
\headsep = 30pt
\renewcommand{\headrule}{}
\fancyhead[L]{}
\fancyhead[C]{}
\fancyhead[R]{}
\fancyfoot[L]{}
\fancyfoot[C]{}
\fancyfoot[R]{}
\setlength\tabcolsep{1mm}
\renewcommand\arraystretch{1.3}
% Headers
\usepackage{titlesec}
\titleformat{\chapter}[hang]{\huge\jSmCondLight\color{RViolet}}{\thechapter.}{1em}{}
\titleformat{\section}[hang]{\Large\jSmCond\color{GunMetalGray}}{\thesection.}{1em}{}
\titleformat{\subsection}[hang]{\large\color{BrickRed}}{\thesubsection.}{1em}{}
% List styles
\newcommand\liststyleLi{%
\renewcommand\labelitemi{{\textbullet}}
\renewcommand\labelitemii{{\textbullet}}
\renewcommand\labelitemiii{{\textbullet}}
\renewcommand\labelitemiv{{\textbullet}}
}
\newcommand\liststyleLii{%
\renewcommand\labelitemi{{\textbullet}}
\renewcommand\labelitemii{{\textbullet}}
\renewcommand\labelitemiii{{\textbullet}}
\renewcommand\labelitemiv{{\textbullet}}
}
\newcounter{Feature}
\renewcommand\theFeature{\arabic{Feature}}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
\tolerance=1500
\widowpenalty=500
\clubpenalty=500
\frenchspacing
\raggedbottom
\usepackage{unicodefonttable}