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

learn more… | top users | synonyms

4
votes
1answer
31 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
70 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
79 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
39 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
50 views

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

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
61 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
61 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
28 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
64 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 }. ...
0
votes
0answers
52 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 ...
2
votes
1answer
59 views

XeLaTeX - Bottleneck at eu1enc.def

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
93 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
95 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
114 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
246 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
1answer
109 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
68 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
36 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
41 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
46 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 ...
3
votes
0answers
46 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
52 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
111 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} ...
5
votes
0answers
76 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
94 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
39 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
110 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
124 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
135 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
211 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
65 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
147 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
91 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
83 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
149 views

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

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
63 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
93 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
64 views

Eadui font and luatex

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
62 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
59 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
410 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
47 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
150 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
147 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
102 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
113 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 ...
5
votes
1answer
124 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
121 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
110 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
90 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 ...