Questions tagged [fontspec]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
57 views

What is the Problem with “fontspec” Package to Select Font Externally?

I want to use the fontspec package to select some fonts that I download from the internet for my document, but I constantly get this use error: Undefined control sequence. <argument> ......
3
votes
1answer
45 views

xelatex+polyglossia+hebrew: how to avoid parasitic blank space

This is a problem I have for many years now, maybe you can help me solve it. I use the latest version of polyglossia (v1.50a), fontspec (v2.7i) and xetex (3.14159265-2.6-0.999992 (TeX Live 2020)). For ...
1
vote
1answer
29 views

table of contents font changes to bold when it is declared as regular

I am trying to create a table of contents and I use Devanagari font. I declare the font to be Shobhika Regular, but in the table of contents environment it changes to boldface. How to prevent this ...
0
votes
1answer
41 views

Switching from LaTeX to XeLaTeX - fontspec and unicode-math defaults

I'm currently switching from LaTeX to XeLaTeX and I personally like to write down the defaults in my default preamble to be able to modify some slight things (but not accidentally changing everything)....
0
votes
1answer
42 views

Linux Libertine O: Ligatures? | XeLaTeX

I'm currently studying the fontspec documentation, for a project I'm doing. I've found an issue, where neither ligatures (all except TeX) work, nor numbers in the OldStyle option work with the Linux ...
3
votes
2answers
40 views

Toggle different math fonts with XeLaTeX

My goal is to use a sans serif math font in all figures and I found several approaches with my favourite being the use of \mathversion and the unicode-math package to change between different math ...
4
votes
2answers
34 views

Eulervm and LuaLaTeX results in wrong front for math operators

I noticed that the math operators have the wrong font if LuaLaTeX is used. If I apply the fix from @egreg the accents are wrong: The MWE is the following: % !TeX program = lualatex % !TeX encoding = ...
1
vote
1answer
23 views

Fontspec chooses Candara Light instead of Regular

Consider the following LuaLaTex document \documentclass{article} \usepackage{fontspec} \setmainfont{Candara} \begin{document} This is Candara Light, but I want Candara! \end{document} My ...
0
votes
1answer
31 views

How to access style variants and discretionary ligatures in a specific font?

I am using MinionPro for my document (LuaLaTeX with fontspec). The font provides for a number of optional ligatures and glyph variants. Here's part of my font setup: \setmainfont{MinionPro}[ ...
2
votes
1answer
39 views

Fontspec: Font not found - Mobile XeTeX

This is yet another question of this kind, altough, to my defense, not answers of similar questions helped me solve my problem yet. I'm having trouble loading some fonts in XeTeX, using an app called ‘...
0
votes
0answers
23 views

Is Emoticon recognized as a script by `fontspec`?

