summaryrefslogtreecommitdiff
path: root/fonts/notocondensed/latex/notocondensed.sty
blob: 394b90d864a8bcdb7c202c43276776f9272964d6 (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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{notocondensed}
    [2021/09/06 (Bob Tennent)  Supports condensed Noto fonts for all LaTeX engines.]

\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}

\newif\ifnotocondensed@ttf 
\ifxetex
  \notocondensed@ttftrue
\else\ifluatex
  \notocondensed@ttftrue
\else  % [pdf]LaTeX
  \notocondensed@ttffalse
\fi\fi

\newif\ifnotocondensed@sfdefault \notocondensed@sfdefaultfalse
\newif\ifnotocondensed@sf \notocondensed@sftrue
\newif\ifnotocondensed@rm \notocondensed@rmtrue
\newif\ifnotocondensed@tt \notocondensed@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}{\notocondensed@sftrue\notocondensed@rmfalse}
\DeclareOptionX{rm}{\notocondensed@rmtrue\notocondensed@sffalse}
\DeclareOptionX{nott}{\notocondensed@ttfalse}

\DeclareOptionX{sfdefault}{\notocondensed@sfdefaulttrue}
\DeclareOptionX{type1}{\notocondensed@ttffalse}


\newif\ifnotocondensed@oldstyle \notocondensed@oldstylefalse
\newif\ifnotocondensed@proportional \notocondensed@proportionalfalse

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

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

\newif\ifnotocondensed@semicondensed \notocondensed@semicondensedfalse
\newif\ifnotocondensed@extracondensed \notocondensed@extracondensedfalse

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


\ProcessOptionsX\relax

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

