We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [fontspec]

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

170 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
27
votes
1answer
2k 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 ...
10
votes
0answers
779 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
118 views

Map all ASCII characters in document to Nemeth Braille

My goal is to type regular LaTeX input, and remap the fonts to produce Nemeth Braille. One answer to the question LaTeX to Braille was to download the font http://www.searchfreefonts.com/free/braille....
7
votes
0answers
599 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
264 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
331 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
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
201 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
156 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
204 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
637 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....
5
votes
0answers
713 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
209 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
99 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
202 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
1answer
157 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 ...
4
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 ...
4
votes
0answers
252 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
756 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
142 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
173 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
796 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
354 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
0answers
80 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
131 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
169 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
1answer
190 views

English and Japanese number problem

I am writing a document that contains several languages, including English and Japanese (polyglossia, xeLatex, Windows 7, TeXLive, TeXWorks). For English, I prefer the classic Hoefler Text font, and ...
3
votes
0answers
298 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
134 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
171 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
432 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
808 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
1answer
1k 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} \usepackage[usenames,dvipsnames]{...
3
votes
0answers
204 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
852 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
262 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
0answers
48 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
158 views

Bangla breaks apart with lualatex!

I switched to lualatex for coloring part of Arabic words easily with arabluatex and xcolor. With xelatex I'd no problem with Bangla. Here's the latex script: \documentclass[12pt]{report} \usepackage{...
2
votes
0answers
194 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
57 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
128 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
60 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
54 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
53 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
72 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 ...
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
228 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
273 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/...
2
votes
0answers
199 views

lualatex (with fontspec) finds fonts only by font file name

I cannot get lualatex (MacTeX2017, updated this morning) to use font names. It seems only to want to use font file names. % !TEX encoding = UTF-8 Unicode % !TEX TS-program = LuaLaTeX \documentclass{...