# Tag Info

## Hot answers tagged fontspec

12

You can trap the error and make it a warning, just setting a flag, then test for that and load something else, see the code below. Note this is poking into internal interfaces so if it breaks at a fontspec update, don't complain:-) \documentclass{article} \usepackage{fontspec} \newif\ifgoodfont \makeatletter \ExplSyntaxOn \cs_set:Nn \__fontspec_load_font: ...

8

It seems that it is very tightly spaced to following lowercase letters (1). You can prevent the kerning with \mbox (2). I assume a word space is too much (3) or you could use the xetex inter-character token class to add an extra kern, here I set up a class for ' and a class for lower case ascii letters and inject a small kern if ' is followed immediately ...

6

I've installed URWGrotest.ttf in my local directory -- using xelatex works out of the box for this. (Source of the font: http://font-db.com/font/URWGroteskT/57578, it's a .zip file, where the font file is called font.ttf, so I renamed it) \documentclass{article} \usepackage{fontspec} \usepackage{blindtext} \setmainfont{URWGrotesk.ttf} \begin{document} ...

5

On the german list a similar (not the same) message was reported and there a workaround was to load the font by file name and to explicitly tell fontspec the extension: \setmonofont{AnonymousPro-Regular}[Extension = .ttf]

5

My feeling is that luaotfload makes LuaTeX ignore the choice of stylistic sets when the font is used in math mode. In order to prove my claim, I did \mathcode=\numexpr"7000+\mathcode\relax and tried $\mathtt{`}$, which resulted in the curly backquote no matter what stylistic set in used in the definition of the mono font. Note that url typesets the ...

4

Your conjecture is true: \documentclass{memoir} \usepackage{minted} \usepackage{fontspec} % disable the default 'Ligatures=TeX' option \defaultfontfeatures{} \setmonofont{Courier} \begin{document} \begin{minted}{bash} 0-1--2---3 \end{minted} \end{document} If you want to have ligatures in running text also for the monospaced font, but not in ...

4

The first thing to diagnose for "XeTeX running slowly" problems is to compile the document with xelatex -no-pdf, and then run xdvipdfmx manually on the resulting .xdv file. Timing each one separately will indicate whether it's XeTeX running slowly or xdvipdfmx. The next step is to figure out if it's XeTeX or fontspec at fault. I would be surprised if it ...

4

Hmm not really the user interface you want, but perhaps a pointer to a solution, the document runs without error (and I hope makes the right thing, although I can't read it:( if you force the font to be loaded before fontspec triggers (I assume) luaotfload which changes the font loading \documentclass{article} %\usepackage[utf8]{inputenc} \usepackage{dad} ...

4

As long as you have a font with the characters, why not? The above being the output from \documentclass{article} \usepackage{fontspec} \setmainfont{Arial} \begin{document} fə′nɛtɪks \end{document}

3

The clash on \sups is because poth packages are defining this command to do something related to TIPA, the tipa package isn't expecting that, the error message goes if you load it before fontspec Then really you probably want to not overload too much of fontspec as the latin modern IPA characters are in unicode rather than T3 positions, which just leaves ...

3

Don't use \fontspec in the middle of a document and just use the standard font size changing commands: \documentclass{book} \usepackage{fontspec} \newfontfamily{\titlefont}{TeX Gyre Heros} % I don't have Verdana \begin{document} \begin{minipage}{8cm} \centering\Huge\titlefont Introdução ao Desenvolvimento em Android \end{minipage} \end{document} If you ...

2

Use the setspace package and stretch the interline skip to 2.6 too. I took the opportunity to add \raggedright switch, to have a correct horizontal spacing: \documentclass{book} \usepackage{fontspec} \usepackage{setspace} \begin{document} \begin{minipage}{8cm}\setstretch{2.6} \fontspec[Scale=2.6]{Verdana}\raggedright \noindent Introdução ao ...

2

You have to declare a math font: \documentclass{memoir} \usepackage{amsmath,amssymb,amsthm} \usepackage{unicode-math} \setmainfont{Zapfino} \setmathfont{Latin Modern Math} \setmathfont[range=\mathup/{latin,Latin}]{TeX Gyre Heros} \begin{document} This is a proof $\sin x^2$ $\sum$ $\delta$ \end{document}

2

I'll let others take on the specific question about the clash between tipa and fontspec. But I wanted to provide an answer that would be helpful to other users who are facing the broader question of how to do Sanskrit transliteration (or phonetic transcription more generally) in XeLaTeX. This would especially apply to those who don't already have a lot of ...

2

EDIT -- located the source of the problem: kpsewhich luaotfload-database.lua contains a verbatim path local fonts_conves = { --- plural, much? "/usr/local/etc/fonts/fonts.conf", "/etc/fonts/fonts.conf", } But that should not hurt. I assume the stack overflow messages disturb the tool much more. As the stack overflow happens after ...

1

The trick is to use SizeFeatures together with the OpticalSize option. For example: \setmainfont[Numbers = {OldStyle, Proportional}, SizeFeatures = { {Size = {-16}, OpticalSize = 8}, {Size = {16-}, OpticalSize = 12} }]{Minion Pro} Will use the caption optical size for regular text (with the 14pt ...

Only top voted, non community-wiki answers of a minimum length are eligible