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.

2
votes
1answer
42 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
42 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
44 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
16 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
49 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
73 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
39 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, ...
5
votes
2answers
60 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{} ...
1
vote
2answers
37 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
109 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
46 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\/...
0
votes
0answers
65 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
33 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
47 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
104 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
17 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
70 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
85 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
34 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 ...
5
votes
1answer
72 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
69 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
37 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
47 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
54 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
47 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
41 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
51 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
52 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
80 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
56 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
230 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 ...
1
vote
1answer
53 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
88 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
1answer
33 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 ...
3
votes
1answer
178 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
58 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
86 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
41 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
370 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
45 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 ...
2
votes
1answer
155 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
47 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
26 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
67 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
29 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
61 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
133 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
69 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
127 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 ...