Skip to content

Commit

Permalink
Switch to ontawesome5, from ontawesome; the former is better, see cod…
Browse files Browse the repository at this point in the history
…e comments
  • Loading branch information
alexpovel committed Oct 14, 2020
1 parent 3dade9a commit 8df784e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 147 deletions.
10 changes: 6 additions & 4 deletions chapters/mainmatter/base-features.tex
Original file line number Diff line number Diff line change
Expand Up @@ -596,14 +596,16 @@ \subsection{Mono-Spaced}

\subsection{Symbols}

\ctanpackage{fontawesome} is a package providing hundreds of freely usable vector
\ctanpackage{fontawesome5} is a package providing hundreds of freely usable vector
symbols.
They scale just like normal vector graphics and can be used alongside text, like
this little friend here: \faFirefox{}.
They can also be colored (\textcolor{mRed}{\faInternetExplorer{}}) or scaled:
this little friend here: \faIcon{firefox}.
They can also be colored (\textcolor{mRed}{\faIcon{chrome}}) or scaled:
\begin{center}
\scalebox{20}{\faLinux{}}
\scalebox{20}{\faIcon{linux}}
\end{center}
All of these should also be select- and then copyable, yielding \iecfeg{e.g.}\
\emph{LINUX}.
Refer to the package documentation for a list of all the available symbols.

\section{Language}
Expand Down
11 changes: 6 additions & 5 deletions chapters/mainmatter/floats.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1437,11 +1437,12 @@ \subsection{Regular TikZ pictures}
every node/.style={draw=black,thick,anchor=west,fill=g5},
font=\ttfamily,%
]%
\node {\faFileO{} parent.py}
child { node {\faFileO{} constants.py}}
child { node {\faFileO{} parameters.py}}
child { node {\faFileO{} handling.py}}
child { node {\faFileO{} performance\_maps.py}};
% `[regular]` optional arg gives outlined symbol, as opposed to `solid`
\node {\faIcon[regular]{file-code} parent.py}
child { node {\faIcon[regular]{file-code} constants.py}}
child { node {\faIcon[regular]{file-code} parameters.py}}
child { node {\faIcon[regular]{file-code} handling.py}}
child { node {\faIcon[regular]{file-code} performance\_maps.py}};
\end{tikzpicture}
\end{center}
Note how \verb|tikzpicture| environments do not have to be contained in floats.
Expand Down
11 changes: 4 additions & 7 deletions cookbook.cls
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,10 @@
% Color=LightCyan4,% Toggle color for debugging (should be xcolor name)
]{texgyrepagella}%

% See https://tex.stackexchange.com/a/176322/120853
% FontAwesome simply calls the FontAwesome font family, so provide a path to our
% provided font file here.
\defaultfontfeatures[FontAwesome]{%
Path=fonts/other/,
}
\RequirePackage{fontawesome}% High-quality Unicode vector web symbols
% Looking at CTAN, `fontawesome5' looks much more recent and packs many more symbols
% in comparison to `fontawesome'.
% It ships with its own font files, so no need to specify here.
\RequirePackage{fontawesome5}% High-quality Unicode vector web symbols

% Wrapper for "i.e.", "e.g.", "c.f.", "etc.", etc.
% Call this command as "The animals, \iecfeg{e.g.}\ an elephant, are..."
Expand Down
9 changes: 4 additions & 5 deletions fonts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,13 @@ I don't have more reasons anyway, since otherwise, the programs are quite identi

## Licenses

As of 2020-06-25, there are four font subdirectories, each containing the fonts and their
As of 2020-06-25, there are these font subdirectories, each containing the fonts and their
licenses:

- [sans](sans/): The custom license requires written permission by the author to be
1. [sans](sans/): The custom license requires written permission by the author to be
distributed (which it probably technically is by virtue of being included in and publicly
downloadable from this repo). That permission is attached to the directory.
- [roman](roman/): These are licensed so that a complete, unmodified distribution is okay.
- [mono](mono/): Same as for roman.
- [other](other/): Sane as for roman.
2. [roman](roman/): These are licensed so that a complete, unmodified distribution is okay.
3. [mono](mono/): Same as for roman.

For more info, refer to the exact licenses.
Binary file removed fonts/other/FontAwesome.otf
Binary file not shown.
126 changes: 0 additions & 126 deletions fonts/other/LICENSE

This file was deleted.

0 comments on commit 8df784e

Please sign in to comment.