summaryrefslogtreecommitdiff
path: root/fonts/simpleicons/tex/simpleicons.sty
blob: 8feb89c75a9623d73fd53961bb57fe5de4e10082 (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

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{simpleicons}[2023/06/02 9.0.0 Simple Icons 9.0.0 Logos]


\RequirePackage{ifxetex,ifluatex}
\newif\ifsimpleicons@otf\simpleicons@otffalse
\ifxetex
  \simpleicons@otftrue
\else
  \ifluatex
    \simpleicons@otftrue\fi\fi

\newcommand*{\simpleicon}[1]{%
  {\csname simpleicon@#1\endcsname}}

\ifsimpleicons@otf
\usepackage{fontspec}

\newfontfamily{\simpleiconsmap}{SimpleIcons}
\input{simpleiconsglyphs-xeluatex.tex}

\else


  \DeclareRobustCommand\simpleiconsmapOne{\fontencoding{U}\fontfamily{simpleiconsOne}\selectfont}
  
  \DeclareRobustCommand\simpleiconsmapTwo{\fontencoding{U}\fontfamily{simpleiconsTwo}\selectfont}
  
  \DeclareRobustCommand\simpleiconsmapThree{\fontencoding{U}\fontfamily{simpleiconsThree}\selectfont}
  
  \DeclareRobustCommand\simpleiconsmapFour{\fontencoding{U}\fontfamily{simpleiconsFour}\selectfont}
  
  \DeclareRobustCommand\simpleiconsmapFive{\fontencoding{U}\fontfamily{simpleiconsFive}\selectfont}
  
  \DeclareRobustCommand\simpleiconsmapSix{\fontencoding{U}\fontfamily{simpleiconsSix}\selectfont}
  
  \DeclareRobustCommand\simpleiconsmapSeven{\fontencoding{U}\fontfamily{simpleiconsSeven}\selectfont}
  
  \DeclareRobustCommand\simpleiconsmapEight{\fontencoding{U}\fontfamily{simpleiconsEight}\selectfont}
  
  \DeclareRobustCommand\simpleiconsmapNine{\fontencoding{U}\fontfamily{simpleiconsNine}\selectfont}
  
  \DeclareRobustCommand\simpleiconsmapOneZero{\fontencoding{U}\fontfamily{simpleiconsOneZero}\selectfont}
  
\input{simpleiconsglyphs-pdftex.tex}

\fi


\endinput