Questions tagged [fontspec]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
117 views

XeLaTeX compilation fail (« Undefined control sequence. l.27 \sys_if_engine_luatex:T ») with fontspec package

After an update of all my packages, the upgrading from my old MiKTeX 2.9 to the last version, and the refreshing of the file name database (FNDB), my tex file wouldn’t compile anymore. I identified ...
0
votes
0answers
49 views

XeLatex Illegal unit of measure (pt inserted)

I am using XeLatex to compile one document with new font. I use following simple code %!TEX TS-program = xelatex \documentclass[10pt,a4paper]{article} \usepackage{fontspec} \setmainfont[Path = /...
1
vote
1answer
24 views

Loading fontspec makes Greek maths styles vanish

If I load fontspec, without unicode-math or mathspec, in LuaLaTex or XeLaTeX, I can no longer use \mathsf{\Phi}, \mathbf{\Phi}, and maybe other variants. Demo: \documentclass[a4paper]{article} \...
0
votes
0answers
43 views

Problem setting font with XeTeX

I want to use a font that's installed on my computer as my main font on a LaTeX document, which I'm compiling using XeLaTeX. Following this answer, I am using the following code \usepackage{fontspec} ...
0
votes
0answers
20 views

Decimal separator font using mathspec [duplicate]

I'm trying to use the Noto font for my entire document. Using mathspec this works fine for text and math fonts. However, using a comma in math mode produces a serif font-like comma instead of the one ...
4
votes
3answers
128 views

Unicode character not showing properly

I would like to type a word using Unicode character U+1E17 (Latin small letter e with macron and acute) using the TeX Gyre Pagella font (a clone of Palatino Linotype). However, when I do so the acute ...
0
votes
1answer
66 views

Unicode Z notation brackets

I typeset Unicode mathematical symbols using the unicode-math and the fontspec package. For the Z notation brackets: ⦇ and ⦈ https://unicodes.smpc.io/%E2%A6%87 and https://unicodes.smpc.io/%E2%A6%...
0
votes
1answer
40 views

Font features with OpenType/Graphite font

I'm trying to access these font features, but I can't manage to get things to work. It's been a long day and there's a good chance I'm just missing something simple. Adding the options in the preamble ...
0
votes
1answer
45 views

Typesetting Unicode characters with XeTeX and fontspec

Upon advice I started to use XeTeX to typeset Unicode characters. It did not work. Then I started to use fontspec. No output was generated for ∃. What else should I do to make it work?
2
votes
1answer
46 views

fontspec and xr package incompatible in Overleaf

I am trying to use the xr package in Overleaf and set a custom font in the referenced file. However, as soon as I load the fontspec package in the referenced file, the xr package does not recognize ...
1
vote
2answers
46 views

Change Color of Font Once They Have Been Defined

I have defined the color of my fonts in the preamble. What I am trying to accomplish is to change the color of just one word within the document, but I am unable to do this. Usually, within the ...
5
votes
2answers
115 views

Increase letter spacing in TiKZ text decorations

I've been trying to increase the spacing between letters in the diagram below: \documentclass[12pt]{standalone} \usepackage{tikz} \usepackage{fontspec} \setmainfont{Brill} \usetikzlibrary{decorations....
2
votes
1answer
92 views

Using otf files in the TEXMF tree with lualatex

I'm trying to use an otf file that is in the TEXMF tree, but another file with the same name is used instead. I run lualatex from a locally installed TexLive 2019 on this file: \documentclass{...
1
vote
0answers
71 views

Custom Fonts With pdfLaTeX

I have been using fontspec to use fonts I've downloaded, but this has been achieved through XeLatex. Now I want to use microtype, meaning I have to use pdf(La)Tex. But now I cannot use fontspec, I ...
1
vote
1answer
116 views

Compiling Friggeri Resume Template

I am working with the Friggeri Template from here: https://www.latextemplates.com/template/friggeri-resume-cv I am getting many errors when I compile the Friggeri resume. I am using Texstudio, ...
10
votes
2answers
447 views

How to use Noto Color Emoji with lualatex?

I want to use Noto Color Emoji with lualatex (package fonts-noto-color-emoji on my box). However, this fails as follows. How to use Noto Color Emoji with lualatex? \documentclass{article} \usepackage{...
0
votes
0answers
35 views

Polyglossia + XeLaTeX worked before but the same code is not working now… Any idea

I have been using XeLaTeX + polyglossia package for ages to write my documents in Thai. There has not been any problem until recently. The thing that is perplexing to me is that I used the exact ...
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
1answer
50 views

realscripts – can fakescripts substitute single missing chars

I have a font with real OT-superscripts which I can use easily with the realscripts-package. But I also need a superscript decimal dot which doesn't exist, thus realscripts falls back to the regular ...
3
votes
2answers
79 views

Fallback for mathcal unicode characters in lualatex with proper height

Very few monospace fonts support unicode characters like U+1D4AA (Mathematical Script Capital O). I'm using DejaVu Sans Mono, and I'd like to define a fallback. Right now I have this: \documentclass{...
3
votes
1answer
72 views

fontspec \setmainfont overrides other font families

It seems that the use of fontspec's \setmainfont is overriding other font families. Is that the expected behavior? Should I use instead \renewcommand{\familydefault}{\sfdefault}? A MWE follows below:...
0
votes
0answers
41 views

fontspec and makecmds.sty, re: polyglossia

Can someone explain to me in layman's terms what fontspec is? And is it needed by polyglossia? Thanks Bonus points: "makecmds.sty not found". Why?
0
votes
1answer
84 views

LuaLaTeX with babel/hebrew wants etex-extensions

Using texlive 2017 (same with texlive 2019), when i try to run the following minimal tex file (Hebrew font is https://www.sbl-site.org/educational/biblicalfonts.aspx; default font is Adobe's Minion ...
5
votes
1answer
79 views

Fontspec loads letter sizes, but not the letter shapes

I'm trying to use the fontspec package to use the P22 Hopper Edward font. In all other software, this looks wonderful: But while LaTeX throws no errors, the font looks wrong: the letter shapes aren'...
1
vote
1answer
146 views

How to write an English - Urdu mixed document in latex?

I am writing a document mainly in English but with words and sometimes sentences and paragraphs in Urdu - how do I do it in latex? Similarly if I am writing a document mainly in Urdu but with words, ...
6
votes
2answers
145 views

How do I set the Verbatim font (or the mono font) to bold by default?

I'm using the fancyvrb package and the Verbatim (with an uppercase V) environment. However, the font I'm using is to light for my taste, so I'd like to make it bold without having to write \textbf{} ...
2
votes
2answers
64 views

Overleaf and Section Fonts

Oveleaf say that it's possible to use a set of pre-installed fonts here. One of these is "CMU Classical Serif" I want to change the section title in my document to be "CMU Classical Serif" I try ...
2
votes
0answers
156 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{...
0
votes
0answers
34 views

Trying to find out the font style [duplicate]

I’d like you to tell me the font the the person who wrote what’s in the picture , is using:
1
vote
1answer
52 views

Why using this settings i am not getting a proper thesis like font?

\documentclass[a412pt]{article} \usepackage{setspace} \usepackage{amsmath} \usepackage{etoolbox} \doublespacing \BeforeBeginEnvironment{split}{\linespread{1}\selectfont}{}{} \newcommand\etc{{\sl etc\/...
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 ...
1
vote
2answers
42 views

Set font with setmainfont to something other than regular and use textbf

I have a font which comes in many different styles. Ive got Light Medium Regular Bold Thin .... Now i would like to choose the "Light" version as main font for my document. I have done that with ...
1
vote
1answer
66 views

Unicode characters not appearing: 𐌈 𐍈 ט 𐤈 ط

I'm attempting to get the following line to compile in XeLaTex: The letter 𐌈 (also written 𐍈 , ט, 𐤈, ط , or þ) All but ט and þ do not appear when compiling with XeLaTex using the following ...
5
votes
1answer
169 views

Use typewriter package with fontspec

I would like to use the typewriter package along with another font. I tried to do that with the fontspec package. I wouldn't mind to use the Latin Modern font. However, the style of the font remains ...
0
votes
0answers
37 views

Set a relative search path for fontspec within a package (.sty file)

I have a small .sty file for beamer, where I need to specify a particular title font (that's a TTF file). I can do this thus: \RequirePackage{fontspec} \newfontfamily{\WellcomeBold}[Path=fonts/]{...
1
vote
1answer
124 views

Latex Font Warning While Writing Urdu

I am trying to write urdu in latex but i am getting these warnings in latex fontspec error: "font-not-found" The font "Scheherazade" cannot be found. For immediate help type H <return>. ...
1
vote
2answers
195 views

LuaLatex, how to use calibri font even in math mode?

I'm writing a letter in LuaLatex using the calibri font. To set up I use these commands: \usepackage{fontspec} \setmainfont{calibri}[Ligatures=TeX, SmallCapsFeatures={Letters=SmallCaps,LetterSpace=...
1
vote
1answer
47 views

Font issue with legacy 8-bit fonts + fontspec

Some kind souls mentioned in some of my past questions that my using \usepackage{fontspec} is wrong. One of them suggested that I use \setmainfont[Scale=1.0, Ligatures={Common, Rare, TeX}]{Palatino ...
7
votes
1answer
124 views

Fandol with LuaTeX

The next release of babel will provide basic line breaking for CJK with luatex. When I was making some experiments I discovered an odd and puzzling behaviour in the Fandol family. The file is: \...
2
votes
2answers
98 views

Loading a custom `mathastext` font causes minus symbols to disappear

I use mathastext to customize my math font and its symbols. However, when using it, the minus sign no longer appears. One answer is to use \ang command for the angle. This works only if we put use a ...
0
votes
1answer
46 views

Forcing Fontspec to find a specific instance of a font where several exist

I have been struggling to find the answer to this one. Let's suppose my system (and indeed my TexLive distro) has multiple different versions of a font with a specific name. Say ffftusj.ttf I want ...
0
votes
1answer
117 views

XeLaTeX typesets characters in some Lato fonts on top of each other

When I try to use the Lato-Regular ttf font and Lato-Bold ttf font XeLaTeX produces a pdf in which some of the characters are set on top of each other, but when using eg. Lato-Italic, Lato-BoldItalic, ...
0
votes
2answers
122 views

Font switching for defined parts of document

I am lost in a maze of little twisty Fonts, all different. I need to use a different face (font family) for small portions of my novel, possibly retaining possibility to use bold/italic modifiers. I ...
4
votes
1answer
69 views

Difficulty accessing OpenType ligatures with LuaLaTex and fontspec

I’ve been trying to use Greek ligatures with the font Alfios in the version available here. In particular, I’m trying to get the o-u ligature as can be seen in the image — that I get from MS Word. ...
0
votes
0answers
82 views

Fontspec compilation error with MacTeX-2018

Fontspec (and several other packages) were not working. I reinstalled MacTeX-2018, but the same errors keep coming up (see below). l3kernel & l3packages are both installed. All packages on TeX ...
0
votes
1answer
89 views

Using different fonts for multiple languages in Overleaf

I'm using Twenty Seconds Resume template in overleaf https://www.overleaf.com/latex/templates/twenty-seconds-resume-slash-cv/mhyfwrmwjkbc But I met a problem and I can't solve it after trying for ...
0
votes
0answers
74 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
112 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
110 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
251 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 ...