{fontspec} is a package for loading {opentype} fonts in XeLaTeX and LuaLaTeX.

learn more… | top users | synonyms

3
votes
1answer
113 views

Footnote marker in text should be superscript lining figure, but footnote marker in the footnote should be full size old style figure

My general footnote layout is like this: \documentclass{article} \usepackage{lipsum} \usepackage[hang]{footmisc} % the whole footnote text is indented \setlength{\footnotemargin}{.5em} % push the ...
15
votes
2answers
1k views

Scope of \addfontfeature

I have encountered something while using fontspec that I do not quite understand. What is the scope of a font feature added using the \addfontfeatures command? For instance, consider the example below ...
1
vote
1answer
213 views

Problem in Printing Friggeri Resume/CV

I am using Friggeri Resume/CV template, which can be found here. This template is absolutely beautiful and easy to read on a computer. Its look is astounding and I just like it very much. However, ...
0
votes
0answers
148 views

Trying to run Plasmati Graduate CV template

I am trying to install this CV template. I have installed the Fontin fonts manually and the fontspec package included in Tex Live. However, I am getting the following messages: Could you please ...
3
votes
1answer
144 views

luatexja with microtype generates lots of warnings

\documentclass{article} \usepackage{microtype} \usepackage{luatexja-fontspec} \begin{document} Lot's of Warnings. \end{document} The above sample throws a boatload of errors of the type Package ...
10
votes
2answers
888 views

How can I use OpenType Collection font with fontspec package and LuaTeX?

I have trouble setting monospaced font to Source Han Code JP font using \setmonofont. I tried the following code just the same as when I usually use fontspec package. % file name: example01.tex \...
4
votes
1answer
100 views

Incorrect glyph from \textgamma with fontspec enabled

I've been having trouble typesetting the character gamma using the textgreek package. Using textgreek, the command for the character is \textgamma. However, when using fontspec in XeLaTeX (on Mac OS X ...
2
votes
1answer
500 views

Computer Modern with fontspec in XeLateX (package mod)

