Questions tagged [fontspec]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
2k views

Package fontspec Error: The font cannot be found on win10

I have installed the Adobe Garamond Pro.otf fonts on my computer running win10, as shown in the following picture. However, when I run xelatex, the otf fonts cannot be found. Here is an example: \...
6
votes
2answers
1k views

Andika fractions

I have hand made the exercise with svg. See attachment. It was very cumbersome. If I could write the étude in markdown and then do pandoc magic I could perhaps learn how to create a library of basic ...
1
vote
0answers
178 views

New fontspec gives problem with xelatex and Calibri [closed]

Running the MWE below runs correct with fontspec 2.6l (rev 49739 in Texlive 2018/Win 7) but gives an error with fontspec 2.7 (rev 49809) % !TeX encoding = UTF-8 % !TeX spellcheck = nl_NL % !TeX TS-...
0
votes
0answers
91 views

Fontspec 2.6l update throws Undefined Control Sequence error

Updating to the recent version of Fontspec 19/01, v2.6L, gies the following error )) ! Undefined control sequence. \__fontspec_init_ttc:n #1->\str_if_eq:eeT ...
2
votes
2answers
274 views

XeLaTeX: Installed Italic font not appearing

Italics go missing when I change to a font that is installed and I can't figure out why. Here is the installed font, (as shown in Mac OS's Font Book): Here's a MWE: \documentclass[fontsize=14.5pt, ...
2
votes
0answers
128 views

realscripts/fontspec update vs. some Opentype fonts

I have a file that was running smoothly a few weeks ago and is now stopping with the message: Argument of \__fontspec_strip_leading_sign:Nw has an extra } Using most system fonts, or Amiri, ...
5
votes
1answer
179 views

Changing the font based on availability to fontspec

I would like to distribute a class that uses a professional font loaded via fontspec, and falls back to one of the default fonts in TeX Live if this is not available. I know that one can detect fonts ...
2
votes
2answers
87 views

xfrac resets \oldstylenums to computer modern

Using xelatex, fontspec and unicode-math, old style nums work just fine. But when using xfrac, the oldstylenums seems to be reverted to some basic version of the command, using a pixely computer ...
4
votes
3answers
217 views

LuaLaTeX + fontspec + IM FELL not providing long s

I'm attempting to get a font (any font) which automatically switches s for ſ in the middle of words. Following a number of suggestions I've found on StackExchange, I'm using IM FELL DW Pica PRO (from ...
5
votes
1answer
250 views

Where and how does fontspec.sty specify the default font (Latin Modern Roman)?

When doing \usepackage{fontspec}, where and how is the default font name specified? On my TeX Live 2019, I see this font filename on the console log of the lualatex compilation: /usr/share/texmf/...
4
votes
1answer
465 views

How to speed up LuaLaTeX startup with fontspec?

As a novice user of lualatex and fontspec I've found it very slow (>1.3 seconds) to load on my Linux system: % This is file compact.tex \documentclass[a4paper]{article} % This is needed only for old (...
0
votes
0answers
30 views

Requested fontspec font not used, and no message in the logs [duplicate]

I am trying to use Calibri in a beamer presentation, as per this answer. Everything seems to go fine, but in the PDF the font is LMSans. I can see the embedded font by looking up the fonts properties ...
2
votes
1answer
130 views

Hebrew and the alternative between polyglossia and babel

I found some threads in tex.stackexchange about the possibility of writing in Hebrew with Latex (what, however, I already made with fontspec and polyglossia). The answers are an alternative: either ...
5
votes
3answers
483 views

Best way of using the full range of full fonts/styles/faces for Latin Modern Roman?

The following is what I've put together as a way of making sure the full(est) range of fonts/styles are available when using Latin Modern as the mainfont using fontspec, including bold smallcaps, ...
4
votes
1answer
196 views

Equivalent of fontenc in LuaLaTex

I'm writing a paper, and have recently switched to LuaLaTex. In pdfLaTex I've used \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} now how should I replace these, ...
1
vote
1answer
561 views

Option clash for package fontspec

Can someone help with option clash for package fontspec? I'm compiling by using XeLaTeX in TeXmaker 5.0.3. I get this error and I don't see preview in program, however PDF is producing. \...
0
votes
0answers
98 views

Problem with LuaLaTeX and OTF font