\else % type1

  \ifnotocondensed@sf\def\bfseries@sf{bc}\def\mdseries@sf{c}\fi
  \ifnotocondensed@rm\def\bfseries@rm{bc}\def\mdseries@rm{c}\fi
  \ifnotocondensed@tt\def\bfseries@tt{bc}\def\mdseries@tt{c}\fi
  \ifnotocondensed@semibold
    \ifnotocondensed@sf\def\bfseries@sf{sbc}\fi
    \ifnotocondensed@rm\def\bfseries@rm{sbc}\fi
    \ifnotocondensed@tt\def\bfseries@tt{sbc}\fi
  \fi
  \ifnotocondensed@extrabold
    \ifnotocondensed@sf\def\bfseries@sf{ebc}\fi
    \ifnotocondensed@rm\def\bfseries@rm{ebc}\fi
    \ifnotocondensed@tt\def\bfseries@tt{ebc}\fi
  \fi
  \ifnotocondensed@black
    \ifnotocondensed@sf\def\bfseries@sf{ubc}\fi
    \ifnotocondensed@rm\def\bfseries@rm{ubc}\fi
    \ifnotocondensed@tt\def\bfseries@tt{ubc}\fi
  \fi
  \ifnotocondensed@thin
    \ifnotocondensed@sf\def\mdseries@sf{ulc}\fi
    \ifnotocondensed@rm\def\mdseries@rm{ulc}\fi
    \ifnotocondensed@tt\def\mdseries@tt{ulc}\fi
  \fi
  \ifnotocondensed@extralight
    \ifnotocondensed@sf\def\mdseries@sf{elc}\fi
    \ifnotocondensed@rm\def\mdseries@rm{elc}\fi
    \ifnotocondensed@tt\def\mdseries@tt{elc}\fi
  \fi
  \ifnotocondensed@light
    \ifnotocondensed@sf\def\mdseries@sf{lc}\fi
    \ifnotocondensed@rm\def\mdseries@rm{lc}\fi
    \ifnotocondensed@tt\def\mdseries@tt{lc}\fi
  \fi
  \ifnotocondensed@medium
    \ifnotocondensed@sf\def\mdseries@sf{mediumcondensed}\fi
    \ifnotocondensed@rm\def\mdseries@rm{mediumcondensed}\fi
    \ifnotocondensed@tt\def\mdseries@tt{mediumcondensed}\fi
  \fi

  \ifnotocondensed@semicondensed
    \ifnotocondensed@rm\def\bfseries@rm{bsc}\def\mdseries@rm{sc}\fi
    \ifnotocondensed@sf\def\bfseries@sf{bsc}\def\mdseries@sf{sc}\fi
    \ifnotocondensed@tt\def\bfseries@tt{bsc}\def\mdseries@tt{sc}\fi
    \ifnotocondensed@semibold
      \ifnotocondensed@rm\def\bfseries@rm{sbsc}\fi
      \ifnotocondensed@sf\def\bfseries@sf{sbsc}\fi
      \ifnotocondensed@tt\def\bfseries@tt{sbsc}\fi
    \fi
    \ifnotocondensed@extrabold
      \ifnotocondensed@rm\def\bfseries@rm{ebsc}\fi
      \ifnotocondensed@sf\def\bfseries@sf{ebsc}\fi
      \ifnotocondensed@tt\def\bfseries@tt{ebsc}\fi
    \fi
    \ifnotocondensed@black
      \ifnotocondensed@rm\def\bfseries@rm{ubsc}\fi
      \ifnotocondensed@sf\def\bfseries@sf{ubsc}\fi
      \ifnotocondensed@tt\def\bfseries@tt{ubsc}\fi
    \fi
    \ifnotocondensed@thin
      \ifnotocondensed@rm\def\mdseries@rm{ulsc}\fi
      \ifnotocondensed@sf\def\mdseries@sf{ulsc}\fi
      \ifnotocondensed@tt\def\mdseries@tt{ulsc}\fi
    \fi
    \ifnotocondensed@extralight
      \ifnotocondensed@rm\def\mdseries@rm{elsc}\fi
      \ifnotocondensed@sf\def\mdseries@sf{elsc}\fi
      \ifnotocondensed@tt\def\mdseries@tt{elsc}\fi
    \fi
    \ifnotocondensed@light
      \ifnotocondensed@rm\def\mdseries@rm{lsc}\fi
      \ifnotocondensed@sf\def\mdseries@sf{lsc}\fi
      \ifnotocondensed@tt\def\mdseries@tt{lsc}\fi
    \fi
    \ifnotocondensed@medium
      \ifnotocondensed@rm\def\mdseries@rm{mediumsemicondensed}\fi
      \ifnotocondensed@sf\def\mdseries@sf{mediumsemicondensed}\fi
      \ifnotocondensed@tt\def\mdseries@tt{mediumsemicondensed}\fi
    \fi
  \else\ifnotocondensed@extracondensed
    \ifnotocondensed@rm\def\bfseries@rm{bec}\def\mdseries@rm{ec}\fi
    \ifnotocondensed@sf\def\bfseries@sf{bec}\def\mdseries@sf{ec}\fi
    \ifnotocondensed@tt\def\bfseries@tt{bec}\def\mdseries@tt{ec}\fi
    \ifnotocondensed@semibold
      \ifnotocondensed@rm\def\bfseries@rm{sbec}\fi
      \ifnotocondensed@sf\def\bfseries@sf{sbec}\fi
      \ifnotocondensed@tt\def\bfseries@tt{sbsc}\fi
    \fi
    \ifnotocondensed@extrabold
      \ifnotocondensed@rm\def\bfseries@rm{ebec}\fi
      \ifnotocondensed@sf\def\bfseries@sf{ebec}\fi
      \ifnotocondensed@tt\def\bfseries@tt{ebec}\fi
    \fi
    \ifnotocondensed@black
      \ifnotocondensed@rm\def\bfseries@rm{ubec}\fi
      \ifnotocondensed@sf\def\bfseries@sf{ubec}\fi
      \ifnotocondensed@tt\def\bfseries@tt{ubsc}\fi
    \fi
    \ifnotocondensed@thin
      \ifnotocondensed@rm\def\mdseries@rm{ulec}\fi
      \ifnotocondensed@sf\def\mdseries@sf{ulec}\fi
      \ifnotocondensed@tt\def\mdseries@tt{ulec}\fi
    \fi
    \ifnotocondensed@extralight
      \ifnotocondensed@rm\def\mdseries@rm{elec}\fi
      \ifnotocondensed@sf\def\mdseries@sf{elec}\fi
      \ifnotocondensed@tt\def\mdseries@tt{elec}\fi
    \fi
    \ifnotocondensed@light
      \ifnotocondensed@rm\def\mdseries@rm{lec}\fi
      \ifnotocondensed@sf\def\mdseries@sf{lec}\fi
      \ifnotocondensed@tt\def\mdseries@tt{lec}\fi
    \fi
    \ifnotocondensed@medium
      \ifnotocondensed@rm\def\mdseries@rm{mediumsemicondensed}\fi
      \ifnotocondensed@sf\def\mdseries@sf{mediumsemicondensed}\fi
      \ifnotocondensed@tt\def\mdseries@tt{mediumsemicondensed}\fi
    \fi
  \fi\fi

  \def\seriesdefault{\mdseries@rm}

