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

learn more… | top users | synonyms

13
votes
0answers
558 views

Complex ligatures in Devanāgarī

Ligatures are known to the Western European languages, however it isn't that common to spot vertical or complex form of them. As an exercise in typography I tried to get some complex ligatures in ...
8
votes
0answers
81 views

Opentype fonts: A few wrong glyphs with current lualatex

As a happy user of TeXLive 2015, I came across a strange problem. With the current version (kept up-to-date with tlmgr), strange glyph substitutions occur with CronosPro and MinionPro, but not with ...
7
votes
0answers
166 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
0answers
85 views

lualatex with package unicode-math does not work after texlive update

After the recent TeX Live update (tlmgr update --all), LuaLaTeX together with unicode-math does not work any more! Here is a minimal example: \documentclass{article} \usepackage{unicode-math} ...
6
votes
0answers
219 views

Combining diacritical mark is misaligned with luatex, but not with xetex

Consider the following code: \documentclass{article} \usepackage{fontspec} \setmainfont[BoldItalicFont = {* Semibold Italic}]{Linux Libertine O} \begin{document} \textit{\textbf{V\char"0306}} ...
6
votes
0answers
423 views

TeX Gyre fonts in XeLaTeX and LuaLaTeX: call by name or file name?

Is there any downside of using file names with \setmainfont, except for the fact that it takes more typing? I ask because I am experiencing problems with using names for TeX Gyre fonts on my Linux ...
6
votes
0answers
358 views

unicode-math and oldstyle figures

I'm trying to find a good way to archive the following using fontspec, unicode-math and lualatex: almost global oldstyle figures including inline math lining numbers for displayed equations, e.g. ...
6
votes
0answers
596 views

using a Postscript Type 1 font with fontspec and LuaLaTex on MacOSX

I am having trouble using SabonLT which is a Postscript Type 1 Outline font. I have the font installed as a system font (as described here) rather than a local font. I'm running LuaLaTex on Mac OSX. ...
5
votes
0answers
243 views

Optical weight selection with fontspec

I'm using LuaTeX version 0.76 and fontspec version 2.3c. I have the full family of MinionPro, but fontspec seems not to choose the appropriate optical weight. While it works for the roman font of ...
5
votes
0answers
251 views

Using specific font for the equation in XeLaTex

I want to use a specific font for a specific formula in XeLaTeX. Usually, the math font can be set up using mathspec package. \usepackage{mathspec} ...
4
votes
0answers
73 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 ...
4
votes
0answers
230 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 ...
4
votes
0answers
53 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 ...
4
votes
0answers
77 views

hairspace + hyphen as hyphen char with Fontspec

I would like to use for hyphen character the combination: hairspace + hyphen, in order to clearly but discreetly distinguish hyphenation from division. The traditionnal way (using another character, ...
4
votes
0answers
160 views

unicode-math + siunitx + lualatex = long compile times. Why?

The following MWE, compiled under several situations (with appropriate lines removed) gives the following timings (with all output files removed between runs), as timed by Measure-Command on Windows 7 ...
4
votes
0answers
116 views

How to load baskervaldx font in xelatex

I'm trying to use the baskervaldx font in XeLaTeX; however it doesn't kern properly. With LaTeX it works as supposed. What is the right way to load the Baskervaldx font? With LaTeX, default install ...
4
votes
0answers
209 views

letterspacing of mathpazo and Tex Gyre Pagella in LuaLaTeX

I am typesetting my phd thesis, and I was hoping to use Palatino as main font. For some of the headings I wanted to use a fancy TTF font, so I switched from pdfLaTeX to LuaLaTeX to compile my ...
4
votes
0answers
390 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 ...
4
votes
0answers
175 views

current font family using fontspec

I'm trying to emulate the behaviour of a [pdf]LaTeX package that provides commands \lstyle, \ostyle, \tstyle, and \pstyle to activate lining, oldstyle, tabular and proportional figures, respectively. ...
3
votes
0answers
37 views

Cochin and common ligatures with font spec

I'm using Cochin as main font in a XeLaTeX project, and having Cochin glyphs for common ligatures such a fi and fl, I would expect those ligatures to be used by the fontspec package—but that's not ...
3
votes
0answers
66 views

How can Bengali v.2 (bng2) be used to typeset Bengali with XeTeX?

This is a follow-up to this question about typesetting Bengali. As explained in both answers there, XeLaTeX can typeset Bengali given a suitable font using polyglossia and fontspec. For example, ...
3
votes
0answers
79 views

Strange problem with additional space when figure floats away

I am using fontspec, floatrow and subfig together. When a figure floats away an additional space is inserted at the place where the figure is in the text. In cases in which the line before the figure ...
3
votes
0answers
118 views

LuaLatex setup a different font for numbers and the rest

This question is a duplicate of this older question that strayed from the subject. I would like to make a presentation using latex class beamer, however I would like to use different fonts than the ...
3
votes
0answers
411 views

Tikz Externalize with LualateX - Fontspec?

There are several questions already posted about issues externalizing tikz with the Lualatex engine. However, most of these are dead ends with no correct answer. The reasons for externalizing are ...
3
votes
0answers
156 views

prevent combining characters if single characters are available

I am working a lot with characters such as: ā ū ī š ṣ ḫ ḥ ǧ ġ ṯ ṭ ẓ ḍ ḏ. There are (at least) two ways to typeset such characters either as a single character or as a combined character. ...
3
votes
0answers
224 views

XeLaTex: 'Font Shape undefined'

I'm trying to use custom fonts, but I can't get it to work. Compiling with XeLaTex \documentclass[a4paper]{article} \usepackage{fontspec} \usepackage[T1]{fontenc} ...
3
votes
0answers
145 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[ ...
3
votes
0answers
141 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 ...
3
votes
0answers
359 views

Ansi Encoding for Embedded Fonts in PDF Output

Rendering PDFs with identical fonts using InDesign versus using LuaLaTeX with fontspec in TeXworks, I have found differences in Acrobat Reader's descriptions of the embedded font types and encoding. ...
3
votes
0answers
106 views

Can I turn a variable width font into a fixed-width font?

I found a free ancient-typewriter font I'd like to use in a project, but the person who made it apparently traced some scanned outlines and poured them into a variable width truetype font. That is not ...
3
votes
0answers
400 views

fontspec: Configuring project-local opticals font

I absolute adore Adobe's Garamond Premier Pro (the full set of opticals). In normal circumstances, I can just use it with \setmainfont{Garamond Premier Pro} when I'm working on my desktop, or laptop. ...
3
votes
0answers
332 views

Skip \setsansfont if the font is not available

Is there a way to make \setsansfont conditional on the font being available, or to skip over that line if it gives an error? I'm using fontspec with XeLaTeX to use the TeX Gyre Heros font for a ...
3
votes
0answers
167 views

Side bearings of Minion Pro quotes

I'm using Minion Pro with XeLaTeX. However, quotes are much too tight. I know the MinionPro package, for use with LaTeX, has a loosequotes option which slightly increases the side bearings of the ...
2
votes
0answers
41 views

LuaLatex removes ligatures with LetterSpace

If I compile the following (M)WE with LuaLatex, all the possible ligatures are removed. This does not happen with the standard font or if I remove the \defaultfontfeatures{LetterSpace=1} or if I set ...
2
votes
0answers
56 views

Adding default font features to \sffamily

It seems I can't add any extra default font features with fontspec after the font is set e.g. with \setsansfont. Code: \documentclass[10pt,a4paper]{article} \usepackage{lipsum,fontspec,xcolor} %% ...
2
votes
0answers
75 views

Tex document not building in new computer (fontspec)

I have a resume written in Tex that was working just fine. I had to change my HD drive due to a problem. I installed Miktex 2.9 and TexMaker again and configured the packages to download and install ...
2
votes
0answers
58 views

ucharclasses misbehaves with Spacing Modifier Letters and Combining Diacritical Marks

The ucharclasses package makes it possible to automatically switch fonts (or do other useful things) based on the Unicode block of characters. However, it seems to be having trouble resetting the ...
2
votes
0answers
56 views

What do the various values of the Ligatures= option of fontspec do?

The fontspec package has a Ligatures option, usually encountered with the value Ligatures=TeX. This enables traditional TeX ligatures (or typing conventions) like mapping --- to an em dash. But what ...
2
votes
0answers
39 views

superscripts and footnotemarks break in nested \import with realscripts

I managed to produce strange interference between nested \import and superscripts, made accessible for LuaTeX by realscripts.sty. My document organisation depends on the comfortable, path-agnostic ...
2
votes
0answers
69 views

latex \fontsize{12}{18} equals to MS Word 12pt and its linespace 1.5?

I use \fontsize{12}{18} in latex for 12pt and its linespace 1.5 in MS Word. But I think not equals. Why? And what is correct option in \fontsize{?}{?} ?
2
votes
0answers
42 views

Linux Libertine does not show Cyrillic small caps (XeLaTeX)

I'm trying to output any non-latin (in this particular case Cyrillic) small caps with XeLaTex using the following source code: \documentclass{article} \usepackage{fontspec} \setmainfont[ ...
2
votes
0answers
65 views

LuaLaTeX changes font smoothing with polyglossia or fontspec (and math looks weird)

I’m using LuaLaTeX to typeset some mathematical documents in Polish. I use the lmodern font family, along with polyglossia and fontspec to get diacritical characters. However, whenever I add ...
2
votes
0answers
39 views

fontspec and background

XeLaTeX seems to calculate background positions different from pdflatex. I want to create a borderframe around a page using the background package. But unfortunately the result compiled with pdflatex ...
2
votes
0answers
45 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, ...
2
votes
0answers
61 views

Changing the Font of Variables in an Equation Using XeLaTeX

I am trying to digitalize a book(130pages) by retyping it all(copy is in a really bad shape to be scanned). I am attempting to use Helvetica Neue as the main font for all numbers and variables on all ...
2
votes
0answers
62 views

xetex cannot use font name instead of font file name even after “texlive-enable-fontconfig”

This article says xetex can only find fonts installed by texlive with its filename instead of font name, because xetex can only find fonts by font name in the system's font system. And here says with ...
2
votes
0answers
114 views

How does mktexmf find fonts on mac?

I installed a new font using Font Book on my mac. But when I try using fontspec, I get an error that says "font-not-found". It seems that the name that appears in the Font Book application is not ...
2
votes
0answers
320 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 ...
2
votes
0answers
157 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} ...
2
votes
0answers
232 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 ...