Questions tagged [fontspec]
{fontspec} is a package for loading {opentype} fonts in XeLaTeX and LuaLaTeX.
2,448 questions
1 vote
1 answer
38 views
Making micro symbol work with my font using lualatex
I am having a bit of trouble trying to get the micro (\mu) symbol work for siunitx in lualatex using my font of choice (Atkinson Hyperlegible). Here is the MWE: % !TEX TS-program = lualatex % !TEX ...
3 votes
1 answer
73 views
\setmainfont (missing characters) vs \babelfont (not all settings available)
(Disclaimer: if I am not mistaken, this question incidentally concerns transliteration of Sanskrit, but I know nothing about that language.) The following MCE: \documentclass{article} \usepackage{...
4 votes
4 answers
253 views
\addfontfeatures{FakeBold=...} no effect in lualatex?
I am migrating some existing documents in pdflatex that essentially just use Computer Modern Sans to lualatex, which seems generally to work fine without much ado. But there is one pdflatex feature I ...
0 votes
0 answers
66 views
How can I adjust the font size ratio of superscripts and subscripts relative to the main font in mathematical formulas
How can I adjust the font size ratio of superscripts and subscripts relative to the main font in mathematical formulas, as well as their vertical position relative to the main text? When using unicode-...
4 votes
1 answer
781 views
Fell in love with a Microsoft font ("Chalkboard"). How can I use it in LaTeX? [closed]
https://en.wikipedia.org/wiki/Chalkboard_%28typeface%29 I found a font called Chalkboard and felt it was very suitable for a presentation. Is there some way to make use of this font (or something very ...
7 votes
2 answers
203 views
With the Roboto Flex font, siunitx \micro not displayed with an upright mu
The following MCE displays \unit{\micro\gram} as expected, that is with the (upright mu) Micro Sign character: \documentclass{article} \usepackage{fontspec} \usepackage{siunitx} \setmainfont{TeX Gyre ...
1 vote
0 answers
84 views
Swash for Tex Gyre Termes
I am working with XeLaTeX in TexLive 2023 on Windows 10. I am using the Tex Gyre Termes font (\usepackage{termes-otf}), which I understand is an extension of the Nimbus Roman No9 font. I have noticed ...
0 votes
0 answers
73 views
fallback fonts in LuaLaTeX
I need to add fallback fonts in LuaLaTeX (2023). For example, I want to use the "Source Han" font for Chinese characters if they are not available in the main font, and apply the same ...
3 votes
0 answers
88 views
Combine fonts into a virtual mathfont with lualatex/fontspec/unicode-math
For now, when working with lualatex/fontspec/unicode-math, my goto solution when mixing math versions (roman/sans) with ranges (for example replacing the caligraphy letters; not that it is not ...
3 votes
1 answer
147 views
Newly installed TeXstudio not finding Gentium Plus font
I just installed TeX Live and TeXstudio on my new desktop, but I can't compile the same TeX files that I can do on my laptop with (I believe) the same setup. I'm using \usepackage{fontspec} \...
6 votes
1 answer
115 views
Strange behaviour when loading EB Garamond with \babelfont
Trying to set up a document in classical latin using babel (XeLaTeX via MiKTeX). \documentclass{article} \usepackage[no-math]{fontspec} \usepackage[classicallatin]{babel} \babelprovide[casing=nouv]{...
7 votes
1 answer
172 views
diacritics based on single-storey a
I want to use Fira Sans with a single-storey a in a german text. Unfortunately I can’t find any information on how to get the german umlaut ä or other diacritics based on the single-storey a. \...
2 votes
1 answer
131 views
How to know and choose what RawFeature symbol like for ttf/otf font?
This post maybe a little general for choosing RawFeature symbol. The key point of this post: I want to know/see what symbol-like each "RawFeature" provides. In “LaTeX Companion”, for ...
5 votes
1 answer
87 views
Declare character variant and stylistic set from lualatex
In lualatex, it is possible to declare a feature that modifies kerning pairs, see for example this answer here. Is it also possible to declare character variants (cvXX features) and stylistic sets (...
8 votes
4 answers
526 views
Use AntykwaTorunska with unicode math
I wanted to add the AntykwaTorunska font as a math version to my document which uses unicode math. However, it seems that the corresponding otf file does not define a math table, meaning that this won'...