Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [fontspec]

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

Filter by
Sorted by
Tagged with
4
votes
2answers
76 views

Polyglossia v1.46 modifies font family in header

This is my first question, please let me know if I am doing something incorrectly! After updating polyglossia to version v1.46 (from 2019/11/15) there seems to be a clash with memoir to version 2019/...
2
votes
1answer
20 views

TrueType WebOMints and XeLaTeX

I'm trying to use the WebOMints dingbats font with XeLaTeX and fontspec, but instead of the expected output (made with the Windows font tool): I just get tofu: The code I'm testing with is: \...
0
votes
2answers
1k views

fontspec mathspec clash

I have just updated to fontspec 2017/02/12 v2.6. Now when I compile my code I get a clash with mathspec. C:\Program Files\MiKTeX 2.9\tex\xelatex\mathspec\mathspec.sty:65: LaTeX Error: Option clash ...
10
votes
2answers
504 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{...
3
votes
1answer
43 views

How to change what \normalsize means on a per-font basis?

I'm trying to mix and match fonts, using a beta OTF font that a colleague recommended. But when I load the font at its default size, it's not a good fit with Computer Modern. I need \normalsize to ...
0
votes
1answer
454 views

Loading Custom Fonts into RMarkdown

I've been testing loading my own fonts into a personal rmarkdown document using the fontspec latex package. Because I'll eventually need to knit this on a server, using the font library on my mac is ...
9
votes
4answers
537 views

Burmese and LuaLaTeX

I am working with a project which requires LuaLaTeX (TeX Live) and the Noto Serif Myanmar font. I need a few words of Burmese only. The MWE works well with XeLaTeX. But LuaLaTeX has a problem with the ...
4
votes
2answers
95 views

Define fallback font for missing glyphs in LuaLaTeX

I want to use "Hack" as the default font for source code. Unfortunately the font is missing some glyphs I use. If I use a glyphs that is missing in "Hack", I want it to be displayed automatically in ...
27
votes
1answer
2k views

Complex ligatures in Devanāgarī

Ligatures are known to the Western European languages, however it isn't that common to spot vertical or complex form of them. As an exercise in typography I tried to get some complex ligatures in ...
0
votes
0answers
40 views

Oldstyle numbers with \scshape

I would like to write \textsc{abc 123} and get small caps and oldstyle numbers with the current font. If I set \defaultfontfeatures[\scshape]{RawFeature=+smcp,RawFeature=+onum} I do get the small ...
3
votes
1answer
194 views

English and Japanese number problem

I am writing a document that contains several languages, including English and Japanese (polyglossia, xeLatex, Windows 7, TeXLive, TeXWorks). For English, I prefer the classic Hoefler Text font, and ...
2
votes
1answer
768 views

Specifying the font for only one character with unicode-math

I'm using XeTeX and the fontspec and unicode-math packages. In order to use a different math font for Greek letters, I do something like this, using the range option of \setmathfont: \setmathfont[...
3
votes
1answer
97 views

Using Ryman Eco fonts in XeTeX

I'd like to use the Ryman Eco font for my XeTeX documents. The cause is that my students mostly prints them so I try to spare with ink (and try to be ec-friendly of course). But the font directly ...
1
vote
0answers
31 views

No update for externalized tikz figure because of font change?

There is something fishy going on here and i have no clue why. So please, help me to understand the issue and thx in advance. My problem: no update for tikz figure (see MWE) with specified font by ...
2
votes
2answers
66 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 ...
4
votes
2answers
62 views

Problems with µ, displaying ţ with sisetup option (for combination of siunitx, fontspec and kpfonts)

I have problems with the combination of using siunitx and displaying upright partial derivative symbols using: \usepackage[partialup]{kpfonts} The unit prefix µ is not displayed using this code: \...
0
votes
2answers
54 views

How to change an english LaTeX template to accept greek main text?

New to LaTeX here. My goal is to write a thesis in greek. If possible, I would prefer an answer which uses polyglossia package instead of babel. I have made a simple test document using the former ...
1
vote
1answer
453 views

XeLaTex and Fontspec crash trying to find woff file for some fonts but not others

Running XeLaTex on this example results in a pdf as expected: \documentclass[a4paper,12pt, notitlepage]{article} \usepackage{xltxtra} \defaultfontfeatures{Ligatures=TeX} \setmainfont{Cabin} \begin{...
0
votes
1answer
63 views

How to Stretch Font Vertically—INLINE—without \scalebox?

Closely Related: Stretching text vertically Is it possible to stretch a font vertically—INLINE—without using \scalebox? For example, I would like to have a paragraph with italicized text, or small ...
6
votes
2answers
122 views

xelatex & libertine: \renewcommand\ttdefault no longer works

This MWE \documentclass{article} \usepackage{libertine} \renewcommand\ttdefault{lmtt} \begin{document} foo \texttt{bar} \end{document} previously (say, about one year ago) typeset bar with lmtt if ...
10
votes
3answers
2k views

More problems with TIPA and Fontspec

I do quite a lot of work with Sanskrit and linguistics. For the Sanskrit (Devanagari letters) I used fontspec and render with xelatex. This, as far as I can tell, is the only way to go. For the ...
9
votes
4answers
2k views

Accessing IPA characters when using Charis SIL

When using Charis SIL, how do I access IPA characters? Are there handy macros, as with tipa.sty? If I have to set up my own encoding using unicode numbers, how is this best done? (Code from those ...
1
vote
1answer
73 views

XeLaTeX: unicode characters not in PDF

This question is related to this one: XeLaTeX - special unicode characters I've got the same problem of missing unicode characters in my PDF when generated with XeLaTeX. I used the following example ...
1
vote
1answer
69 views

odf files for arkandis fonts lack features in tex definitions

The Arkandis Digital Foundry publishes a variety of comprehensive font families, apparently expressing high artistic merit, under an open license. Support in LaTeX through external packages has been ...
7
votes
2answers
164 views

How can I scale mono font to 90% of MatchLowercase

I would like to scale the mono font so that it's x-height is 90% of the x-height of the main font. (I think it looks too large when the x-height matches.) Is this possible? Sample code with ...
0
votes
1answer
26 views

Old answers don't work - XeLaTex fontspec crash on Texmaker [LaTeX error: “kernel/invalid-variant”]

I'm reviving an old issue which I have come across. There are many similar questions but dated from a few years. Basically using Miktek 2.9.7100 with everything up to date and Texmaker 5.0.3. I can'...
2
votes
1answer
59 views

fontspec + xelatex: won't use small caps TTF

I wanted to use the Cormorant font family in my LaTeX document. I later learned that a Geramond variety of this family appears in the TeXLive distribution, but I was unaware at the time, and anyway I ...
1
vote
0answers
46 views

Tidying up my preamble for using Garamond throughout my thesis in Overleaf

I am quite inexperienced with LaTeX and am writing my PhD Thesis using it. I want to use Garamond throughout, and this has been a nightmare to implement. I have read lots of guidance on the various ...
3
votes
3answers
65 views

Fontspec doesn't find Tex Gyre Pagella Italic

I'm using XeLaTeX and when calling \newfontfamily\headingfont{TeX Gyre Pagella Italic} I get the message Requested font "TeX Gyre Pagella Italic" at 11.99997pt -> font not found, using "...
2
votes
1answer
76 views

XeLaTeX: Unicode math fonts cannot be found

I want to use math fonts with the unicode-math package. The code I wrote is \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} \setmainfont{TeX Gyre Pagella} \setmathfont{TeX ...
0
votes
0answers
18 views

Babylonian numbers 1-9 in Unicode [duplicate]

Can someone explain this piece of Unicode to me at some detail? It is supposed to print the numbers 1-9 in Babylonian notation, but I do not follow the carrets ^ and the syntax ^^^^^^0133fa\or \...
1
vote
1answer
52 views

warning: OpenType feature 'Ligatures=RequiredOff' (rlig) not(fontspec) available

What causes this warning, and how to get rid of it? I believe that I have installed some packages that make this warning, but I couldn't figure out how to undo this damage. P.S. I am using MikTeX 2....
1
vote
1answer
66 views

counters in theenumi 2

I have the following MWE using counters. At which place can I insert \stepcounter to increase always at the next \enumerate item? All positions which I've tried have failed with \endcsname error. \...
3
votes
1answer
118 views

Combining multiple diacritics from unicode input

I have trouble combining multiple diacritics in this example: \documentclass{article} %\usepackage[utf8]{inputenc} %\usepackage{fontspec} \begin{document} Ā́ Łōgī́ zǭ́ze \end{document} ...
0
votes
1answer
59 views

How to use Calibri and other font options with TexStudio

I need to compile a file in 14pt, Calibri font, but I also need many math and editing packages. I get an error message when trying to compile in either xelatex Fatal fontspec error: "cannot-use-...
1
vote
1answer
154 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, ...
4
votes
1answer
157 views

ucharclasses misbehaves with Spacing Modifier Letters and Combining Diacritical Marks

The ucharclasses package makes it possible to automatically switch fonts (or do other useful things) based on the Unicode block of characters. However, it seems to be having trouble resetting the ...
0
votes
1answer
60 views

Load font style of OpenType font in lualatex

I got some problems loading .otf fonts with fontspec in lualatex. What I don't get is the following: Let's suppose I have several .ttf font styles. Then I will just specify them succesively for my ...
1
vote
1answer
30 views

Format Acronym description label in Abbrevation chapter

I want to format the whole label with a .ttf font, and got it to work mostly, only the marked part wont be formatted with aclabelfont: I want to use the same myfontfamily (defined with fontspec) for ...
4
votes
1answer
38 views

Indexing of the enviroment enumerate by **babyloniannum** gives an error

I've tried to index my sentences like this: \renewcommand{\theenumi}{\roman{enumi}--\arabic{enumi}--\babyloniannum{enumi}} The MWE Example is this: but it gives an error as given below: \...
0
votes
0answers
15 views

Change font of section titles (scrreprt document) [duplicate]

I'm having trouble changing the font of (sub)section titles in my document, I'd like it to be the same as the font used for the main text but as of now, a sans serif font is used for titles and a ...
1
vote
1answer
57 views

What's the smart way of doing this thing?

First of all I'm an absolute noob(I can't stress this enough, this is my second week of using latex). I don't have any idea about the differences between the different compilers, but xelatex seems to ...
0
votes
1answer
75 views

Difficulty accessing character variant with LuaLaTeX and fontspec

I’ve already asked a similar question previously, but it seems the same trick doesn’t work. I am using the Junicode (1.002) font available at this link. I want to access the character variant for the ...
1
vote
0answers
28 views

Inconsistent horizontal spacing when using a new font in math mode

I am trying to work out a way of using the Optima font in both math mode and the main body of my text. The code I came up with is given below. It is by no means elegant, and if there is a better way, ...
1
vote
0answers
24 views

Change just the regular math font in document

I have the following document and wish to replace only the regular (not italic) math font with Liberation Serif to match the rest of the document. Is this possible? \documentclass[12pt]{article} \...
3
votes
1answer
59 views

nicematrix with fontspec

Why don't the nicematrix and fontspec package play well together? Here is a MWE: \documentclass{article} \usepackage{nicematrix} \usepackage{fontspec} \usepackage{lipsum} \begin{document} \lipsum*...
2
votes
1answer
118 views

Use Bahnschrift font with XeLaTeX

I'm looking to write a document with Bahnschrift, Microsoft's implementation of DIN 1451 font standard. So I made the code to see if I can have bold and italic font. % !TEX program = xelatex % !TEX ...
1
vote
1answer
67 views

Cambria fonts not working

I am experiencing the same problem with MikTeX 2.9 as I have with Overleaf, both using XeLaTeX. I need to use CAMBRIA.TTC fonts. The following example formats in both settings without bold and italics....
1
vote
2answers
257 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[...
24
votes
4answers
2k views

Capital ẞ in LaTeX/XeTeX/lualatex/whatever

I am trying to get a ẞ in my LaTeX document. How can I do this? I already tried: Using other fonts: dejavu and libertine Using \MakeUppercase{ß}, which sometimes produces nothing, sometimes produces "...