I'd like to type my CV/resume form Friggeri's template (http://www.latextemplates.com/template/friggeri-resume-cv) that is based on Helvetica Neue fonts which I do not have on my computer and the ...
1
vote
1answer
128 views

How to add Batang font to ShareLaTeX

The Batang font supports CJK languages. The following example (from https://yoo2080.wordpress.com/2014/03/09/how-to-use-unicode-in-latex-by-luatex-or-xetex/) works fine with TeXShop, but produces an ...
10
votes
2answers
405 views

Loading a font via package or fontspec

In Xe(La)TeX, what is the difference between loading a font via its package, i. e. \usepackage{tgpagella}, and loading it through fontspec (\fontspec{TeX Gyre Pagella}). When loaded with the package, ...
2
votes
1answer
145 views

How to validate a font to be used with XeLaTeX, fontspec

I have the following minimal document: \documentclass{article} \usepackage{fontspec} \setmainfont{jizura3b} \begin{document}  \end{document} The single character in the document should be ...
2
votes
1answer
144 views

Embedding Only TrueType Fonts Using XeLaTeX

Background: I'm writing my thesis and per the department guidelines, I have to use TrueType fonts and they need to be embedded in the PDF. Now, I have managed to change everything into Computer ...
3
votes
2answers
221 views

Italic math font (via \mathit) not working for greek symbols with fontspec/lualatex/TeX Live 2015

(Updated to reflect newest findings.) I recently switched to TeX Live 2015 and am struggling with a few problems in code that worked perfectly fine in TeX Live 2014. For instance: \mathit does not ...
2
votes
2answers
541 views

Beramono in XeTeX?

I like the beramono font, and I want to use it for code listings (using the listings package). I want the standard CMR tt font for typewriter font in the body of the text. I could do this using ...
10
votes
2answers
979 views

unicode-math broken

I updated texlive this morning and discovered that unicode-math is broken: <argument> \xetex_suppressfontnotfounderror:D Here is a MWE: \documentclass[12pt]{article} \usepackage{unicode-...
0
votes
0answers
16 views

Error after updating fontspec [duplicate]

Last night I updated my TeXLive 2015 distribution. Among the packages updated was fontspec. Now I am facing problems with documents that worked perfectly before the update. I am using Texpad (but ...
0
votes
0answers
32 views

Broken updates in fontspec? [duplicate]

Has there been a recent update to the fontspec package which changed the usage of \setmainfont in LaTeX or XeLaTeX? This seems to be the same error as in this post today: unicode-math broken I ...
1
vote
0answers
33 views

How can I find which font unicode-math is using for a particular symbol?

The following MWE produces a blank document, as the default font does not contain ⟿. \documentclass{article} \usepackage{polyglossia} \usepackage{fontspec} \begin{document} \(⟿\) \end{document} ...
1
vote
0answers
92 views

Why does kerning work with LuaLaTex but not XeLaTex for the same font?

Consider the following MWE: \documentclass[varwidth]{standalone} \usepackage{ifluatex} \usepackage{ifxetex} \usepackage{metalogo} \usepackage{fontspec} \setmainfont{Bembo}[BoldFont = Bembo Bold] \...
8
votes
0answers
237 views

xdvipdfmx parse error when using particular font with fontspec [duplicate]

I am using the font IM FELL English PRO (open-source otf here) via the fontspec package, and when I tried typesetting the characters \"{a}, \'{n} or \"{o}, I got this error: xdvipdfmx:fatal: Type2 ...
1
vote
2answers
278 views

latexmk says fontspec/Path is unknown

I have the following document, which uses fonts stored in a fonts/ directory (specifically several subdirectories of fonts/), as well as defined font subfamilies. I'm trying to compile it into a PDF ...
3
votes
2answers
271 views

Initial 'single quote' is backwards - csquotes

Should I be using fontspec per Single quotes in csquotes ? My initial single quote faces the wrong way, latex thinks it's an apostrophe. MWE: filename: mwe-singlequotes.tex \documentclass[a4paper,...
7
votes
2answers
324 views

Whose responsibility is it to load fonts in LaTeX (or XeLaTeX)? (and how do I know which ones, if mine?)

I ran into a headache-inducing problem with LaTeX (actually I used XeLaTeX to compile, but I think this issue is independent) recently due to unwittingly attempting to modify the dimensions of a math ...
5
votes
2answers
78 views

Use own FontForge font in XeLaTeX

I created a font for 12 letters, since this is all I need. Having created the font as .ttf I double click on it and press install. With \fontspec I want to see how the font looks like, but I get only ...
1
vote
0answers
41 views

XeLaTeX FakeBold produces point at origin of tikzpicture

This is a XeLaTeX question. FontSpec's FakeBold produces an unwanted dot in any tikzpicture. Here is a minimal example: \documentclass{minimal} \usepackage{tikz} \usepackage{fontspec} \setmainfont[...
11
votes
5answers
2k views

Sans-serif to go with EB Garamond (no math)?

Suggestions for a good sans-serif font to go with (complement) EB Garamond? Math and non-Western European support are not required. Text is fiction, not academic or scientific. English with an ...
3
votes
3answers
187 views

Shrink a line of verse

I have some lines of Sanskrit verse (left indented via a quoting environment) which are slightly too long, similar to the following example: \documentclass{memoir} \usepackage{quoting} \usepackage{...
1
vote
0answers
36 views

Underfull \hboxes when reducing inter word and inter letter spaces

Related to this question about shrinking a line of verse I still don't understand why I'm getting an Underfull \hbox warning for the following example. As far as I understand this warning normally ...
18
votes
3answers
742 views

Is there a way to use different local font files for different font size in fontspec?

I am a big lover of the EB-Garamond fonts by Georg Duffner. As of now, he has made two sets of font files, EB-Garamond-8 and EB-Garamond-12, respectively for “design size 8pt” and “design size 12pt”. ...
1
vote
0answers
26 views

Use optical sizes of fonts with fontspec for local files [duplicate]

Now, this is the exact same question as Is there a way to use different local font files for different font size in fontspec?, but is is left without a solution. @WillRobertson answered in a comment ...
5
votes
1answer
113 views

Combine “traditional” font packages (e.g. Type 1) with fontspec

I was having problems trying to combine a "traditional" font package (berasans) with fontspec (using TeX Gyre Pagella). Just using both correctly changed the text font to TeX Gyre Pagella, but text ...
0
votes
0answers
35 views

Special character with latex [duplicate]

I'am trying to write an equation where thee is this special caracter: \^{e} \begin{equation} \^{e} = 1 \end{equation} But the probleme is \^{e} is invisible, I see only “= 1”
6
votes
1answer
251 views

Mathsf Greek Symbols Lualatex

I am using Lualatex with Latin Modern as math font. I want to produce mathsf greek symbols. However, it seems that it doesn't work for greek symbols (Using \setmathfont[\range=mathsf]{Latin Modern ...
1
vote
2answers
356 views

Vector font for suetterlin

I want to use the old German "Kurrentschrift" in equations. In LaTeX, this is already integrated in the package suetterl: \documentclass{article} \usepackage{suetterl} \begin{document} \...
6
votes
1answer
312 views

Can one kern math font euler.otf using lualatex and fontspec?

I am at it again... :) Using the http://github.com/khaledhosny/euler-otf/blob/master/euler.otf font, can one kern distance between T and P with Lualatex? Clearly, my attempt does not work... Could ...
2
votes
1answer
50 views

Arabic script not displaying in chapter headings, even though body text is fine.

In the MWE below {thanks to @maïeul}, the Arabic chapter heading and chapter number does not display the Arabic font, but the body text displays fine. It seems to be a problem with Arabic, because ...
3
votes
1answer
3k views

fontspec error: “font-not-found”

I installed some .otf fonts in /usr/local/texlive/texmf-local/fonts, changed /usr/local/texlive/2015/texmf-var/fonts/conf/texlive-fontconfig.conf adding the string <dir>/usr/local/texlive/texmf-...
2
votes
2answers
390 views

How to set the maths font in Beamer when using XeLaTeX?

I am using XeLaTeX with fontspec and mathdesign to set the maths font separately. This works fine in memoir, for example, but Beamer overrides my maths font settings and uses the main font as a maths ...
3
votes
1answer
64 views

Make a font function that does not leak with fontspec/xelatex

I am trying to make a function \noteunic with fontspec and xelatex that allows me to write with a unicode font for a limited section of the text only. But when I write this, the font leaks outsite the ...
8
votes
1answer
1k views

Double quotes with monospaced font and LuaLaTeX

I am trying to set the following minimal document: \documentclass[a4paper,11pt]{article} \usepackage{fontspec} \setmonofont{Inconsolata} \begin{document} \begin{verbatim} <!DOCTYPE HTML PUBLIC "-//...
9
votes
3answers
358 views

Increase word space between words in small caps

With tracking activated for small caps, it can be a little bit hard to detect interword spaces. Cf. below. \documentclass{article} \usepackage{fontspec} \setmainfont{Libertine Serif}[ ...
4
votes
0answers
83 views

How to enable contextual swashes for Arabic

I recently read about Contextual Swashes for Arabic fonts from here. They have shown an example of how it would look. I've already read this question and it helped me set up my MWE. Here is a quick ...
1
vote
0answers
34 views

Overfull \hbox in subsection heading when using fontspec

In the following example I get an Overfull \hbox in the subsection heading when loading fontspec: \documentclass[11pt,a4paper]{memoir} \usepackage{fontspec} \makeatletter \renewcommand*{\thesection}...
7
votes
1answer
102 views

Defining subfamilies for a font

I wish to import from files a font family, which comes in extra light, light, regular, medium, bold and black. Instead of defining several different font names and choosing them as I need, it would be ...
0
votes
1answer
156 views

Using setmonofont with Bera Sans Mono in Beamer produces garbled output

I am using Bera Sans Mono as the monospaced font for typesetting code listings using the listings package. This is done for slides which are produced using beamer and XeLaTeX. My preamble includes the ...
3
votes
1answer
191 views

Ligatures with Alegreya Font in XeLaTeX

The following code does not create the expected ligatures (note that Alegreya is OTF): %XeLaTeX \documentclass{report} \usepackage{fontspec} \setmainfont[ SmallCapsFont={Alegreya SC}, ...
4
votes
0answers
20 views

Unicode-math no bold math or greek letters [duplicate]

What could be causing this? I'm on Ubuntu 14.04 I've uninstalled the Ubuntu TexLive packages and installed TexLive 2015 directly, and just updated today with tlmgr I've tried a few different unicode-...
8
votes
3answers
219 views

Aliasing an imported font to be reused later?

I have imported a font from files and set it as the main font like this: \setmainfont{EBGaramond}[ Path = fonts/eb-garamond/, Extension = .ttf, UprightFont = *12-Regular, BoldFont = *08-Regular, ...
7
votes
2answers
571 views

Historic font and missing ligatures

I am trying to compose a sort of old-style book. I would like to use a specific historical font for the entire text. This font includes ligature glyphs for: ff, fi, fl, ffl, and st (see Figure 1 for ...
7
votes
1answer
281 views

Combine kerning, small caps, and tracking in luatex

As is known, luatex requires the fontspec option Renderer = Basic in order to display small caps when microtype's tracking = true is used. \documentclass{article} \usepackage[tracking = true]{...