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

learn more… | top users | synonyms

3
votes
2answers
224 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 ...
3
votes
1answer
96 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 ...
7
votes
2answers
317 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
74 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} ...
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 ...
1
vote
1answer
76 views

How to use an alternate font in acm-small

I am writing a paper in English and I am using standards of acm-small latex version to generate files. I have used the acmsmall-sample.tex which has been provided by default and edited it to generate ...
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
104 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 ...
3
votes
1answer
301 views

fontspec and/or xdvipdfmx can't find certain fonts [duplicate]

This morning, I updated my MacTeX installation to the 2015 install. Unfortunately, something is now having some trouble with the font (Century/Century Schoolbook) that I use most [edit: everything ...
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
216 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
207 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
1answer
2k 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 ...
3
votes
1answer
62 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 ...
2
votes
2answers
272 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 ...
4
votes
0answers
76 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
30 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 ...
2
votes
1answer
45 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
173 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}, ...
0
votes
1answer
139 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
3answers
181 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} ...
6
votes
1answer
86 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 ...
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 ...
9
votes
3answers
318 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}[ ...
8
votes
3answers
214 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, ...
1
vote
0answers
141 views

sans serif math font selection using unicode-math

I am typesetting a document in XeLaTeX using a serif font for main text, and a sans serif for everything else (section titles, tables etc). For setting of mathematics, I use TeX Gyre Pagella Math. ...
7
votes
1answer
269 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 = ...
1
vote
2answers
183 views

Substitute one glyph for an alternate glyph of another stylistic set

In LuaTeX, I want to do the following: Having a text in the standard stylistic set of the font, but for a specific letter instead of having the glyph of the standard stylistic set, having it ...
2
votes
1answer
63 views

How to fix problem with `fontspec` and `wrapfig`?

MWE: \documentclass[a4paper,12pt,twoside]{memoir} \usepackage{graphicx} %\usepackage{fontspec} \usepackage{wrapfig} \usepackage{lipsum} \begin{document} \chapter{Fundamentals of Modern Physics} ...
1
vote
1answer
131 views

Changing Caption Font Doesn't Work

I need to format the caption of tables and figures in my document so that is is 10pt Arial font bold faced. The main font is 12pt Times New Roman. I've tried the following (MWE), but it doesn't seem ...
5
votes
0answers
247 views

lualatex: Error when loading a font from a relative path

I'm trying to load a .ttf from lualatex, which works fine when I place the .ttf in the same folder as the .tex file. However, for my project structure it would be beneficial to store .ttf files in a ...
7
votes
2answers
516 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 ...
5
votes
1answer
152 views

Scale font to a desired x-height/em/cap-height/etc' in fontspec

When reproducing a typographic layout from print I often run into the usual difficulty of a font's "point size" not being easily measureable on a page. On the other hand, features such as x-height and ...
1
vote
2answers
163 views

Fontspec - Erewhon : what is the difference between setmainfont and usepackage?

What are the diffences and are there drawbacks involved in replacing \setmainfont{erewhon} by \usepackage{erewon}? In the first case there is no bold small caps, but there are in the second. This is ...
2
votes
0answers
46 views

Fontspec, bold small caps with Erewhon

How to have bold small caps with Erewhon ? \documentclass{article} \RequirePackage{fontspec} \setmainfont{Erewhon}[ Extension=.otf, UprightFont=*-Regular, ...
5
votes
1answer
225 views

Using swash italics through fontspec

I am trying to use Minion Pro’s swash italics in my files. The typical method, \usepackage{Minion Pro} and \textsw{Text to be Swashed}, fails when using fontspec. I need fontspec to switch between ...
6
votes
1answer
697 views

fontawesome and pdflatex [closed]

When using pdflatex and the fontawesome package the below error shows up. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! Fatal fontspec error: "cannot-use-pdftex" ! ! The fontspec package ...
3
votes
1answer
93 views

fontspec+polyglossia… lack of spaces before punctuation marks (French) in standalone and dinbrief

I fail to get Lualatex to properly typeset punctuation marks for French when using the classes standalone or dinbrief. In this minimal example I would expect to see spaces before the colon and before ...
9
votes
2answers
809 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 ...
0
votes
0answers
103 views

XeLaTeX and changing fonts inside a document

Here is a detailed explanation of how to use various fonts inside a document in XeLaTeX: How do I use a particular font for a small section of text in my document? However, there is no MWE to ...
0
votes
1answer
151 views

How to display italics (obliques) with SourceSans Pro?

I'm working in a document with lualatex where I want to use the Adobe Source family: Source Sans Pro, Source Serif Pro and Source Code Pro. My problem is that Source Serif Pro does not contain ...
5
votes
1answer
104 views

Linguex bad spacing between number and examples with certain values above 99 when using old style numbers

When using linguex example numbering packing, if I use \defaultfontfeatures{Numbers=OldStyle} with xetex or luatex, then with certain example numbers exceeding 99, there is no spacing between the ...
6
votes
1answer
182 views

Having trouble enabling ligatures with HF&J's Mercury Text OpenType font

I'm sure this font supports ligatures, but I can't get them to show up. Example with Roboto for comparison: \documentclass[ 11pt, a4paper ]{scrartcl} \usepackage{fontspec} ...
2
votes
1answer
57 views

TypeWriter font have no effect with polyglossia package

Using XeLaTeX engine, MWE1 works fine with fontspec and ucharclasses package. But when I change fontspec to polyglossia (MWE2), there is no TypeWriter font effect. Moreover, the first sentence of ...
4
votes
0answers
59 views

Incorrect rendering for Khmer using LuaLaTeX

When I compile the following MWE with XeLaTeX, it works pretty fine. But when I compile with LuaLaTeX some Khmer vowels are missing. Does LuaLaTeX support Khmer Unicode? Or is this a problem caused ...
0
votes
0answers
15 views

\setmainfont error with most recent fontspec version [duplicate]

I get a mysterious error running the following MWE (with both XeLaTeX and LuaLaTeX): \documentclass{article} \usepackage{fontspec} \setmainfont{texgyrepagella-regular.otf} \begin{document} Hello ...
5
votes
0answers
5k views

fontspec kernel/property-unknown [closed]

I have a problem with fontspec. When i try to build simple document: \documentclass[11pt, a4paper]{article} \usepackage{fontspec} \begin{document} aaa \end{document} I get an error: ...
5
votes
2answers
115 views

Why does fontspec interfere with Ligatures? (In retrospect: How the dutch hyphenate)

The tufte sample text (provided by ConTeXt) contains a || sequence which normally gets turned into an emdash. For some reason the inclusion of fontspec disables this. I've tried to use various options ...
4
votes
1answer
60 views

\thinspace/\, inserts no space

In my greek-german document, the second \, of the combination \,--\, doesn't actually insert a space. It rather looks as if I wrote just \,-- (Often, the same occurs with other languages and fonts, ...