Files
genesys-cheat-sheet/star-wars-icons.sty
NikolajDanger 346527f565 'init commit'
2022-12-03 14:09:17 +01:00

45 lines
1.3 KiB
TeX

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\usepackage{xcolor}
\newfontfamily{\sw}{sw-rpg-icons}
\DeclareTextFontCommand{\textsw}{\sw}
\newcommand{\icon}[2][black]{
\hspace{-6pt}\raisebox{-2pt}{
\textsw{\textcolor{#1}{\large\char"#2}}
}\hspace{-3pt}
}
\newcommand{\iconbig}[2][black]{
\hspace{-7pt}\raisebox{-3pt}{
\textsw{\textcolor{#1}{\Large\char"#2}}
}\hspace{-4pt}
}
\newcommand{\iconhuge}[2][black]{
\hspace{-8pt}\raisebox{-3.5pt}{
\textsw{\textcolor{#1}{\fontsize{16}{19}\selectfont\char"#2}}
}\hspace{-7pt}
}
\definecolor{boostblue}{HTML}{76CDDB}
\definecolor{difficultypurple}{HTML}{52287E}
\definecolor{abilitygreen}{HTML}{13AC4E}
\definecolor{challengered}{HTML}{751317}
\definecolor{proficiencyyellow}{HTML}{FEF035}
\newcommand{\advantage}{\icon{E900}}
\newcommand{\despair}{\icon{E904}}
\newcommand{\failure}{\icon{E905}}
\newcommand{\success}{\icon{E90B}}
\newcommand{\threat}{\icon{E90D}}
\newcommand{\triumph}{\icon{E90F}}
\newcommand{\setback}{\icon[black]{E93D}}
\newcommand{\boost}{\icon[boostblue]{E93D}}
\newcommand{\difficulty}{\iconhuge[difficultypurple]{E93F}}
\newcommand{\ability}{\iconhuge[abilitygreen]{E93F}}
\newcommand{\challenge}{\iconbig[challengered]{E941}}
\newcommand{\proficiency}{\iconbig[proficiencyyellow]{E941}}