Stack Exchange Network

Stack Exchange network consists of 174 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.

1
vote
1answer
58 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
34 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
74 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
21 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
45 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
25 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{...
0
votes
1answer
40 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
43 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
43 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
42 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
94 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
59 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
39 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
16 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{...
0
votes
0answers
21 views

Why my \fontspec can't work on Chinese characters?

When I want to change a Chinese font, I use the \fontspec command. However this command only worked for the English part. Here is my code and the output. \documentclass[UTF8]{ctexart} \usepackage{...
1
vote
0answers
40 views

Changing to custom font on overleaf [closed]

I was trying to use a different font for my resume in LaTeX and after some search the following code seems to be the answer: \documentclass{article} \usepackage{fontspec} \setmainfont{Calibri} \...
3
votes
1answer
31 views

Language 'Hebrew' not available for font 'DejaVu Sans' with script 'Hebrew'

I try to write an abstract in Hebrew. I use MikTeX2.9 and TeXnicCenter editor. This is my MWE: \documentclass[12pt]{article} \usepackage[english,bidi=default]{babel} %bidi=default with xelatex \...
1
vote
1answer
66 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: \...
7
votes
2answers
288 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
42 views

New fontspec gives problem with xelatex and Calibri

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
34 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 ...
1
vote
2answers
80 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
93 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
92 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
65 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
125 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
123 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/...
5
votes
1answer
130 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
23 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
54 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 ...
3
votes
3answers
135 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
136 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, ...
0
votes
1answer
65 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
60 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
43 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=`\-, \...
4
votes
2answers
65 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
140 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
153 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
153 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
71 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
92 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
65 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
136 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
117 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 ...
2
votes
0answers
42 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
84 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} ...
0
votes
0answers
62 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
38 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
30 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
42 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 ...