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

learn more… | top users | synonyms

1
vote
1answer
269 views

fontspec – sans-serif as main font?

fontspec defines the commands \setmainfont[font features]{font name} \setsansfont[font features]{font name} \setmonofont[font features]{font name} to set the document's default fonts. However, if I ...
3
votes
1answer
132 views

Everything in small caps with fontspec and XeTeX

I seem to be having the opposite problem from everyone else. I am using fontspec and would like only the title and section headings to be small caps yet everything is unless I specify textbf or textit ...
4
votes
1answer
147 views

Problem with greek letters in Computer Modern Unicode

I've tried to use Computer Modern Unicode (version 0.7.0) with XeLaTeX to write greek letters. However, using the following code in TeXLive 2012 or 2014, the shapes of "βγλθωχ" seem different with ...
0
votes
0answers
30 views

The quote symbol in LuaLatex [duplicate]

I have a document which are previously compiled with regular pdflatex with \usepackage{times}, the typographic quote symbols are generated correctly as: And once I started to use LuaLatex with: ...
1
vote
0answers
95 views

Bold and sans serif at once with fontspec and LuaLaTeX

As you know, the code like \sffamily{\bfseries{...}} gives bold and serif font at once. If to use fontspec (luatexja-fontspec in my case) it is not enough just to define bold and sans serif fonts. If ...
10
votes
1answer
334 views

How to force a long-tailed Q in EB Garamond

I'm using XeLaTeX and EB Garamond to produce a facsimile of a 17th-century French pamphlet. EB Garamond, at least with its default settings, seems to select the long-tailed Q only when the Q is ...
0
votes
0answers
57 views

PyX with Chinese Characters / Xetex / encoding

I've been struggling with getting PyX to output some Chinese characters. The routes I have been trying are: Getting PyX to use Xetex changing my encoding using ...
1
vote
1answer
109 views

Fontspec en- and em-dash ligatures