\fi
  
\ifnotocondensed@ttf
  
  \def\notocondensed@figurestyle{Lining}
  \ifnotocondensed@oldstyle\def\notocondensed@figurestyle{OldStyle}\fi
  \def\notocondensed@figurealign{Monospaced}
  \ifnotocondensed@proportional\def\notocondensed@figurealign{Proportional}\fi

\else % type1

  \def\notocondensed@figurestyle{LF}
  \ifnotocondensed@oldstyle\def\notocondensed@figurestyle{OsF}\fi
  \def\notocondensed@figurealign{T}
  \ifnotocondensed@proportional\def\notocondensed@figurealign{}\fi

\fi

\ifnotocondensed@ttf
  \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

\ifnotocondensed@ttf
  \def\notocondensed@regular{Regular}
  \ifxetex\XeTeXtracingfonts=1\fi
  \defaultfontfeatures{
        Ligatures = TeX ,
        Extension = .ttf }
  \ifnotocondensed@sf
    \ifnotocondensed@semicondensed
      \setsansfont
        [ Scale     = \NotoSans@scale ,
          Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi ,
          ItalicFont     = *\ifx\notocondensed@regstyle\notocondensed@regular Italic\else\notocondensed@regstyle Italic\fi ,
          BoldFont       = *\notocondensed@boldstyle , 
          BoldItalicFont = *\notocondensed@boldstyle Italic ,
        ]
        {NotoSans-SemiCondensed}
    \else\ifnotocondensed@extracondensed
      \setsansfont
        [ Scale     = \NotoSans@scale ,
          Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi ,
          ItalicFont     = *\ifx\notocondensed@regstyle\notocondensed@regular Italic\else\notocondensed@regstyle Italic\fi ,
          BoldFont       = *\notocondensed@boldstyle , 
          BoldItalicFont = *\notocondensed@boldstyle Italic ,
        ]
        {NotoSans-ExtraCondensed}
    \else
      \setsansfont
          [ Scale     = \NotoSans@scale ,
            Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
            SmallCapsFeatures={Letters=SmallCaps} ,
            UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi ,
            ItalicFont     = *\ifx\notocondensed@regstyle\notocondensed@regular Italic\else\notocondensed@regstyle Italic\fi ,
            BoldFont       = *\notocondensed@boldstyle , 
            BoldItalicFont = *\notocondensed@boldstyle Italic ,
          ]
          {NotoSans-Condensed}
    \fi\fi
    \let\notocondensedsansfamily\sfdefault  
  \fi

  \ifnotocondensed@rm
    \ifnotocondensed@semicondensed
      \setmainfont
        [ Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi ,
          ItalicFont     = *\ifx\notocondensed@regstyle\notocondensed@regular Italic\else\notocondensed@regstyle Italic\fi ,
          BoldFont       = *\notocondensed@boldstyle , 
          BoldItalicFont = *\notocondensed@boldstyle Italic ,
        ]
        {NotoSerif-SemiCondensed}
    \else\ifnotocondensed@extracondensed
      \setmainfont
        [ Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi ,
          ItalicFont     = *\ifx\notocondensed@regstyle\notocondensed@regular Italic\else\notocondensed@regstyle Italic\fi ,
          BoldFont       = *\notocondensed@boldstyle , 
          BoldItalicFont = *\notocondensed@boldstyle Italic ,
        ]
        {NotoSerif-ExtraCondensed}
    \else
      \setmainfont
          [ Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
            SmallCapsFeatures={Letters=SmallCaps} ,
            UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi ,
            ItalicFont     = *\ifx\notocondensed@regstyle\notocondensed@regular Italic\else\notocondensed@regstyle Italic\fi ,
            BoldFont       = *\notocondensed@boldstyle , 
            BoldItalicFont = *\notocondensed@boldstyle Italic ,
          ]
          {NotoSerif-Condensed}
    \fi\fi
  \fi

  \ifnotocondensed@tt
     \ifnotocondensed@semicondensed
        \setmonofont 
          [ Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
            Scale     = \NotoSansMono@scale ,
            HyphenChar=None,
            UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi,
            BoldFont       = *\notocondensed@boldstyle ,
          ]
          {NotoSansMono-SemiCondensed}
    \else\ifnotocondensed@extracondensed
        \setmonofont 
          [ Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
            Scale     = \NotoSansMono@scale ,
            HyphenChar=None,
            UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi,
            BoldFont       = *\notocondensed@boldstyle ,
          ]
          {NotoSansMono-ExtraCondensed}
     \else
        \setmonofont 
          [ Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
            Scale     = \NotoSansMono@scale ,
            HyphenChar=None,
            UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi,
            BoldFont       = *\notocondensed@boldstyle , 
          ]
          {NotoSansMono-Condensed}
      \fi\fi
    \let\notocondensedmonofamily\ttdefault  
  \fi
  \ifnotocondensed@sfdefault\renewcommand*\familydefault{\notocondensedsansfamily}\fi
  \newfontfamily\notosanscondensed
        [ Scale     = \NotoSans@scale ,
          Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi ,
          ItalicFont     = *\ifx\notocondensed@regstyle\notocondensed@regular Italic\else\notocondensed@regstyle Italic\fi ,
          BoldFont       = *\notocondensed@boldstyle , 
          BoldItalicFont = *\notocondensed@boldstyle Italic ,
        ]
        {NotoSans-Condensed}
  \newfontfamily\notosanssemicondensed
        [ Scale     = \NotoSans@scale ,
          Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi ,
          ItalicFont     = *\ifx\notocondensed@regstyle\notocondensed@regular Italic\else\notocondensed@regstyle Italic\fi ,
          BoldFont       = *\notocondensed@boldstyle , 
          BoldItalicFont = *\notocondensed@boldstyle Italic ,
        ]
        {NotoSans-SemiCondensed}
  \newfontfamily\notosansextracondensed
        [ Scale     = \NotoSans@scale ,
          Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi ,
          ItalicFont     = *\ifx\notocondensed@regstyle\notocondensed@regular Italic\else\notocondensed@regstyle Italic\fi ,
          BoldFont       = *\notocondensed@boldstyle , 
          BoldItalicFont = *\notocondensed@boldstyle Italic  ,
        ]
        {NotoSans-ExtraCondensed}
  \newfontfamily\notoserifcondensed
        [ Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi ,
          ItalicFont     = *\ifx\notocondensed@regstyle\notocondensed@regular Italic\else\notocondensed@regstyle Italic\fi ,
          BoldFont       = *\notocondensed@boldstyle , 
          BoldItalicFont = *\notocondensed@boldstyle Italic ,
        ]
        {NotoSerif-Condensed}
  \newfontfamily\notoserifsemicondensed
        [ Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi ,
          ItalicFont     = *\ifx\notocondensed@regstyle\notocondensed@regular Italic\else\notocondensed@regstyle Italic\fi ,
          BoldFont       = *\notocondensed@boldstyle , 
          BoldItalicFont = *\notocondensed@boldstyle Italic ,
        ]
        {NotoSerif-SemiCondensed}
  \newfontfamily\notoserifextracondensed
        [ Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
          SmallCapsFeatures={Letters=SmallCaps} ,
          UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi ,
          ItalicFont     = *\ifx\notocondensed@regstyle\notocondensed@regular Italic\else\notocondensed@regstyle Italic\fi ,
          BoldFont       = *\notocondensed@boldstyle , 
          BoldItalicFont = *\notocondensed@boldstyle Italic  ,
        ]
        {NotoSerif-ExtraCondensed}
  \defaultfontfeatures{Extension=.ttf,HyphenChar=None}
  \newfontfamily\notomonocondensed
        [ Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
          Scale     = \NotoSansMono@scale ,
          UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi,
          BoldFont       = *\notocondensed@boldstyle ,
        ]
        {NotoSansMono-Condensed}
  \newfontfamily\notomonosemicondensed
        [ Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
          Scale     = \NotoSansMono@scale ,
          UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi,
          BoldFont       = *\notocondensed@boldstyle ,
        ]
        {NotoSansMono-SemiCondensed}
  \newfontfamily\notomonoextracondensed
        [ Numbers   = {\notocondensed@figurealign, \notocondensed@figurestyle} ,
          Scale     = \NotoSansMono@scale ,
          UprightFont    = *\ifx\notocondensed@regstyle\notocondensed@regular\else\notocondensed@regstyle\fi,
          BoldFont       = *\notocondensed@boldstyle ,
        ]
        {NotoSansMono-ExtraCondensed}

  \providecommand\sufigures{\addfontfeatures{VerticalPosition=Superior}}

