Closed Naereen closed 6 years ago
For instance, in CSS:
@font-face {
font-family: "xkcd";
src: url('Humor-Sans.ttf');
}
See https://github.com/Naereen/My-Own-HandWritting-Font (work in progress)...
With xelatex
instead of pdflatex
it shouldn't be too hard.
latexmk -gg -pdf -pdflatex="xelatex %O %S" slides_169.tex
\ifxetex
\usepackage{fontspec}
\setmainfont[Ligatures=Historic]{TeX Gyre Pagella}
\newfontfamily\Fontify[Path = fonts/]{Fontify-Regular}
\fi
And in the last slide:
\begin{center}\begin{LARGE}
\ifxetex
{\Fontify Thanks!} \Smiley[1.2]
\else
\textbf{Thanks!} \Smiley[1.2]
\fi
\end{LARGE}\end{center}
I'll like to use a custom (e.g., handwriting, as generated by this tool for instance) font for some part or the whole text of slides generated with LaTeX (or XeLaTeX) and also pandoc.
It shouldn't be too hard.
I would like to use "my own handwriting font" (with extra care to make it pretty :sparkles:) for the "Thank you" I insert at the end of every slideshows. It would make it more personal, but way "prettier" than if I just write it, scan it and use it as an image.
If this works, I can also use "my handwriting font" for, e.g., titles on a webpage, the acknowledgements in a article, legend in Matplotlib figures (à la XKCD).