When producing en- or em-dashes with fontspec enabled i XeLaTeX, the ligatures are not produced, it simply prints -- and ---. MWE: \documentclass{article} \usepackage{fontspec} \setmainfont{Linux ...
7
votes
1answer
114 views

XeLaTeX: Letterspacing with swashes

I'm trying to use XeLaTeX to typeset a word in EB Garamond, and I want only two of the letters in the word to have swashes. However, the swashed characters screw up the letterspacing: ...
6
votes
2answers
142 views

LuaLaTeX, Fontspec: Wordspacing and Letterspacing

I have a command \work which will format titles in SmallCaps and with less letter spacing. Now the funny thing: If I try to add some word spacing, too, and only for SmallCaps, it affects the whole ...
5
votes
1answer
145 views

Accessing an alternate representation of a letter in fontspec

Recently I've been trying to access a specific letter from the WatersTitlingPro-Rg font, through LuaLaTeX and fontspec. The Waters Titling Pro fonts is a small caps only font. Specifically, I'm ...
1
vote
1answer
121 views

Table with a different fonts for different columns

I'm using XelaTeX to typeset a table with a vocabulary list in a foreign language, with a structure similar to this one: different columns are typeset in different fonts (and scripts). It seems that ...
5
votes
1answer
75 views

Let fontspec handle bold font automatically

I recently installed a commercial font called Monospace 821. The font came in ttf format and I installed it as usual in a Linux machine. Problem is that when I use \textbf{Bold} the resulting ...
1
vote
0answers
123 views

How to compile properly a document using “fontspec” package? Part 2 [closed]

Update I followed Joseph Wright's suggestion of updating MikTeX in normal and admin modes, but am still unable to successfully compile the document. Here is the current log as a gist. Original ...
2
votes
1answer
129 views

Difficulty finding/selecting CM Bright using `fontspec`

I'm trying to modify the fonts in my document so that normal text comes up in Calluna, and maths comes up in Computer Modern Bright. My preamble goes something like this: \documentclass{article} ...
4
votes
1answer
84 views

KP-monospaced with LuaLaTeX

how do I set KP-monospaced font to be used as tt font with fontspec? I tried this: \documentclass{article} \usepackage{fontspec} \setmonofont{KP-monospaced} \begin{document} \texttt{120 test} ...
1
vote
1answer
45 views

lualatex fontdb keeps rebuilding

I am using lualatex just because I can use current common font types. My project has its oddities, so it takes 5 lualatex runs for a complete build. I noticed a lot of the build time is for rebuilding ...
7
votes
1answer
93 views

\'. gives error when fontspec package is used

The following minimal example: \documentclass{article} \usepackage{fontspec} \begin{document} The logo `\TeX\'. \end{document} produces the error: ./test.tex:5: Argument of \end has an extra }. ...
1
vote
0answers
116 views

Adobe Typekit Fonts

Adobe Typekit fonts install themselves in application fontlists (Word, InDesign etc.) but do not install in the Mac Fontbook. They are rented so this is their way of enforcing licence terms. Since ...
3
votes
0answers
162 views

XeLaTeX - Bottleneck at eu1enc.def [closed]

With XeLaTeX my compiler always consistently slows down when it comes to accessing eu1enc.def (I am using the fontspec package). I tried with copying that file and the others employed at that point ...
0
votes
1answer
449 views

Some fonts not recognized by LuaLaTeX

I have made an Ubuntu 14.04 fresh installation on a computer installing the following: texmaker 4.1-1 texlive 2013 texlive-xetex 2013 texlive-luatex 2013 texlive-fonts-extra 2013 ...
7
votes
1answer
215 views

the macro \micro in siunitx does not work with fontspec

In recent versions of siunitx the macros \si{\micro} and \SI{0.550}{\micro\m} do not work with the package fontspec. Here is the MWE: \documentclass[12pt]{article} \usepackage{fontspec} ...
3
votes
1answer
535 views

Font-not-found Helvetica Neue Light

I'm using xelatex in ubuntu 14.04 enviroment. When I compile my file I get the following error: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! fontspec error: "font-not-found" ! ! The font ...
8
votes
2answers
284 views

Currency symbol: French franc II

This is a follow-up question to Currency symbol: French franc. Consider ther following example: \documentclass{article} \usepackage{fontspec} \usepackage{siunitx} ...
2
votes
2answers
231 views

Which font extension is better to work with XeLaTeX

I am curious to know which font extensions works better when using XeLaTeX to compile a TeX document. I have just downloaded the font Alegreya from CPAN, and it comes with a fonts folder that includes ...
2
votes
1answer
207 views

\defaultfontfeatures in v2.4 of fontspec

Why in the following example, lipsum text does not appear in blue color as described in the fontspec manual? \documentclass{article} \usepackage{lipsum} \usepackage{fontspec} ...
1
vote
0answers
70 views

Copy and paste on iPad selects whole sentences after loading libertine

I have the following minimal document: \documentclass{scrbook} \usepackage{fontspec} %\setmainfont{Code2000} % works on texlive 2014 \setmainfont{Linux Libertine O} % does not work ...
2
votes
1answer
56 views

Bracket error in section heading with new version of XeLaTeX and fontspec

The following MWE compiles correctly with XeTeX version 3.1415926-2.5-0.9999.3 in TeX Live 2013 and fontspec version 2.3c: \documentclass{article} \usepackage{fontspec} \setmainfont{Linux ...
1
vote
3answers
126 views

Accented letters with IM FELL fonts

I am having an error compiling the following code with xelatex and lualatex: ** WARNING ** "seac" character deprecated in Type 2 charstring. ** ERROR ** Type2 Charstring Parser: Parsing charstring ...
6
votes
0answers
86 views

XeLaTeX: Set an alternative font in case it is not found

I am setting up the packages for a shared project with someone who's not familiar with LaTeX. I want to use some of our local fonts. I used XeLaTeX and it works. However, we'll also use a notebook ...
1
vote
1answer
81 views

Center, Scale, and Wrap Text atop an Image

Which LaTeX packages can I use to center, scale, and wrap text such that the following conditions are met: If the text isn't a wide as the container, scale the up text to fit. If the text is wider ...
6
votes
2answers
121 views

Fontspec creates left margin

I'm using standalone document class and trying to draw a TikZ picture. The picture have border which is the border of the page. I do it like this: \documentclass{standalone} \usepackage{tikz} ...
8
votes
0answers
140 views

xdvipdfmx parse error when using particular font with fontspec

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 ...
5
votes
1answer
231 views

Using LuaTeX, HSRM beamer theme, fontspec says DANTE font not found. .sty file has no reference to DANTE

I am attempting to modify the HSRM beamer theme found here. After switching from pdftex to LuaTex and purchasing the Flama fonts, I thought I would be ready to go. However, that seems not to be the ...
3
votes
1answer
56 views

CJK inside a math environment

I'm trying to display CJK characters as part of math formulae in XeLaTeX, and it's not working well. I've tried a number of options, and all have failed: Defining a \jp font command via fontspec and ...
2
votes
1answer
222 views

XeLaTeX & fontspec can not use Seravek's small caps

I am using XeLaTeX & fontspec in TexLive on OS X Yosemite. The problem is I could not use font Seravek's small caps. However, if I define a font family "Seravek ExtraLight" directly, small caps ...
3
votes
2answers
185 views

How to use standard TeX fonts in XeLaTeX

How do I use the inbuilt LaTeX standard fonts (in this case Times for roman, Helvetica for sans serif and Courier for mono) when using XeLaTeX and fontspec? I have tried: \documentclass[journal, ...
5
votes
1answer
203 views

problem with macro using \ifx

[Edit 1] originally titled "can't understand why this simple macro causes complex error" [original post] I've written a book, and now I'm trying to produce the e-book using tex4ht. Adapting this ...
9
votes
1answer
255 views

Bleed correction for chapterthumbs in KOMA

I want to send a dissertation document with chapterthumbs to the printing house. The document is written in KOMA-Script and a good solution for bleed correction is found here. Since chapterthumbs are ...
3
votes
0answers
82 views

How can I get fontspec to use non-system font variants intelligently?

I want to include fonts in a /include/fonts/ directory alongside my foo.tex doc, so I don't have to install the fonts to the system. I can successfully use this to get that working: \setmainfont[ ...
4
votes
0answers
227 views

LuaLaTeX, fontspec, .ttc fonts and kerning (Optima on Mac OS)

I'm probably missing something obvious. I'm using MacTeX 2014. I want to use the font Optima that ships with the Mac OS (10.8.5) -- it is a .ttc font. If I typeset the following TeX file I get no ...
3
votes
1answer
111 views

utopia mathdesign and biber incompatibility

I have a problem using utopia fonts with xltxtra and biber when using non-ascii characters. The problem disappears if using computer-modern (off-shelf LaTeX) or bibtex instead of biber. Here's an ...
7
votes
1answer
109 views

Is using \addfontfeatures (much?) less efficient than defining a \newfontface?

Consider the following file: \documentclass{article} \usepackage{fontspec} \setmainfont[Numbers={Lining,Proportional},Ligatures=Common]{EB Garamond} ...
1
vote
1answer
267 views

\LaTeX macro: “Font shape `OT1/LatinModernSans(0)/m/n' undefined” [closed]

I tried compiling the following example using LuaLaTeX (LuaTeX v0.76/TeX Live 2013): \documentclass{beamer} \usepackage{fontspec} \usepackage[ngerman]{babel} \defaultfontfeatures{Ligatures=TeX} ...
0
votes
0answers
93 views

Problem with XeLaTeX and Devanagari font

I am writing a document in Devanagari. I am using Google's newly released font: http://www.google.com/get/noto/pkgs/NotoSansDevanagari-hinted.zip I used the following code sample to incorporate that ...
9
votes
1answer
124 views

fontspec changes the size of the letter boxes

fontspec changes the size of the letter boxes. Compare \documentclass{article} %\usepackage{fontspec} \begin{document} \Huge\fbox{S}\fbox{F} \end{document} with the same code but ...
5
votes
0answers
77 views

Eadui font and luatex [closed]

Eadui, based on the hand of an eleventh-century scribe, is freely available at the Open Font Library. I can use Eadui easily with xelatex, but lualatex produces a puzzling error. For example: ...
3
votes
1answer
107 views

Font Management Problem

I'm trying to re-create a title in Peter Wilsom's examples, ftp://ftp.dante.de/tex-archive/info/latex-samples/TitlePages/titlepages.pdf I downloaded the free font Bergamo and also bought the font Mona ...
2
votes
1answer
100 views

Problem with arabxetex transliteration

I have a problem with Arabic transliteration in arabxetex. When I run the code below I get the transliteration as shown in the attached image. The transliteration is just the italicized version of ...
13
votes
3answers
556 views

Best practice - how can I get my whole document (including math) to only use font X with LuaLaTeX and fontspec?

Considering one uses math symbols in a document, it is desirable to have them all displayed in the serif font one is using for text, or in basically any font x one would like to use for this sort of ...