Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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!

share|improve this question
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 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 at 7:52

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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