Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fontspec]

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

0
votes
0answers
36 views

Disabling specific ligatures fontspec

I made changes to something in an (English language) .tex file and discovered all my ss now exported as ß. After some debugging in my version control, there was no clear culprit to undo (maybe a font ...
5
votes
2answers
71 views

Apostrophe height in small caps with a special font

Using lualatex and fontspec with a special Garamond font. The font I use has two versions of the apostrophe: a normal high and a low small caps one. The problem occurs using small caps feature, ...
0
votes
0answers
29 views

Fonts FontAwesome and Fira not found after fresh installation of MacTeX

I try to build the examples of the limecv package after a fresh installation of MacTeX 2018 under macOS Mojave. The package requires the fonts FontAwesome and Fira which are both installed on my ...
4
votes
2answers
206 views

Coloring maths inside a tcolorbox

My TeX level isn't the greatest, I am trying hard to improve but I am always struggling. I would like to change the color of text inside a tcolorbox and that this color formatting survives a ...
0
votes
1answer
33 views

Adjusting font size

Currently using a template from my university that uses this to define font: \def\titlefont{\rmfamily} AND \setsansfont[ Path = fonts/, Extension = .ttf, BoldFont = *-Bold, ...
0
votes
2answers
26 views

IEEEtran: Getting fonts “right” with lualatex

I know that IEEEtran is basically pdflatex only. However, I would prefer using lualatex but it gives me a couple of font warnings for this snippet: \documentclass[conference]{IEEEtran} %\usepackage[...
0
votes
0answers
18 views

fontspec won't load font when using extsizes

I'm having trouble using extsizes to increase the font size options for a font loaded with fontspec. My example document: \documentclass[12pt]{article} \usepackage{fontspec} \setmainfont{Chaparral ...
1
vote
1answer
53 views

`Package fontspec Warning: Font XXX does not contain requested Script “CJK”`, but visually it does

I have below warning in LuaLaTeX/ltjsarticle project: Package fontspec Warning: Font "fonts/HGS_Mincho/HGRMB.ttc" does not contain requested Script "CJK". I dot't know about Chinese and Korean, but ...
1
vote
1answer
26 views

How I can resolve `Font shape `xxx/it' undefined` warning for CJK in LuaLaTeX?

Below CJK-contains code compiles without errors however with warnings. \documentclass[a4paper, twoside]{ltjsarticle} \usepackage{luatexja-fontspec} \usepackage[abspath]{currfile} \setmainjfont[ ...
3
votes
1answer
55 views

How to set a font everywhere (including math mode) in XeLaTeX?

My requirements are: Use Calibri as the main font. This is easy with XeLaTeX. Use Calibri as the math font. Also quite easy using e.g. mathspec. But this takes care only of letters and numbers. Use ...
0
votes
0answers
36 views

fontspec package conflicts with \textbf and \textit and \textsc

I have used fontspec package along with different packages to use some diacs such as ʾ ı ā ū, but when I use \textit or textbf, they do not function. When I deactivate the fontspec package, everything ...
8
votes
2answers
359 views

Unable to supress ligatures in headings which are set in Caps

I am aware that similar questions have been asked a few times. However, none of the answers solved my problem. This Answer says that it is a bug in luaotfload. But I'm already using a newer version (2....
3
votes
1answer
36 views

Fontspec:addfontfeature LetterSpace operation

I need to use letter-spacing on words inside paragraphs. I made some experiments with fontspec and the LetterSpace feature. While the rendering seems to be correct, I observed that on some ...
3
votes
1answer
132 views

Fontspec and Microsoft Store fonts on Windows 10

As of April 2018, Windows 10 now installs some fonts through the Microsoft Store or Microsoft Office. These fonts are not installed in the usual font folder C:\Windows\Fonts, but instead in protected ...
3
votes
1answer
39 views

Glyph alternation issues with Junicode

I've got an issue with a specific glyph alternation in Junicode---namely, the italic k has a particular variant before i that I find not particularly attractive. You can see in the image here how it's ...
1
vote
1answer
22 views

Reledmac compiling with empty footnotes due to \numberlinefalse command

I have been working on this project for at least 4 years; I left it alone for maybe the past 2 years, and when I tried to compile it again after updating all my latex packages, the footnotes in ...
2
votes
1answer
61 views

Fontspec isn't changing digits in math mode

I had been using the following in my preamble: \documentclass{article}[12pt] \usepackage[lite,subscriptcorrection,zswash,slantedGreek,nofontinfo]{mtpro2} \usepackage{fontspec} \setmainfont[Ligatures={...
1
vote
1answer
27 views

Changing Typeface of Part

How do you change the typeface used for the part environment to an Opentype font? (In the MWE below, I've used a TrueType font, but the method should be the same). It appears the standard titlesec ...
0
votes
0answers
47 views

Polyglossia - Italic in Hebrew

I am new to LaTeX and I just strated to use Polyglossia to write Hebrew documents. When I try to write text in italic, it just produces the same text style. For example \documentclass{article} \...
10
votes
1answer
122 views

What is the least resource intensive way to generate the luatex font cache for a new font?

When a font is first used with lualatex, luaotfload does some magic to produce font cache files. For large fonts (e.g., Noto Sans CJK) this can take a lot of time and a lot of memory. I have an old ...
1
vote
0answers
56 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 ...
1
vote
0answers
96 views

MikTex issue using ClearSans with XeLatex [closed]

I am running into some trouble trying to compile a document using the ClearSans font with XeLaTeX. I am running an up-to-date copy of MikTex, all packages have been updated yesterday. The following is ...
0
votes
1answer
41 views

Use text font for punctuations in xelatex with unicode-math

Suppose I have the following declarations in the preamble \usepackage[utf8]{inputenc} \usepackage{unicode-math} \setmathfont{My Best Math Font} \setmainfont{My Best Font} and then some texts like ...
2
votes
1answer
45 views

Using fdsymbol and fontspec

I'd like to use the fdsymbol package together with the fedra serif b Opentype font. I'm having some problems with the following code \documentclass{article} \usepackage{fdsymbol} \usepackage{fontspec}...
6
votes
4answers
127 views

Avoid fontspec warning with babel

I have this example \documentclass[hyperref=unicode]{beamer} \usepackage[english,nil,bidi=basic-r]{babel} \babelprovide[import=ar-DZ, main]{arabic} \babelfont{rm}{Amiri} \babelfont{sf}{Amiri} \...
0
votes
0answers
28 views

Correspondence between \setsansfont arguments and system font names

If one were to download and install a font called HelveticaNeueLTStd-It.otf on a W10 system with MikTeX (compiling with XeLaTeX), do we expect that the call \setsansfont[ Ligatures=TeX, ...
5
votes
3answers
166 views

fontspec breaks capital greek letters in DeclareMathOperator

Using fontspec together with amsmath breaks the use of capital greek letters in \DeclareMathOperator. Instead, the greek letter just is omitted. Here is a minimal working example: %! TEX program = ...
1
vote
0answers
84 views

Mixing fonts and microtype settings

I am defining fall backs for missing glyphs in a font and I am partly building on @egreg's answer to this question. Here's a MWE (never mind that the actual replacement defined here makes little ...
5
votes
2answers
57 views

Greek letters wiith continuing circumflex

I've noticed that LuaTeX seems to incorrectly render continuing characters (like a circumflex, U+0302) when they follow Greek letters. I'm particularly interested in getting this to work with a ...
2
votes
1answer
45 views

Language settings (fancyref) with fontspec and polyglossia

I have problems getting fancyref to properly work for German together with the fontspec/polyglossia set-up. This is the bare set-up without any language settings: \documentclass{scrartcl} \...
1
vote
1answer
51 views

fontspec + amsmath - problem with kerning in math-mode

I have a file that loads a Times-like font and then a package that use the font in math-mode. Everything works fine under pdflatex including proper kerning of \operatorname{} % To be processed with ...
4
votes
1answer
60 views

Libertinus font on ubuntu, installed version vs. github version

I'm using the libertinus font family with the latest version coming from github. However, the font is also installed on my system, but I stopped using this version since there was a problem with the ...
1
vote
0answers
87 views

New error with Charis SIL Font in LuaLaTeX

New updates in TeX Live may have some issues. Now I have this new error with the Charis SIL font compiling with LuaLaTeX. If I change the font (say Gentium Plus) the error is gone. LaTeX3 Error: ...
3
votes
2answers
144 views

Caron Accent \v{a} doesn't render without \usepackage{xeCJK}

I am encountering an odd problem. I want to create composite characters such as ǎ using the newunicodechar package. However, it only yields a result in combination with the xeCJK package. This code ...
3
votes
1answer
64 views

Operator font in beamer/metropolis

When using the metropolis theme for beamer, I get text and math in Fira Sans, except for math operators. I compile the following MWE using LuaTeX. \documentclass{beamer} \usetheme{metropolis} \...
3
votes
2answers
138 views

fontspec no-math option changes the math bold alphabet

I have a setup that works well with pdflatex and that I would like to carry it over to xelatex or lualatex, but fontspec seems to be changing the math-bold alphabet -- even if called with the [no-math]...
1
vote
1answer
110 views

microtype: \texls has no effect

I use microtype's \textls in combination with fontspec to change the tracking of text, and until recently, this worked as it should. Recently, it seems to have stopped to work with fonts other than ...
2
votes
1answer
45 views

Endless compilations when SourceCodePro is loaded, target PDF absent but aux file present

For some time now I witnessed latexmk compiling my documents 5 times in a row. I thought that was because I was doing very complicated things with beamer. But consider the following code : \...
1
vote
1answer
179 views

fontspec fails after MikTeX Update on Windows 10 x64

I have just updated my MikTeX installation to 2.9.6942 and Tex Studio to 2.12.14. I'm running on Windows 10 64-bit. The following code is in just about everything I write in LaTeX and it now breaks \...
3
votes
2answers
26 views

Properly setting mathrel on negated symbol with \NewNegationCommand

The default definition of \not\models is not satisfying regarding spacing : \documentclass{article} \usepackage{unicode-math} \begin{document} $a\models b$ $a\not\models b$ \end{document} gives I ...
1
vote
1answer
167 views

XeLaTex fontspec crash on Texmaker [LaTeX error: “kernel/invalid-variant”]

when I compile: \documentclass{scrartcl} \usepackage{fontspec} \begin{document} Hallo \end{document} on Texmaker 5.0.2 with XeLaTex and Commandline: xelatex -synctex=1 -interaction=nonstopmode -...
1
vote
1answer
42 views

Redefining standard font size commands when using LuaLaTeX and fontspec

How can I redefine the standard font size commands (\small, \normalsize, \large, etc.) when using LuaLaTeX and fontspec? From what I read after searching online, I did the following: \documentclass{...
1
vote
1answer
59 views

How to typset the Meitei Script in LaTeX and Overleaf?

I am trying to write a language script which is represented by the UTF-16 code format: the Meitei script, occupying U+ABC0 to U+ABFF in the Unicode block. All i could find in the internet is related ...
0
votes
1answer
74 views

How to change font to Zapfino

I am trying to change the font in an article I have created to "Zapfino". Does anyone have any suggestions on how to do this?
1
vote
1answer
68 views

Use different font “file” for numbers in the text with fontspec

I'm trying to use a different font file just for the numerals in the text (that is, NOT in math mode), while keeping the rest of the text as is. The typeface I'm using lacks old-style numerals, so I ...
2
votes
0answers
46 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 ...
4
votes
2answers
113 views

Can't switch to lining numerals with Junicode and fontspec

I'm using the Junicode typeface with the fontspec package, and I've set OldStyle numerals as the default. The OS numerals work fine, but if I try to switch to lining numbers in the middle of the text, ...
0
votes
1answer
126 views

Fontspec crash with xelatex

I'm having a crash with XeLaTeX on any file that uses the fontspec package. I get this as the error: ! LaTeX error: "kernel/invalid-variant" ! ! Variant form 'e' invalid for base form '\...
2
votes
0answers
48 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 = ...
0
votes
0answers
20 views

How can I redefine the text and header sizes in xelatex

I am writing a latex class and want to set the font and font sizes globally. At the moment, I have \RequirePackage{fontspec} \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} \setmainfont{...