Is there any way of using a Google font that is not provided in LaTeX by default? More specifically, I would like to use the `Damion`

font for a special word in my LaTeX document:

https://fonts.google.com/specimen/Damion#standard-styles

I have downloaded the .ttf file for the font, and I am wondering how I can use it for my LaTeX document.

Thank you for your help in advance,

TeX - LaTeX Asked on November 12, 2021

1 AnswersIf you copy the font to the appropriate directory, you should be able to load it with `setmainfont`

or `newfontfamily`

. The preferred way to load it is by its filename, but you can also load it by family name.

On Windows, you need to install it for all users, not just for your user account, or LuaTeX/XeTeX will not be able to find it. On Mac, I believe you need to install it as a System font as well. The Linux version, however, does search user directories such as `~/.fonts/`

.

You can also save it under the `fonts/truetype/`

subdirectory of your local TeX tree. With TeX Live, you can look this up with `kpsewhich -var-value=TEXMFLOCAL`

. (Or `TEXMFHOME`

if you aren’t the sysadmin.) With MikTeX, you would create a new directory yourself and set the `TEXINPUTS`

environment variable.

Finally, if you only need it for one project, you can put it in the project folder. You can also put your fonts in a subdirectory and tell `fontspec`

where to find them with the `Path=`

key. This should be a relative, not absolute, path if you want your document to compile on any other computer, including your next one.

Answered by Davislor on November 12, 2021

3 Asked on June 11, 2021 by gamification

1 Asked on June 11, 2021 by botenvouwer

0 Asked on June 11, 2021

1 Asked on June 11, 2021

0 Asked on June 11, 2021 by andr-bellache

1 Asked on June 11, 2021

1 Asked on June 10, 2021

0 Asked on June 10, 2021 by josephine-woon

1 Asked on June 10, 2021 by fabian-schneider

1 Asked on June 10, 2021

2 Asked on June 10, 2021 by sahoo

1 Asked on June 10, 2021

1 Asked on June 10, 2021

Get help from others!

Recent Answers

- Kavi Rama Murthy on Characteristic function of random variable is always integrable
- greg on Computing the matrix differential/derivative of the matrix$rightarrow$scalar function $log det(BCB^T)$
- user10354138 on Proof that a continuous function with continuous right derivatives is differentiable.
- N. Bar on Finding the volume when a parabola is rotated about the line $y = 4$.
- Gavin Ball on Invariant $SU(3)$ subgroup for ${bf 8}$ in ${bf 3}^* otimes {bf 3} ={bf 1} oplus {bf 8}$

Recent Questions

- Computing the matrix differential/derivative of the matrix$rightarrow$scalar function $log det(BCB^T)$
- Characteristic function of random variable is always integrable
- Invariant $SU(3)$ subgroup for ${bf 8}$ in ${bf 3}^* otimes {bf 3} ={bf 1} oplus {bf 8}$
- Proof that a continuous function with continuous right derivatives is differentiable.
- Finding the volume when a parabola is rotated about the line $y = 4$.

© 2021 InsideDarkWeb.com. All rights reserved.