\else % type1

  \def\notosanscondensedfamily{NotoSans-\notocondensed@figurealign\notocondensed@figurestyle}
  \def\notoserifcondensedfamily{NotoSerif-\notocondensed@figurealign\notocondensed@figurestyle}
  \def\notomonocondensedfamily{NotoSansMono-\notocondensed@figurealign\notocondensed@figurestyle}
  \newcommand*\notoserifcondensed{\fontfamily{\notoserifcondensedfamily}\selectfont}
  \newcommand*\notosanscondensed{\fontfamily{\notosanscondensedfamily}\selectfont}
  \newcommand*\notomonocondensed{\fontfamily{\notomonocondensedfamily}\selectfont}
  \ifnotocondensed@rm \def\rmdefault{\notoserifcondensedfamily} \fi
  \ifnotocondensed@sf \def\sfdefault{\notosanscondensedfamily} \fi 
  \ifnotocondensed@tt \def\ttdefault{\notomonocondensedfamily} \fi 
  \ifnotocondensed@sfdefault\edef\familydefault{\sfdefault}\fi
\fi

\DeclareTextFontCommand{\textsu}{\sufigures}

% LGR

\def\notocondensed@figurestyle{LF}
\ifnotocondensed@oldstyle\def\notocondensed@figurestyle{OsF}\fi
\def\notocondensed@figurealign{T}
\ifnotocondensed@proportional\def\notocondensed@figurealign{}\fi

\newcommand*\notoserifcondensedlgr{\fontencoding{LGR}\fontfamily{NotoSerif-\notocondensed@figurealign\notocondensed@figurestyle}\fontseries{c}\selectfont}
\newcommand*\notosanscondensedlgr{\fontencoding{LGR}\fontfamily{NotoSans-\notocondensed@figurealign\notocondensed@figurestyle}\fontseries{c}\selectfont}
\newcommand*\notomonocondensedlgr{\fontencoding{LGR}\fontfamily{NotoSansMono-\notocondensed@figurealign\notocondensed@figurestyle}\fontseries{c}\selectfont}


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

\endinput