summaryrefslogtreecommitdiff
path: root/fonts/noto/latex/noto.sty
blob: 3f0ce07913ff155ca21a7719ea83183cd3206906 (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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{noto}
    [2019/05/23 (Bob Tennent)  Supports Noto fonts for all LaTeX engines.]

\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}

\newif\ifnoto@otf 
\ifxetex
  \noto@otftrue
\else\ifluatex
  \noto@otftrue
\else  % [pdf]LaTeX
  \noto@otffalse
\fi\fi

\newif\ifnoto@sfdefault \noto@sfdefaultfalse
\newif\ifnoto@sf \noto@sftrue
\newif\ifnoto@rm \noto@rmtrue
\newif\ifnoto@tt \noto@tttrue


\newcommand*{\NotoSans@scale}{1}
\newcommand*{\NotoSansMono@scale}{1}
\DeclareOptionX{scaled}{\renewcommand*{\NotoSans@scale}{#1}\renewcommand*{\NotoSansMono@scale}{#1}}
\DeclareOptionX{scale}{\renewcommand*{\NotoSans@scale}{#1}\renewcommand*{\NotoSansMono@scale}{#1}}


\DeclareOptionX{sf}{\noto@sftrue\noto@rmfalse}
\DeclareOptionX{rm}{\noto@rmtrue\noto@sffalse}
\DeclareOptionX{nott}{\noto@ttfalse}

\DeclareOptionX{sfdefault}{\noto@sfdefaulttrue}
\DeclareOptionX{type1}{\noto@otffalse}


\newif\ifnoto@oldstyle \noto@oldstylefalse
\newif\ifnoto@proportional \noto@proportionalfalse

\DeclareOptionX{lining}{\noto@oldstylefalse}
\DeclareOptionX{lf}{\noto@oldstylefalse}
\DeclareOptionX{tabular}{\noto@proportionalfalse}
\DeclareOptionX{tf}{\noto@proportionalfalse}
\DeclareOptionX{proportional}{\noto@proportionaltrue}
\DeclareOptionX{pf}{\noto@proportionaltrue}
\DeclareOptionX{oldstyle}{\noto@oldstyletrue}
\DeclareOptionX{osf}{\noto@oldstyletrue}

\newif\ifnoto@thin \noto@thinfalse
\newif\ifnoto@extralight \noto@extralightfalse
\newif\ifnoto@light \noto@lightfalse
\newif\ifnoto@medium \noto@mediumfalse
\newif\ifnoto@semibold \noto@semiboldfalse
\newif\ifnoto@extrabold \noto@extraboldfalse
\newif\ifnoto@black \noto@blackfalse

\newif\ifnoto@condensed \noto@condensedfalse
\newif\ifnoto@semicondensed \noto@semicondensedfalse
\newif\ifnoto@extracondensed \noto@extracondensedfalse

\DeclareOptionX{thin}{\noto@thintrue}
\DeclareOptionX{extralight}{\noto@extralighttrue}
\DeclareOptionX{light}{\noto@lighttrue}
\DeclareOptionX{regular}{\noto@lightfalse\noto@thinfalse\noto@extralightfalse\noto@mediumfalse}
\DeclareOptionX{medium}{\noto@mediumtrue}
\DeclareOptionX{semibold}{\noto@semiboldtrue}
\DeclareOptionX{extrabold}{\noto@extraboldtrue}
\DeclareOptionX{black}{\noto@blacktrue}
\DeclareOptionX{bold}{\noto@blackfalse\noto@semiboldfalse\noto@extraboldfalse}
\DeclareOptionX{condensed}{\noto@condensedtrue}
\DeclareOptionX{semicondensed}{\noto@semicondensedtrue}
\DeclareOptionX{extracondensed}{\noto@extracondensedtrue}


\ProcessOptionsX\relax

\ifnoto@otf
  \def\noto@boldstyle{Bold}
  \ifnoto@semibold\def\noto@boldstyle{SemiBold}\fi
  \ifnoto@extrabold\def\noto@boldstyle{ExtraBold}\fi
  \ifnoto@black\def\noto@boldstyle{Black}\fi
  \def\noto@regstyle{Regular}
  \ifnoto@thin\def\noto@regstyle{Thin}\fi
  \ifnoto@extralight\def\noto@regstyle{ExtraLight}\fi
  \ifnoto@light\def\noto@regstyle{Light}\fi
  \ifnoto@medium\def\noto@regstyle{Medium}\fi

\else % type1
  \def\seriesdefault{\mdseries@rm}

  \ifnoto@rm\def\bfseries@rm{bold}\def\mdseries@rm{regular}\fi
  \ifnoto@sf\def\bfseries@sf{bold}\def\mdseries@sf{regular}\fi
  \ifnoto@tt\def\bfseries@tt{bold}\def\mdseries@tt{regular}\fi
  \ifnoto@semibold
    \ifnoto@rm\def\bfseries@sf{semibold}\fi
    \ifnoto@sf\def\bfseries@sf{semibold}\fi
    \ifnoto@tt\def\bfseries@tt{semibold}\fi
  \fi
  \ifnoto@extrabold
    \ifnoto@sf\def\bfseries@sf{extrabold}\fi
    \ifnoto@rm\def\bfseries@rm{extrabold}\fi
    \ifnoto@tt\def\bfseries@tt{extrabold}\fi
  \fi
  \ifnoto@black
    \ifnoto@sf\def\bfseries@sf{black}\fi
    \ifnoto@rm\def\bfseries@rm{black}\fi
    \ifnoto@tt\def\bfseries@tt{black}\fi
  \fi
  \ifnoto@tt\def\mdseries@tt{regular}\fi
  \ifnoto@sf\def\mdseries@sf{regular}\fi
  \ifnoto@rm\def\mdseries@rm{regular}\fi
  \ifnoto@thin
    \ifnoto@sf\def\mdseries@sf{thin}\fi
    \ifnoto@rm\def\mdseries@rm{thin}\fi
    \ifnoto@tt\def\mdseries@tt{thin}\fi
  \fi
  \ifnoto@extralight
    \ifnoto@sf\def\mdseries@sf{extralight}\fi
    \ifnoto@rm\def\mdseries@rm{extralight}\fi
    \ifnoto@tt\def\mdseries@tt{extralight}\fi
  \fi
  \ifnoto@light
    \ifnoto@sf\def\mdseries@sf{light}\fi
    \ifnoto@rm\def\mdseries@rm{light}\fi
    \ifnoto@tt\def\mdseries@tt{light}\fi
  \fi
  \ifnoto@medium
    \ifnoto@sf\def\mdseries@sf{medium}\fi
    \ifnoto@rm\def\mdseries@rm{medium}\fi
    \ifnoto@tt\def\mdseries@tt{medium}\fi
  \fi

  \ifnoto@condensed
    \ifnoto@sf\def\bfseries@sf{boldcondensed}\def\mdseries@sf{condensed}\fi
    \ifnoto@tt\def\bfseries@tt{boldcondensed}\def\mdseries@tt{condensed}\fi
    \ifnoto@semibold
      \ifnoto@sf\def\bfseries@sf{semiboldcondensed}\fi
      \ifnoto@tt\def\bfseries@tt{semiboldcondensed}\fi
    \fi
    \ifnoto@extrabold
      \ifnoto@sf\def\bfseries@sf{extraboldcondensed}\fi
      \ifnoto@tt\def\bfseries@tt{extraboldcondensed}\fi
    \fi
    \ifnoto@black
      \ifnoto@sf\def\bfseries@sf{blackcondensed}\fi
      \ifnoto@tt\def\bfseries@tt{blackcondensed}\fi
    \fi
    \ifnoto@thin
      \ifnoto@sf\def\mdseries@sf{thincondensed}\fi
      \ifnoto@tt\def\mdseries@tt{thincondensed}\fi
    \fi
    \ifnoto@extralight
      \ifnoto@sf\def\mdseries@sf{extralightcondensed}\fi
      \ifnoto@tt\def\mdseries@tt{extralightcondensed}\fi
    \fi
    \ifnoto@light
      \ifnoto@sf\def\mdseries@sf{lightcondensed}\fi
      \ifnoto@tt\def\mdseries@tt{lightcondensed}\fi
    \fi
    \ifnoto@medium
      \ifnoto@sf\def\mdseries@sf{mediumcondensed}\fi
      \ifnoto@tt\def\mdseries@tt{mediumcondensed}\fi
    \fi
  \else\ifnoto@semicondensed
    \ifnoto@sf\def\bfseries@sf{boldsemicondensed}\def\mdseries@sf{semicondensed}\fi
    \ifnoto@tt\def\bfseries@tt{boldsemicondensed}\def\mdseries@tt{semicondensed}\fi
    \ifnoto@semibold
      \ifnoto@sf\def\bfseries@sf{semiboldsemicondensed}\fi
      \ifnoto@tt\def\bfseries@tt{semiboldsemicondensed}\fi
    \fi
    \ifnoto@extrabold
      \ifnoto@sf\def\bfseries@sf{extraboldsemicondensed}\fi
      \ifnoto@tt\def\bfseries@tt{extraboldsemicondensed}\fi
    \fi
    \ifnoto@black
      \ifnoto@sf\def\bfseries@sf{blacksemicondensed}\fi
      \ifnoto@tt\def\bfseries@tt{blacksemicondensed}\fi
    \fi
    \ifnoto@thin
      \ifnoto@sf\def\mdseries@sf{thinsemicondensed}\fi
      \ifnoto@tt\def\mdseries@tt{thinsemicondensed}\fi
    \fi
    \ifnoto@extralight
      \ifnoto@sf\def\mdseries@sf{extralightsemicondensed}\fi
      \ifnoto@tt\def\mdseries@tt{extralightsemicondensed}\fi
    \fi
    \ifnoto@light
      \ifnoto@sf\def\mdseries@sf{lightsemicondensed}\fi
      \ifnoto@tt\def\mdseries@tt{lightsemicondensed}\fi
    \fi
    \ifnoto@medium
      \ifnoto@sf\def\mdseries@sf{mediumsemicondensed}\fi
      \ifnoto@tt\def\mdseries@rm{mediumsemicondensed}\fi
    \fi
  \else\ifnoto@extracondensed
    \ifnoto@sf\def\bfseries@sf{boldextracondensed}\def\mdseries@sf{extracondensed}\fi
    \ifnoto@tt\def\bfseries@tt{boldextracondensed}\def\mdseries@tt{extracondensed}\fi
    \ifnoto@semibold
      \ifnoto@sf\def\bfseries@sf{semiboldextracondensed}\fi
      \ifnoto@tt\def\bfseries@tt{semiboldextracondensed}\fi
    \fi
    \ifnoto@extrabold
      \ifnoto@sf\def\bfseries@sf{extraboldextracondensed}\fi
      \ifnoto@tt\def\bfseries@tt{extraboldextracondensed}\fi
    \fi
    \ifnoto@black
      \ifnoto@sf\def\bfseries@sf{blackextracondensed}\fi
      \ifnoto@tt\def\bfseries@tt{blackextracondensed}\fi
    \fi
    \ifnoto@thin
      \ifnoto@sf\def\mdseries@sf{thinextracondensed}\fi
      \ifnoto@tt\def\mdseries@tt{thinextracondensed}\fi
    \fi
    \ifnoto@extralight
      \ifnoto@sf\def\mdseries@sf{extralightextracondensed}\fi
      \ifnoto@tt\def\mdseries@tt{extralightextracondensed}\fi
    \fi
    \ifnoto@light
      \ifnoto@sf\def\mdseries@sf{lightextracondensed}\fi
      \ifnoto@tt\def\mdseries@tt{lightextracondensed}\fi
    \fi
    \ifnoto@medium
      \ifnoto@sf\def\mdseries@sf{mediumextracondensed}\fi
      \ifnoto@tt\def\mdseries@rm{mediumextracondensed}\fi
    \fi
  \fi\fi\fi
  
\fi

\ifnoto@otf
  
  \def\noto@figurestyle{Lining}
  \ifnoto@oldstyle\def\noto@figurestyle{OldStyle}\fi
  \def\noto@figurealign{Monospaced}
  \ifnoto@proportional\def\noto@figurealign{Proportional}\fi

\fi
% type1

  \def\noto@tonefigurestyle{LF}
  \ifnoto@oldstyle\def\noto@tonefigurestyle{OsF}\fi
  \def\noto@tonefigurealign{T}
  \ifnoto@proportional\def\noto@tonefigurealign{}\fi

\ifnoto@otf
  \RequirePackage{fontspec}
\else
  \RequirePackage{fontenc,fontaxes,mweights}
  \fa@naming@exception{figures}{{superior}{proportional}}{Sup}
  \fa@naming@exception{figures}{{superior}{tabular}}{Sup}
  \def\sufigures{\@nomath\sufigures
      \fontfigurestyle{superior}\selectfont}
\fi

\ifnoto@otf
  \def\noto@regular{Regular}
  \ifxetex\XeTeXtracingfonts=1\fi
  \defaultfontfeatures{
        Ligatures = TeX ,
        Extension = .ttf }
  \ifnoto@sf
    \ifnoto@condensed
      \setsansfont
        [ Scale     = \NotoSans@scale ,
          Numbers   = {\noto@figurealign, \noto@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\noto@regstyle\noto@regular\else\noto@regstyle\fi ,
          BoldFont       = *\noto@boldstyle , 
        ]
        {NotoSans-Condensed}
    \else\ifnoto@semicondensed
      \setsansfont
        [ Scale     = \NotoSans@scale ,
          Numbers   = {\noto@figurealign, \noto@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\noto@regstyle\noto@regular\else\noto@regstyle\fi ,
          BoldFont       = *\noto@boldstyle , 
        ]
        {NotoSans-SemiCondensed}
    \else\ifnoto@extracondensed
      \setsansfont
        [ Scale     = \NotoSans@scale ,
          Numbers   = {\noto@figurealign, \noto@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\noto@regstyle\noto@regular\else\noto@regstyle\fi ,
          BoldFont       = *\noto@boldstyle , 
        ]
        {NotoSans-ExtraCondensed}
    \else
      \setsansfont
          [ Scale     = \NotoSans@scale ,
            Numbers   = {\noto@figurealign, \noto@figurestyle} ,
            SmallCapsFeatures={Letters=SmallCaps} ,
            UprightFont    = *-\noto@regstyle ,
            BoldFont       = *-\noto@boldstyle , 
          ]
          {NotoSans}
    \fi\fi\fi
    \let\notosansfamily\sfdefault  
  \fi
  \ifnoto@rm
     \setmainfont 
        [ Numbers   = {\noto@figurealign, \noto@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *-\noto@regstyle ,
          ItalicFont     = *-\ifx\noto@regstyle\noto@regular Italic\else\noto@regstyle Italic\fi ,
          BoldFont       = *-\noto@boldstyle , 
          BoldItalicFont = *-\noto@boldstyle Italic ,
        ]
        {NotoSerif}
  \fi
  \def\noto@Lining{Lining}
  \ifnoto@tt
    \ifnoto@condensed
        \setmonofont 
          [ Numbers   = {\ifx\noto@figurestyle\noto@Lining\else\noto@figurestyle\fi} ,
            Scale     = \NotoSansMono@scale ,
            Ligatures = CommonOff,
            HyphenChar=None,
            UprightFont    = *\ifx\noto@regstyle\noto@regular\else\noto@regstyle\fi,
            BoldFont       = *\noto@boldstyle ,
          ]
          {NotoSansMono-Condensed}
    \else\ifnoto@semicondensed
        \setmonofont 
          [ Numbers   = {\ifx\noto@figurestyle\noto@Lining\else\noto@figurestyle\fi} ,
            Scale     = \NotoSansMono@scale ,
            Ligatures = CommonOff,
            HyphenChar=None,
            UprightFont    = *\ifx\noto@regstyle\noto@regular\else\noto@regstyle\fi,
            BoldFont       = *\noto@boldstyle ,
          ]
          {NotoSansMono-SemiCondensed}
    \else\ifnoto@extracondensed
        \setmonofont 
          [ Numbers   = {\ifx\noto@figurestyle\noto@Lining\else\noto@figurestyle\fi} ,
            Scale     = \NotoSansMono@scale ,
            Ligatures = CommonOff,
            HyphenChar=None,
            UprightFont    = *\ifx\noto@regstyle\noto@regular\else\noto@regstyle\fi,
            BoldFont       = *\noto@boldstyle ,
          ]
          {NotoSansMono-ExtraCondensed}
     \else
        \setmonofont 
          [ Numbers   = {\ifx\noto@figurestyle\noto@Lining\else\noto@figurestyle\fi} ,
            Scale     = \NotoSansMono@scale ,
            Ligatures = CommonOff,
            HyphenChar=None,
            UprightFont    = *-\noto@regstyle ,
            BoldFont       = *-\noto@boldstyle , 
          ]
          {NotoSansMono}
      \fi\fi\fi
    \let\notomonofamily\ttdefault  
  \fi
  \ifnoto@sfdefault\renewcommand*\familydefault{\notosansfamily}\fi
  \newfontfamily\notosans
          [ Scale     = \NotoSans@scale ,
            Numbers   = {\noto@figurealign, \noto@figurestyle} ,
            SmallCapsFeatures={Letters=SmallCaps} ,
            UprightFont    = *-\noto@regstyle ,
            ItalicFont     = *-\ifx\noto@regstyle\noto@regular Italic\else\noto@regstyle Italic\fi ,
            BoldFont       = *-\noto@boldstyle , 
            BoldItalicFont = *-\noto@boldstyle Italic ,
          ]
          {NotoSans}
  \newfontfamily\notosanscondensed
        [ Scale     = \NotoSans@scale ,
          Numbers   = {\noto@figurealign, \noto@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\noto@regstyle\noto@regular\else\noto@regstyle\fi ,
          ItalicFont     = *\ifx\noto@regstyle\noto@regular Italic\else\noto@regstyle Italic\fi ,
          BoldFont       = *\noto@boldstyle , 
          BoldItalicFont = *\noto@boldstyle Italic ,
        ]
        {NotoSans-Condensed}
  \newfontfamily\notosanssemicondensed
        [ Scale     = \NotoSans@scale ,
          Numbers   = {\noto@figurealign, \noto@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\noto@regstyle\noto@regular\else\noto@regstyle\fi ,
          ItalicFont     = *\ifx\noto@regstyle\noto@regular Italic\else\noto@regstyle Italic\fi ,
          BoldFont       = *\noto@boldstyle , 
          BoldItalicFont = *\noto@boldstyle Italic ,
        ]
        {NotoSans-SemiCondensed}
  \newfontfamily\notosansextracondensed
        [ Scale     = \NotoSans@scale ,
          Numbers   = {\noto@figurealign, \noto@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\noto@regstyle\noto@regular\else\noto@regstyle\fi ,
          ItalicFont     = *\ifx\noto@regstyle\noto@regular Italic\else\noto@regstyle Italic\fi ,
          BoldFont       = *\noto@boldstyle , 
          BoldItalicFont = *\noto@boldstyle Italic  ,
        ]
        {NotoSans-ExtraCondensed}
  \newfontfamily\notoserif
        [ Numbers   = {\noto@figurealign, \noto@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *-\noto@regstyle ,
          ItalicFont     = *-\ifx\noto@regstyle\noto@regular Italic\else\noto@regstyle Italic\fi ,
          BoldFont       = *-\noto@boldstyle , 
          BoldItalicFont = *-\noto@boldstyle Italic 
        ]
        {NotoSerif}
  \defaultfontfeatures{Extension=.ttf, Ligatures = CommonOff, HyphenChar=None}
  \newfontfamily\notomono 
          [ Numbers   = {\ifx\noto@figurestyle\noto@Lining\else\noto@figurestyle\fi} ,
            Scale     = \NotoSansMono@scale ,
            UprightFont    = *-\noto@regstyle ,
            BoldFont       = *-\noto@boldstyle , 
          ]
          {NotoSansMono}
  \newfontfamily\notomonocondensed
        [ Numbers   = {\ifx\noto@figurestyle\noto@Lining\else\noto@figurestyle\fi} ,
          Scale     = \NotoSansMono@scale ,
          UprightFont    = *\ifx\noto@regstyle\noto@regular\else\noto@regstyle\fi,
          BoldFont       = *\noto@boldstyle ,
        ]
        {NotoSansMono-Condensed}
  \newfontfamily\notomonosemicondensed
        [ Numbers   = {\ifx\noto@figurestyle\noto@Lining\else\noto@figurestyle\fi} ,
          Scale     = \NotoSansMono@scale ,
          UprightFont    = *\ifx\noto@regstyle\noto@regular\else\noto@regstyle\fi,
          BoldFont       = *\noto@boldstyle ,
        ]
        {NotoSansMono-SemiCondensed}
  \newfontfamily\notomonoextracondensed
        [ Numbers   = {\ifx\noto@figurestyle\noto@Lining\else\noto@figurestyle\fi} ,
          Scale     = \NotoSansMono@scale ,
          UprightFont    = *\ifx\noto@regstyle\noto@regular\else\noto@regstyle\fi,
          BoldFont       = *\noto@boldstyle ,
        ]
        {NotoSansMono-ExtraCondensed}
  \providecommand\sufigures{\addfontfeatures{VerticalPosition=Superior}}
\else % type1
  \def\notosansfamily{NotoSans-\noto@tonefigurealign\noto@tonefigurestyle}
  \def\notoseriffamily{NotoSerif-\noto@tonefigurealign\noto@tonefigurestyle}
  \def\notomonofamily{NotoSansMono-T\noto@tonefigurestyle}
  \newcommand*\notoserif{\fontfamily{\notoseriffamily}\selectfont}
  \newcommand*\notosans{\fontfamily{\notosansfamily}\selectfont}
  \newcommand*\notosanscondensed{\fontfamily{\notosansfamily}\fontseries{condensed}\selectfont}
  \newcommand*\notosanssemicondensed{\fontfamily{\notosansfamily}\fontseries{semicondensed}\selectfont}
  \newcommand*\notosansextracondensed{\fontfamily{\notosansfamily}\fontseries{extracondensed}\selectfont}
  \newcommand*\notomono{\fontfamily{\notomonofamily}\selectfont}
  \newcommand*\notomonocondensed{\fontfamily{\notomonofamily}\fontseries{condensed}\selectfont}
  \newcommand*\notomonosemicondensed{\fontfamily{\notomonofamily}\fontseries{semicondensed}\selectfont}
  \newcommand*\notomonoextracondensed{\fontfamily{\notomonofamily}\fontseries{extracondensed}\selectfont}
  \ifnoto@rm \def\rmdefault{\notoseriffamily} \fi
  \ifnoto@sf \def\sfdefault{\notosansfamily} \fi 
  \ifnoto@tt \def\ttdefault{\notomonofamily} \fi 
  \ifnoto@sfdefault\edef\familydefault{\sfdefault}\fi
\fi

\DeclareTextFontCommand{\textsu}{\sufigures}

\newcommand*\notoseriflgr{\fontencoding{LGR}\fontfamily{NotoSerif-\noto@tonefigurealign\noto@tonefigurestyle}\selectfont}
\newcommand*\notosanslgr{\fontencoding{LGR}\fontfamily{NotoSans-\noto@tonefigurealign\noto@tonefigurestyle}\selectfont}
\newcommand*\notomonolgr{\fontencoding{LGR}\fontfamily{NotoSansMono-T\noto@tonefigurestyle}\selectfont}


\ifnoto@otf
  % turn off defaults in case other fonts are selected:
  \defaultfontfeatures{}
\fi

\endinput