summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/inriafonts/InriaSans.sty
blob: 70e154cb3953781618200d07fc209abfa548de88 (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
%%
%% This is file `InriaSans.sty',
%% generated with the autoinst utility.
%% 
%% (c) 2019/01/18 Nicolas Markey <inriafonts at markey dot fr>
%% 
%% The Inria fonts were designed by Black[Foundry], and are distributed
%% under the SIL OpenFont Licence:
%%   https://www.fontsquirrel.com/fonts/inria-serif#eula
%% 
%% The support files were created with the autoinst tool, and are 
%% distributed under the LaTeX Project Public License:
%%   http://www.latex-project.org/lppl.txt
%% 
%% This work has the LPPL maintenance status `maintained'.
%% The Current Maintainer of this work is Nicolas Markey.
%% 

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{InriaSans}
    [2019/01/18 v1.0  Style file for InriaSans.]

\RequirePackage[T1,LY1]{fontenc}
\RequirePackage{textcomp}
\IfFileExists{mweights.sty}{\RequirePackage{mweights}}{}
\IfFileExists{fontaxes.sty}{
    \RequirePackage{fontaxes}
    \providecommand{\tldefault}{tl}
    \DeclareRobustCommand\tlshape{\not@math@alphabet\tlshape\relax
        \fontsecondaryshape\tldefault\selectfont}
    \DeclareTextFontCommand{\texttl}{\tlshape}
    \let\texttitling\texttl
    \fa@naming@exception{shape}{{n}{tl}}{tl}
    \fa@naming@exception{shape}{{it}{tl}}{tlit}
    \fa@naming@exception{shape}{{sl}{tl}}{tlsl}

    \fa@naming@exception{figures}{{superior}{proportional}}{Sup}
    \fa@naming@exception{figures}{{superior}{tabular}}{Sup}
    \def\sufigures{\@nomath\sufigures
        \fontfigurestyle{superior}\selectfont}
    \DeclareTextFontCommand{\textsu}{\sufigures}
    \let\textsuperior\textsu

}{}

\IfFileExists{xkeyval.sty}{
    \newcommand*{\InriaSans@scale}{1}
    \RequirePackage{xkeyval}
    \DeclareOptionX{scale}{\renewcommand*{\InriaSans@scale}{##1}}
    \DeclareOptionX{scaled}{\renewcommand*{\InriaSans@scale}{##1}}
}{
    \let\DeclareOptionX\DeclareOption
    \let\ExecuteOptionsX\ExecuteOptions
    \let\ProcessOptionsX\ProcessOptions
}

\DeclareOptionX{lining}{\edef\InriaSans@figurestyle{LF}}
\DeclareOptionX{oldstyle}{\edef\InriaSans@figurestyle{OsF}}
\DeclareOptionX{tabular}{\edef\InriaSans@figurealign{T}}
\DeclareOptionX{proportional}{\edef\InriaSans@figurealign{}}
\DeclareOptionX{bold}{\edef\bfseries@rm{b}}
\DeclareOptionX{light}{\edef\mdseries@rm{l}}
\DeclareOptionX{regular}{\edef\mdseries@rm{m}}
\ExecuteOptionsX{oldstyle,proportional,bold,regular}
\ProcessOptionsX\relax

\renewcommand*
    {\rmdefault}
    {InriaSans-\InriaSans@figurealign\InriaSans@figurestyle}
\renewcommand*{\familydefault}{\rmdefault}

\endinput