Questions tagged [fontspec]

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

181 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11
votes
0answers
893 views

TeX (LuaTeX, XeTeX, fontspec) support for OpenType variable fonts

Is anyone working on implementing support for the new OpenType variable fonts in any TeX/LaTeX implementation like XeTeX or LuaTeX? Will fontspec support accessing the new tables?
7
votes
0answers
634 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
128 views

How to set font for emoji

As discussed in How to use Noto Color Emoji with lualatex, in the dev version of lualatex one can use color emoji directly: \documentclass{article} \usepackage{fontspec} \setmainfont{Apple Color ...
6
votes
0answers
280 views

Alegreya font kerning problems

I have a question, whether there is some possibility to adjust kerning around some specific symbols without caring what symbols will be written next. Also, could I possibly adjust kerning only for ...
6
votes
0answers
347 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 ...
6
votes
0answers
677 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 document....
6
votes
0answers
1k 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
335 views

Localized glyphs (locl) have unicode value U+FFFD (�)

Originally this seemed to me like a font issue, as there was no equivalent problem with other fonts, as indicated by this good MWE: Copied text from good PDF EBGaramond12-Italic.otf: [ - ] бгдпт [...
5
votes
0answers
163 views

Fontspec/unicode-math mixing fonts: math accents

In a project we're using a commercial text font. The project is not a math related project but has some math in it here and there. The text font of course does not have a direct math font. But the ...
5
votes
0answers
218 views

Problem with lualatex and feature files

I want to use a feature file to change the positioning of a single letter, but it does not seem to work. Here is an example: \documentclass{article} \usepackage{fontspec} \RequirePackage{...
5
votes
0answers
2k 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 ...
5
votes
0answers
736 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. ....
5
votes
0answers
212 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 ‘...
4
votes
0answers
57 views

Fontspec shifts some diacritics marks when LetterSpacing

The fontspec feature LetterSpacing does not give the same result with a letter typed in ASCII form (e.g. \^E ) that when it is typed in UTF-8 form (e.g. Ê). The log file of the joined ECM shows that ...
4
votes
0answers
106 views

Source Han: Em dashes (U+2014) fail to compose as U+2E3A and U+2E3B

Background A 破折号 (pòzhéhào, Chinese em dash) is a punctuation mark used in Chinese typesetting. It has very similar usage to the Western em dash. The Chinese em dash has two ...
4
votes
0answers
207 views

Replacing missing characters in ASCII/Latin block

I'm working with a display font that is missing many common characters, including parenthesis, em-dash, and true ``directional quotes''. I'd like a straightfoward way to replace these with matching ...
4
votes
0answers
263 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
796 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. ...
4
votes
0answers
161 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
187 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
815 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 ...
4
votes
0answers
831 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
365 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 ...
3
votes
1answer
76 views

How to use inputenc, fontspec, fontenc, mathdesign and babel to properly render cyrillics and UTF-8 characters?

MWE: % main.tex \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[urw-garamond]{mathdesign} % \usepackage{fontenc} T1,T2A? % \usepackage{fontspec} ? \usepackage[russian,english]{babel} ...
3
votes
0answers
117 views

Using .fontspec file with multiple defaultfontfeatures declarations

I am trying to create a fontspec definition file for Minion3 which includes all the optical sizes. I have it working when I define every thing in one single defaultfontfeatures definition: \...
3
votes
0answers
178 views

Change main font without affecting the math environment

I changed my document font from the default one to Akkurat with setmainfont from fontspec: \usepackage[no-math]{fontspec} % ... \setmainfont{}[ Path = fonts/AkkuratPro/, UprightFont = ...
3
votes
0answers
226 views

fontspec can not find the font file to work on Mac OS

I am using texlive2018 and trying to make a simple tex file using xeCJK to work on Mac OS, but the fontspec can not find the font file even I am using a western character set font file. The test.tex ...
3
votes
0answers
130 views

XeLaTeX exhibiting strange behaviour surrounding new pages and text shapes

I'm working on a XeLaTeX document using memoir with custom fonts. I have been experiencing strange behavior where, upon insertion of a page break (manually or by TeX), an undefined text shape is ...
3
votes
0answers
125 views

Wrong character width when typesetting url with hyperref and a FakeStretch-ed font

I just found out that hyperref does not really take the FakeStretch feature of fontspec into account : EDIT This is actually a problem with the url package, which is used by hyperref to typeset urls. ...
3
votes
0answers
314 views

fontspec: only-xetex-feature warning HyphenChar

Since the latest update of fontspec to version 2.6d (2017/08/14) I receive several warnings. Have a look at the MWE: \documentclass{minimal} \usepackage{fontspec} \setmonofont{TeX Gyre Cursor} \...
3
votes
0answers
147 views

fontspec: Small Caps feature wrong ligatures when using Renderer=Basic

If I use SmallCapsFeatures={Renderer=Basic} as an option when setting the main font of the document, I get an obviously wrong ligature in the small caps shape. In the MWE the letters T and h are not ...
3
votes
0answers
199 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
96 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
463 views

Replace missing character (minus) in text font for use in siunitx with fontspec

I'm forced to use a commercial (Univers) font in my presentations, which obviously does not contain a dedicated \minus sign, which is called by siunitx. (Though I'm not sure if it is \minus or ...
3
votes
0answers
209 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
884 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
266 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. ...
2
votes
1answer
185 views

Compile Failures After Fontspec Update

I updated packages (Windows 10 / MikTex 2.9), which included a January 26, 2020 update to fontspec. On my first compile (LuaTex) after the update, a file that compiled fine immediately before the ...
2
votes
0answers
81 views

lualatex / babel / fontspec: **Package babel Warning: The following fonts are not babel standard families** and other warnings

Aim and Problem I want to generate an English document that contains some single (simplified) Chinese characters. I also want to use the famous Noto fonts (from Google), see https://www.google.com/...
2
votes
0answers
55 views

How can I use Garamond Premier Pro's own glyphs for e.g. square root in mathmode (using lualatex)?

I'm using lualatex (TeXlive 2019) and the font Garamond Premier Pro, which (shown in the screenshot, taken using fontforge) provides special glyphs for the following mathematical symbols: n-array ...
2
votes
0answers
276 views

TeXLive 2019 and Libertine: OpenType feature warnings

Since I upgraded to TL2019, I get a lot of opentype feature warnings. For example for \documentclass{book} \usepackage{libertine,fontspec} \begin{document} ads \end{document} I get OpenType ...
2
votes
0answers
124 views

Set Path for *.fontspec file

According to Section 2.3 of the fontspec documentation it is possible to select a font by creating a file like ⟨fontname⟩.fontspec. Does this file always has to be in the root of the document or could ...
2
votes
0answers
59 views

Fake small caps in starred chapter head

I would like to use this solution by @egreg to type in fake small caps. Since I have to use some specific font size for the capital/lower letters, I used some \fontsize{}{}\selectfont in the command ...
2
votes
0answers
139 views

realscripts/fontspec update vs. some Opentype fonts

I have a file that was running smoothly a few weeks ago and is now stopping with the message: Argument of \__fontspec_strip_leading_sign:Nw has an extra } Using most system fonts, or Amiri, ...
2
votes
0answers
68 views

\addfontfeature resets \prehyphenchar and \posthyphenchar

This question is similar, but applies only to XETEX. In LuaTEX, \prehyphenchar and \posthyphenchar supposedly affect the current language: All languages start out with \prehyphenchar=`\-, \...
2
votes
0answers
55 views

\textit generates different shape from primary italic font

It's said that \textit will select an italic font, instead of doing some geographical change to the font. This means it will generate exactly the same thing as using italic font directly. However, I ...
2
votes
0answers
55 views

Accented characters in a hyperlink, and problems with opening a new window

With this MWE, I have different results depending on the pdfviewer on linux box : Evince dosen't find the link because of the é, but opens a new window on a non-accented link Okular finds the link ...
2
votes
0answers
73 views

Wrong characters highlighted in .pdf

I'm trying to create a resume using latex. But when I highlight some text, the wrong characters are parsed/selected in various different pdf readers (adbobe, chrome, firefox, etc.) Here is a picture ...
2
votes
0answers
306 views

Font shapes `TU/zpltlf/m/n' `TU/qhv/m/n' undefined

Compiling this file with xelatex I see the following warnings: LaTeX Font Warning: Font shape `TU/zpltlf/m/n' undefined (Font) using `TU/lmr/m/n' instead on input line 20. LaTeX Font ...
2
votes
1answer
300 views

Errors with libttf (was Font metric data not found or bad)

I'm having trouble loading some right-to-left fonts in a document I'm working on. I chose one at random — Avestan. MWE requires that you download https://noto-website-2.storage.googleapis.com/pkgs/...