2

I have found a font that I like and I want to use it in XeLaTeX but I have no idea what to do. I have downloaded the specific font and installed it although I don't know if I should have done that. Generally what should I do in in order to use a new font? Do I have to install it? Then what do I have to write in the preamble? Thank you!

  • 1
    Please add a MWE for see your code and then can help you to improve it for use your font with xelatex – Aradnix Aug 20 '14 at 6:53
  • 1
    The correct way of "installing" a font depends crucially on the operating system in use on your computer. Please provide some information on that subject. – Mico Aug 20 '14 at 7:52
3

You need to use the fontspec-package:

\documentclass{article}

\usepackage{fontspec}
\setmainfont{<your font name>}

\begin{document}

This text should be set in your new wonder-font

\end{document}

You need the font installed on your system, so no harm done there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.