I have a problem using a special symbol font in OTF format with LuaLaTeX. The font itself is correctly installed and found during compilation. But the LOG file states that chars are missing (in fact ...
2
votes
0answers
60 views

\addfontfeature resets \prehyphenchar and \posthyphenchar

This question is similar, but applies only to XETEX. In LuaTEX, \prehyphenchar and \posthyphenchar supposedly affect the current language: All languages start out with \prehyphenchar=`\-, \...
5
votes
3answers
153 views

How to use different font families for the same unicode block in ucharclases?

Here is an MWE: \documentclass{article} \usepackage{fontspec} \usepackage[Sinhala,Latin]{ucharclasses} \newfontfamily\FooBarr{Noto Sans} \newfontfamily\sinhala{Noto Sans Sinhala} \newfontfamily\...
5
votes
1answer
366 views

Xetex support for .otf features

In the .otf fonts where they are present, the Contextual Alternate (calt) and Localized Forms (locl) functions work fine in LibreOffice. Experiment: I create a quoteright.fr glyph with a large ...
4
votes
1answer
217 views

How can I select one No-unicode symbol from one font?

I am using Asea font http://users.teilar.gr/~g1951d/Textfonts.zip From http://users.teilar.gr/~g1951d/ And I want to pick some characters that are not encoded in unicode, but are present in the font,...
1
vote
1answer
180 views

Quality and efficiency of my code in LaTeX3?

As an exercise in learning LaTeX3, I would like to replace the following 7 functions, copied from xepersian.sty which do the same job in xepersian package, with a single function. 208 \...
1
vote
2answers
434 views

Missing Glyph with fontspec, XeTeX and LyX

I'm getting the error for missing glyphs in LyX using XeTeX with fontspec on Windows. The error is Missing character: There is no ^^C in font [lmroman10-regular]:mapping=tex-text;! The wierf thing is ...
2
votes
1answer
249 views

How to achieve Arial Narrow in bold face

I am not quite understanding why I am not able to achieve bold face Arial Narrow font with the following mwe. \documentclass{article} \usepackage{titlesec} % N.B. typeset with lualatex.exe % ...
3
votes
0answers
171 views

fontspec can not find the font file to work on Mac OS

I am using texlive2018 and trying to make a simple tex file using xeCJK to work on Mac OS, but the fontspec can not find the font file even I am using a western character set font file. The test.tex ...
10
votes
1answer
163 views

fontspec changes indentation of biblatex bibliography

MWE: test.tex: % !TeX program = xelatex \documentclass[paper=A4,fontsize=12pt]{scrartcl} \usepackage{fontspec} \usepackage[backend=biber,style=authoryear,citestyle=authoryear]{biblatex} \...
0
votes
1answer
166 views

How to check the existence of some characters in a font using a loop?

I am trying to modify the current version of xepersian package to suit my needs. The following code copied from xepersian-mathsdigitspec.sty is supposed to check if some characters do exist in the ...
1
vote
0answers
63 views

Fonts in math operators not matching in XeLaTeX [duplicate]

Using XeLaTeX I have changed the body and math fonts to Gill Sans. However, the operators defined using DeclareMathOperator still appear in Computer Modern. How do I edit my configuration to make ...
6
votes
2answers
127 views

Weird Vertical Spacing of '*' with Fira Code in Listings

I am recently getting started with LuaLaTeX and I was trying to set up a custom listings style for C++. Consider the following MWE: \documentclass{scrartcl} \usepackage{fontspec} \usepackage{xcolor} ...
1
vote
0answers
424 views

How best to use STIX2 in a document?

I would like to typeset a document that has both mathematics and English text using the STIX/STIX2 fonts. However I am confused by the various options. First, I assume that STIX2 should be used in ...
3
votes
1answer
69 views

Why does setmonofont change the justifying of normal text using the same font?

I usually use a different font for URLs e.g. email adresses. Today, I tried to change it in a letter to use the same font als the normal text and it cancelled the justification in the main body of the ...
3
votes
1answer
67 views

How can my master.tex file find font files stored in a subfolder to my working directory?

I need to use the font Gotham Rounded, and have so far placed the eights font files (.otf) in my working folder, i.e. the folder containing my master.tex file. This works fine. When compiling my ...
1
vote
1answer
102 views

Different font for numbers in URLs [duplicate]

I am using mathspec to make the fonts in math mode match the roman fonts used in my text body. The “digits” environment in mathspec takes effect for all digits in the document. This means that digits ...
2
votes
1answer
214 views

The macros setmainfont and setsansfont do not accept the new command of a newfontfamily. Is there compatibility between them?

I use the class memoir, the packages polyglossia, fontspec, compile in XeLaTeX in Linux and on macOS. Based on XeTeX package fontspec: Use previously defined \newfontfamily with \setmainfont (there ...
3
votes
1answer
301 views

xepersian 21.9 cannot load the font “Psychedelia HM”. Is this a bug?

After upgrading my texlive, xepersian 21.9 can not load the font which is loaded without any problem by the older version 21.7. My code is: \documentclass{article} \usepackage{xepersian} \...
1
vote
0answers
34 views

Changing and declaring fonts for parts of the document without changing the default

This might be a silly question, but I am very confused of how to declare fonts for only one sentence/paragraph. The solution I found was to use {\fontfamily{ppl}\selectfont ... } However, I am not ...
4
votes
2answers
483 views

XeLaTeX Font Warning: Font shape `TS1/Arial(0)/m/n' undefined, how to fix it?

I hope a quick and easy solution is possible Error Code LaTeX Font Warning: Font shape TS1/Arial(0)/m/n' undefined (Font) usingTS1/cmr/m/n' instead on input line 75. Main Problem The error ...
1
vote
1answer
53 views

Adding random font directories to use with fontspec in macOS

Is there a way to use fonts installed in random directories in fontspec without providing the path in each use case? e.g. I want to use the fonts installed in ~/Library/Fonts. So far I have only ...
1
vote
1answer
110 views

Why is LuaLaTeX not picking up small caps glyphs?

I have a font, whose font table is as shown in the image. However, when I compile a basic document with LuaLaTeX, the text appears as lower case, though small caps is specified. I understand, from ...
1
vote
0answers
104 views

Using fontspec (which requires exp3-code.tex) makes lualatex slow

I recently tried luatex (TeX Live on Mac) and found that if I use fontspec to load a font, it really slows down the compilation. My test document: \documentclass{article} % \usepackage{fontspec} % \...
0
votes
1answer
80 views

fontspec interfering with list of figures

This script \documentclass{article} %\usepackage{fontspec} %requires XeLatex ...
0
votes
1answer
188 views

Looking for Fira Sans by file name using the metropolis beamer theme (e.g. for Overleaf)

I'm using the metropolis beamer theme. In beamerfontthememetropolis.sty, the fonts are loaded by font name, e.g.: \setsansfont[ItalicFont={Fira Sans Light Italic},% BoldFont={Fira ...
0
votes
0answers
131 views

LaTeX fonts with math and utf8 support [duplicate]

Although I like Computer Modern font families I'd like to be able to make documents look like they were made by "normal person" and still be able to benefit from the TeX powers*. In short the solution ...
1
vote
1answer
477 views

Changing the Font in Moderncv

I'm using the moderncv template and I cannot change the font. I'm looking at https://www.overleaf.com/articles/slash-fontspec-all-the-fonts/qnsxyhrgjsgs for my fonts. Using \setmainfont does not ...
2
votes
1answer
69 views

Advanced Math Mode Customization in XeLaTeX

Observation If you have used MathType in Word, you know well that we can customize the font of the equations -- not only change the overall font, but also change the font of brackets, numbers, ...
6
votes
1answer
121 views

can fontspec work with CMYK colors?

Can fontspec be used to manage a document's fonts if the fonts need to use the CMYK color model? The fontspec documentation, section 6.1, says that fontspec uses RGB colors. My experimentation (MWE ...
1
vote
0answers
82 views

How to make “fakebold” work on custom font?

I am including a special font for greek, but when I use it, the \textbf{} command does not result in bold letters. I have added a [FakeBold=3], but it has no effect. What's the problem? \...
1
vote
1answer
110 views

Changing font of a beamer presentation (Szeged-dove)

I'd like to change the font of everything (but really everything) that appears in my beamer Szeged-dove presentation from default to some font I have the .ttf of (if that's relevant, I'm working on ...
2
votes
0answers
54 views

\textit generates different shape from primary italic font

It's said that \textit will select an italic font, instead of doing some geographical change to the font. This means it will generate exactly the same thing as using italic font directly. However, I ...
0
votes
1answer
170 views

Change Boldness of Certain Fonts

For some certain fonts, they have different level of "boldness". For example, Avenir Next has Ultra Light Light, Regular, Medium, Demi-Bold, Bold and Condensed Bold... Below is an example done by ...