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

learn more… | top users | synonyms

2
votes
2answers
159 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
112 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
45 views

Copy and paste on iPad selects whole sentences after loading libertine

I have the following minimal document: \documentclass{scrbook} \usepackage{fontspec} \setmainfont{LinLibertine_R.otf} \begin{document} This is some arbitrary text. I want it to be ...
2
votes
1answer
48 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
2answers
71 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 ...
5
votes
0answers
65 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
65 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 ...
5
votes
2answers
114 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} ...
7
votes
0answers
104 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
150 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
46 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
165 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
148 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
139 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 ...
8
votes
1answer
227 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
67 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
183 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
99 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
88 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
213 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
72 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
110 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
70 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
79 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
74 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
449 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 ...
3
votes
0answers
65 views

A compatibility problem between the fontspec package and asymptote

Has anyone run across a compatibility issue between the fontspec package and asymptote? In the MWE below, commenting out the \usepackage{fontspec} allows for proper compilation and embedding of the ...
2
votes
1answer
177 views

An Error with XeLaTeX and fontspec [closed]

So I get the following error with some of my fonts and not the others: xdvipdfmx:fatal: Type2 Charstring Parser: Parsing charstring failed: (status=-1, stack=5) Output file removed. Is there a way ...
4
votes
1answer
178 views

How to simulate a bold font if I only have a Regular Height TTF file?

How can I simulate a bold font if I only have a Regular Height TTF file? I'm trying to use Ibarra Real font, but I have only Italic and Regular font files. Using xelatex and a preamble like: ...
3
votes
1answer
173 views

How to install fontspec on linux?

I tried installing the fontspec package with the help of the instructions provided here: http://www.tug.org/fonts/fontinstall.html where as the font map file as specified in the 4th step didnt seem to ...
1
vote
1answer
156 views

Italic greek letters, upright operators and working partial sign with unicode-math and TeX Gyre Pagella

I need upright math operators such as \sin, \tan etc., italic uppercase greek letters and a working \partial operator. With the code below I was able to get two out of three, but I was told that it's ...
7
votes
1answer
137 views

What is happening to the quotes?

Here is my MWE: %!TEX TS-program = xelatex \documentclass[a4paper]{report} \usepackage{xltxtra} \defaultfontfeatures{Mapping=tex-text} \setromanfont{Times New Roman} \begin{document} ``abcde'' ...
3
votes
1answer
166 views

Arch Linux: fontspec does not find system fonts

I am running an Arch Linux / Windows 7 dual boot laptop. The windows partition is mounted under arch and i made the windows fonts usable with ln -s /windows/Windows/fonts/ ...
4
votes
1answer
150 views

compiled pdf doesn't show utf-8 character

If i compile a document with lualatex that contains specific utf-8 characters most pdf-viewers (okular, evince, xpdf) don't show them. For example if i compile the following example i just see a bank ...
4
votes
0answers
96 views

How to typeset a letter or grapheme specimen with alternates?

I want to print a font specimen for certain letters, each of which should cover a complete A4 page. The Open Type font contains many letters with several glyphs, which are accessible as character ...
6
votes
3answers
173 views

Why fontspec breaks extarrows package

Why \documentclass{book} \usepackage{extarrows} \usepackage{fontspec} \setmainfont{Times New Roman} \begin{document} $$Q\xLongrightarrow{\text{Maximum}} P$$ \end{document} produces this output: ...
2
votes
0answers
164 views

Small caps font is not enabled with fontspec and MinionPro

I can't make lualatex generate small caps font when I use MinionPro as my main font: \documentclass[a4paper,justified,nobib,notoc]{tufte-book} \usepackage{fontspec} \title{ABC} \author{Arthur ...
5
votes
1answer
141 views

Is there a simple way to manually change font with font size in XeTeX?

Many typfaces come with different fonts for different font sizes. For example Surveyor Pro has a Book style for main text and a Display style for headings (or in general, large text). Another example ...
3
votes
2answers
223 views

\textlf{} for light font weight – how common?

In the allrunes.sty documentation (which uses Metafont), I’ve recently seen the \textlf macro for the first time. It selects a light font and therefore accompanies the frequent command \textbf and its ...
7
votes
2answers
135 views

Problem with babel and fontspec

I've just had a problem on using babel with lualatex (or xelatex as well) and fontspec in the context of latin and cyrillic alphabets. Here is a minimal example: \documentclass[11pt]{article} ...
5
votes
1answer
149 views

ucharclasses package does not work with TeX Live 2014's fontspec

With full TeX Live 2014 ucharclasses package no longer works with fontspec. It works with BasicTeX 2014 because BasicTeX 2014 uses old version of font spec from 2013. Here is an example document ...
2
votes
0answers
78 views

fontspec related font setting compiles on Linux, but not on Windows

I have this portion of code: \documentclass{scrartcl} \usepackage{amsmath, fontspec} \usepackage[math-style=TeX, bold-style=TeX]{unicode-math} \setmathfont[StylisticSet=0]{xits-math.otf} ...
3
votes
0answers
134 views

Error using fontspec v2.4a and unicode-math [closed]

Compiling the following example with XeLaTeX or LuaLaTeX \documentclass[11pt]{article} \usepackage{unicode-math} \setmathfont{latinmodern-math.otf} \begin{document} \small \begin{tabular}{c} Foo ...
1
vote
1answer
151 views

Problem working fontspec, babel and datetime with cyrillic

I have discovered that fontspec with russian babel settings doesn't work with datetime package. I tried to compile such code: \documentclass[a4paper,11pt]{article} \usepackage[T2A]{fontenc} ...
0
votes
0answers
25 views

Error: Font \l_tmpa_font has only 8 fontdimen parameters [duplicate]

I get the above error when I try to use my main font for the math letters. If I leave out the \sqrt[3]{2} bit, it works but gives a load of complaints about not having the OpenType feature ...
4
votes
2answers
87 views

Disabling ligatures in xelatex like rmligs

Ligatures set by Latex are often wrong in German (i.e. between combined words like "Auflaufform"). To set these words correct I often use rmligs which is a great tool to disable ligatures when the use ...
2
votes
0answers
93 views

Error when using luaotfload-tool

i am trying to install Myriad Pro at my Ubuntu PC to use it with Lualatex and fontspec. The font is correctly installed and can be used in LibreOffice. fc-list | grep -i myriad -> Myriad ...
1
vote
1answer
35 views

Compilation error with fontspec and BoldFeatures [closed]

Using fontspec 2.4, why won't the following example compile? \documentclass{article} \usepackage{fontspec} % version 2.4 \setmainfont[BoldFeatures={Color=AA0000}]{Arial} \begin{document} This is ...
2
votes
0answers
67 views

Incompatibility of scrbook and fontspec in TeX-Live 2013

Since updating to TeX-Live 2013 I am facing the following error: Compiling the following file by XeLaTeX ... \documentclass{scrbook} \usepackage{fontspec} \begin{document} bla \end{document} ... ...
7
votes
1answer
250 views

Fontspec 2.4 and Scale=MatchLowercase causes error

I just updated to TeXLive 2014 and when compiling the following code using either XeLaTeX or LuaLaTeX I get an error: \documentclass{article} \usepackage{fontspec} \setsansfont{Latin Modern ...