| 1 |
\ExplSyntaxOn |
| 2 |
\msg_new:nnnn {fontawesome7} {list/no-shorthand} {No~shorthand~defined~for~icon~#1.} { |
| 3 |
It~looks~like~#1~need~special~handling~in~fulllist.tex~but~there~are~ |
| 4 |
no~appropriate~definitions.~Ask~a~wizard~to~add~#1~to~fulllist.tex~to~ |
| 5 |
fix~this. |
| 6 |
} |
| 7 |
\tl_new:N \g__fontawesome_last_name_tl |
| 8 |
\tl_new:N \g__fontawesome_last_cs_tl |
| 9 |
\prg_new_protected_conditional:Nnn \__fontawesome_if_regular_style:nn {T} { |
| 10 |
\group_begin: |
| 11 |
\usefont{U}{fontawesome7#1}{regular}{n} |
| 12 |
\iffontchar\font#2 |
| 13 |
\group_insert_after:N \prg_return_true: |
| 14 |
\else: |
| 15 |
\group_insert_after:N \prg_return_false: |
| 16 |
\fi: |
| 17 |
\group_end: |
| 18 |
} |
| 19 |
\tracingonline1 |
| 20 |
\showboxdepth\maxdimen |
| 21 |
\showboxbreadth\maxdimen |
| 22 |
\cs_new:Nn\__fontawesome_list_show_icon:nnnn{ |
| 23 |
\str_if_in:nnT{#3}{brands}{ |
| 24 |
\hfilneg\vbox to0.875em{\vfil\hbox to0pt{\hss\tiny\faTrademark\quad}\vfil}\hfil |
| 25 |
} |
| 26 |
\faIcon{#2}&\texttt{\textbackslash#1}&\texttt{\textbackslash faIcon\{#2\}} |
| 27 |
\str_if_in:nnT{#3}{free}{ |
| 28 |
\__fontawesome_if_regular_style:nnT {#3} {#4} { |
| 29 |
\\\faIcon[regular]{#2}&\texttt{\textbackslash#1[regular]}&\texttt{\textbackslash faIcon[regular]\{#2\}} |
| 30 |
} |
| 31 |
} |
| 32 |
\tl_gset:Nn \g__fontawesome_last_cs_tl {#1} |
| 33 |
\tl_gset:Nn \g__fontawesome_last_name_tl {#2} |
| 34 |
\\ |
| 35 |
} |
| 36 |
\cs_generate_variant:Nn \__fontawesome_list_show_icon:nnnn { fnnn } |
| 37 |
\cs_set:Nn\__fontawesome_def_icon:nnnnn{ |
| 38 |
\__fontawesome_list_show_icon:fnnn{ |
| 39 |
\tl_if_empty:nTF{#1}{ |
| 40 |
faIcon\{\str_foldcase:n{#2}\} |
| 41 |
}{ |
| 42 |
\cs_to_str:N #1 % You might have noticed that #1 is a n-type argument, not N-type. |
| 43 |
% This is not a mistake, the argument might contain additional characters after the initial cs |
| 44 |
% which is passed to \cs_to_str:N |
| 45 |
} |
| 46 |
}{#2}{#3}{#4} |
| 47 |
} |
| 48 |
\ExplSyntaxOff |
| 49 |
\newgeometry{textwidth=18cm} |
| 50 |
\subsection*{Full~icon~list~for~FontAwesome~7~Free} |
| 51 |
All icons marked with \vbox to0.875em{\vfil\hbox{\hss\tiny\faTrademark}\vfil} are brand icons. |
| 52 |
\begin{quote} |
| 53 |
All brand icons are trademarks of their respective owners. The use of these |
| 54 |
trademarks does not indicate endorsement of the trademark holder by Font |
| 55 |
Awesome, nor vice versa. \emph{Please do not use brand logos for any purpose except |
| 56 |
to represent the company, product, or service to which they refer.} |
| 57 |
\end{quote} |
| 58 |
\ExplSyntaxOn |
| 59 |
\begin{longtable}{cll} |
| 60 |
\cs:w @@input\cs_end: fontawesome7-mapping.def~ |
| 61 |
\end{longtable} |
| 62 |
\ExplSyntaxOff |
| 63 |
\restoregeometry |