I am using xelatex to typeset different scripts that belong to disjoint Unicode blocks using the MWE file below: \documentclass{standalone} \usepackage{fontspec} \usepackage[Latin,Tamil,Greek]{...
1
vote
0answers
30 views

Problems with defining font defaults in `XeLaTeX`

I want to define a default font(Arial), a sans-serif font(also Arial), a monospace font(Roboto Mono), and a roman font(Times New Roman). Defining the latter three is okay, but introducing the main ...
0
votes
2answers
65 views

How to substitute a glyph for a single Greek character?

I am using Minion Pro (with fontspec under LuaLaTeX), and the character ϱ(= \varrho, but in text mode) doesn't show. input: ϱυϑμὸν output: �υϑμὸν Is there a way to globally remap only this character ...
0
votes
0answers
15 views

Beamer - Disable Fira Font in Metropolis Theme

Is it possible to disable the Fira Font in the Metropolis theme when using LuaTex and fontspec? I would like to have the same fallback font that Metropolis uses when compiling with LaTex. the MVE: \...
4
votes
1answer
55 views

Substituting fonts for emojis in LuaLaTeX

Inspired by this question, I try to use a different font for all emoji characters in the document. In the code sample below, I build the is_emoji function according to unicode standards. \...
0
votes
0answers
38 views

How to use fdsymbol with LuaLaTeX

My question is related to the fdsymbol packet. I would like to the font in combination with the Fedra Serif B font, but on LuaLaTeX. Consider this MWE: \documentclass{scrbook} \usepackage{fontspec} \...
0
votes
1answer
18 views

Problem while adding new font in Overleaf

I am trying to use Kalpurush font for Bengali text in my article. For this, I have already downloaded the kalpurush.ttf file from here and have uploaded it in the project directory in Overleaf. I have ...
5
votes
1answer
64 views

selnolig Turns en and em Dashes into Hyphens if polyglossia is loaded Before the Fonts

Consider the following code: \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \setmainfont{Stix Two Text} \usepackage{selnolig} \begin{document} -- --- \end{document} Of which ...
0
votes
0answers
34 views

CM Bright with LuaTeX is different than pdftex

I am aware of this question: General guide on how to set up font families for luaLatex, however in my use it does not solve my problem. When I use pdfLaTeX to compile, I get: When I use LuaLaTeX, I ...
1
vote
1answer
38 views

Preventing line break in a displayquote environment

In the text I am writing I make extensive use of blockquotes, which I need to refer back to at a later point (kind of like numbered theorems, really). I use displayquote for this purpose, and it works ...
0
votes
0answers
64 views

Man text document is in 'italicised Arial' and not 'normal Arial' font

I am using overleaf for a document with Arial 12 and 1.5 line spacing. After multiple attempts I was able to compile the document but for some reason the main text is appearing italicised-Arial ...
1
vote
1answer
26 views

Suppress warning when using fakeslant instead of italic for small caps

I have one small need to use italic small caps, and my font lacks them. So I'm using fakeslant. The code below works with lualatex, but I get this warning message: LaTeX Font Warning: Font shape `TU/...
1
vote
1answer
48 views

\^m exists in LuxiMono Type1 but not in LuxiMono OpenType

As pointed out by the following MCE, \^m exists in the LuxiMono Type1 fonts but not in their OpenType counterpart (the result being weirder with lualatex than with xelatex). \documentclass{article} \...
1
vote
1answer
51 views

How many fonts can be used within one project/file?

A theoretical question: I came across an interesting mono-spaced font called VictorMono. It comes in seven weights and three styles ( Roman, Italian and Oblique). This gives us 21 different varieties ...
0
votes
0answers
42 views

Substitute font usage in XeLaTeX/LuaLaTeX

I have using LuaLaTeX and is there any way to tell XeLaTeX/LuaLaTeX to make automatic substitutions if the font is missing glyphs? My LaTeX MWE: \documentclass{article} \usepackage[no-math]{fontspec} \...
4
votes
3answers
125 views

How to — properly — underline the ordinal masculine and feminine?

There are languages, Portuguese being one of them, where the ordinals (masculine and feminine) are always supposed to be underlined. About half of fonts do not provide underlined-ordinals, leaving up ...
0
votes
0answers
25 views

How to add FS albert font to my texlive distribution?

I want to add FS Albert font, so that I can use it in a LaTeX or XeLaTeX document. For example, simply using \usepackage{FSAlbert} or \usepackage{fontspec} \setmainfont{font-code} However, it seems ...
2
votes
1answer
49 views

classicthesis with XeLaTeX, font issue

I'm using macOS 10.15 and TeXlive 2020 with MacTeX. When trying to compile (with xelatex) a document that uses classicthesis with the following option: \RequirePackage[eulerchapternumbers,eulermath,...
0
votes
1answer
39 views

!Package fontspec Error: The font “OpenDyslexic” cannot be found

Im trying to use the fontspec package to change my output font to dyslexic freindly font "OpenDyslexic" which according to this pdf does exist in fontspec: https://es.overleaf.com/articles/...
1
vote
1answer
63 views

Unicode-math: substitute \perp for \bot

Using unicode-math with LuaTeX. The font Fira Math is missing some glyphs that I use, notably the symbol for \bot. I know that I can grab it from a different font: \setmathfont[range={"022A5}]{...
0
votes
0answers
25 views

Unicode-math: subscripts work with Bitstream Vera Sans, but not with DejaVu Sans

I'm trying to typeset some slides with text in either Bitstream Vera Sans or DejaVu Sans and maths in Fira Math using LuaLaTeX and unicode-math. When using Bitstream Vera Sans, everything works fine (...
2
votes
1answer
60 views

Latin Modern main font with Computer Modern bold small caps

I want to use Latin Modern as the main font of my document, with bold small caps from Computer Modern Serif. Here's what I tried : \documentclass{report} \usepackage{fontspec} \setmainfont{Latin ...
1
vote
0answers
20 views

Headers not showing in Arabic letter

I am trying to create a letter template in Arabic for my business. I am trying to include headers and footers using the fancyhdr package. However, whenever I try to compile the document it shows the ...
0
votes
1answer
59 views

Text font maintain in math mode

I have using LuaLaTeX Version 1.12.0. I have need to maintain same text fonts in math mode (only alphabetic, numbers). All the Alphabetic characters (like A to Z, a to z) need to maintain same \...
0
votes
0answers
41 views

Microtype setting doesn't override previous one if font color matches

I am trying to set tracking, word-spacing, font-color (lets call them (T,W,C)) independently in different parts of the document. In my observation, certain microtype settings don't override old ones ...
1
vote
0answers
65 views

LuaTeX: Microtype/fontspec/luaotfload buggy interaction canceling each other's settings

Microtype and fontspec/luaotfload seem to interact, and cancel each other's settings. In the following code, fontspec option Color=FF0000 and \lsstyle interact to cancel each others effect (coloring &...
3
votes
0answers
44 views

Strange behavior in Grantha

I am using the velthuis-sanskrit-grantha.map found at https://www.mail-archive.com/xetex@tug.org/msg11336.html Here is my code \documentclass[letterpaper,12pt]{article} \usepackage{fontspec} \...
0
votes
2answers
40 views

Generate Mathematica script with fontspec

I am trying to generate this character from Mathematica using fontspec. I can generate an upright version, but want it slightly slanted so it matches the font. \documentclass{article} \usepackage[no-...
3
votes
1answer
86 views

How to use arbitrary font in pgfplots?

I produce the following chart: With the following code (compiled with XeLaTeX): \documentclass[border=5pt]{standalone} \usepackage[table]{xcolor} % more control over colors \usepackage{tikz} \...
0
votes
2answers
70 views

Font TeX Gyre Termes Unable to Use

I am using the newest editions of MacOS, MacTeX, TeXMaker, and all the packages that I am using. This is the code I have: \documentclass[12pt, letterpaper]{article} \usepackage{fullpage} \usepackage{...
0
votes
1answer
39 views

Need help with formatting the fonts and the space around the headings

So I am quite a new Tex user, but I simply love it because it keeps me away from clicking on too many buttons and gives very pretty equations. So I decided to do one of my project reports in Tex and ...
1
vote
1answer
50 views

I have a font, where should I place it for use?

I have a font downloaded, it's a *.ttf file. where should I place it for texlive to use?
1
vote
0answers
53 views

How to specify this font in beamer?

How to specify the font used in the following figure in my beamer document? By the way, I am using XeLaTeX. % !TEX program = xelatex \documentclass[]{beamer} \usepackage{xeCJK} \usepackage{fontspec} ...
0
votes
1answer
44 views

how can I set Roboto Slab to italic using fontspec

I am having the weird behaviour, that I cannot get a given font to be italic. Bold is no problem, but italic is. \RequirePackage{fontspec} \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} \...
1
vote
1answer
47 views

How to use a specific symbol on an specific font

How can I use a specific character of a specific font? And how could I use it in math-mode? I have tried to use, what I would expect to work: \documentclass{report} \usepackage{fontspec} \...
1
vote
2answers
74 views

How to type in XeLaTeX a symbol by its unicode code?

How to type in XeLaTeX a symbol by its code? In particular, I am interested in different dashes: U+2011 ‑ non-breaking hyphen as hyphen (U+2010), but not an allowed line break point U+2012 ‒ figure ...
1
vote
1answer
42 views

Use Font and Emphasise at the same time

It seems that whenever I use setmainfont(Cochin), all the textbf{}, textit{} in the main text will just not work. Anyone know how to fix this? Thanks! I am not sure if it's because of the font. The ...
0
votes
1answer
33 views

Fakebold not working on mathbb fonts

\documentclass[a4paper, 12pt]{article} \usepackage{amsmath, amsthm, amssymb, amsfonts} \usepackage{fontspec} \setmainfont{latinmodern-math.otf}[FakeBold=4] \let\mathbbalt\mathbb \usepackage{unicode-...
0
votes
1answer
66 views

Issues with changing fonts for text and captions

I need to set my fonttypes globally to be Times New Roman for text, and Arial for figure and table captions. Normally I'm somewhat seasoned to latex, but here I'm pretty much running in a wall. One of ...
0
votes
1answer
166 views

Fatal Error when using CMU fonts with XeLaTeX

I just tried to re-compile the documentation file for the russian-babel package with XeLaTeX. The source file russianb.dtx was last modified in January 2017 (https://www.ctan.org/pkg/babel-russian) ...

1
2 3 4 5
37