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
22 views

Adobe Fonts (formerly Typekit), LuaLaTeX, and Optical Sizes

I’ve been having trouble using fonts that make use of Optical Sizes from Adobe Fonts (formerly Typekit) in LuaLaTeX. 1 · Adobe Fonts As Adobe Fonts uses a clever injection mechanism to inject its ...
4
votes
0answers
48 views

Source Han: Em dashes (U+2014) fail to compose as U+2E3A and U+2E3B

Background A 破折号 (pòzhéhào, Chinese em dash) is a punctuation mark used in Chinese typesetting. It has very similar usage to the Western em dash. The Chinese em dash has two ...
0
votes
0answers
59 views

migrating from Linux to Mac

For the longest time, I have written LaTeX documents on Unix or Linux. Due to several reasons, I'm actively planning to move this to Mac. I installed Mactex, Linux Libertine fonts, RomDev.tec and ...
0
votes
1answer
30 views

How to use mtpro2 together with other math-font?

for example, load mtpro2 and XITS-Math for different paragraph But it seems, mtpro2 und unicode-math can not be loaded together Error like: LaTeX error: "kernel/command-already-defined" ! ! ...
2
votes
1answer
93 views

\setmainfont works with XeTeX but not with LuaTeX

I'm trying to use LuaTeX with Adobe's Garamond Premier Pro, but it doesn't work, saying that: ! error: (type 0): cannot find file '' ! ==> Fatal error occurred, no output PDF file produced! ...
4
votes
1answer
47 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 ...
2
votes
1answer
82 views

Getting fontspec Fonts with pdfLaTeX

I have to make a document, which was originally written in LuaLaTeX, compatible for both pdfLaTeX and LuaLaTeX. Everything works except that the fonts differ. How can I force pdfLaTeX/fontenc to use ...
8
votes
3answers
415 views

Why does the baseline skip depend on the letters depth in some fonts?

I have some trouble with the line high using an OTF with fontspec package. The baseline skip of a line differs depending on the depth of the used letter. So for example a line containing a »g« is ...
2
votes
1answer
48 views

\ohm does'n show while using user font

I want to use Source Serif Pro as mainfont and XITS Math as mathfont. But \setmainfont{Source Serif Pro} makes \SI{100}{\ohm} not working. if remove \setmainfont{Source Serif Pro}, it looks ...
0
votes
0answers
41 views

Specifying relative paths with fontspec

My goal is to specify a relative path when loading fonts with fontspec, so that I can provide custom fonts within my package. Otherwise, the user will be forced to install the font manually, which is ...
0
votes
2answers
65 views

font families side by side

for sure nothing that not has been answered already but i can't find it. How to get roman and sansserif fonts in one document? I need the LATEX Roman while my document is sans serif. \documentclass[...
0
votes
1answer
42 views

Fontspec does not find font using a common style file

In mydir/subdir, I have \usepackage{../../latex/lecture/mylecture} invoking the below mylecture.sty: \usepackage{fontspec} \usefonttheme{professionalfonts} % using non standard fonts for beamer \...
4
votes
0answers
125 views

Localized glyphs (locl) have unicode value U+FFFD (�)

Originally this seemed to me like a font issue, as there was no equivalent problem with other fonts, as indicated by this good MWE: Copied text from good PDF EBGaramond12-Italic.otf: [ - ] бгдпт [...
2
votes
2answers
64 views

Positioning of text in tikzfadingfrompicture

I'm trying to create an effect in LaTeX Beamer where an image is cut out in the shape of a letter. I want the letter to be placed in the top left corner of the frame, and in the background, so text ...
0
votes
1answer
25 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 ...
2
votes
0answers
42 views

Accented characters in a hyperlink, and problems with opening a new window

With this MWE, I have different results depending on the pdfviewer on linux box : Evince dosen't find the link because of the é, but opens a new window on a non-accented link Okular finds the link ...
1
vote
2answers
43 views

Mismatch in small-caps/caps in appendix sections numbering

The MWE below creates a section numbering in the appendices of the form A.1, A.2 with A in small caps, but 1,2,3 in full caps. How can I either make A full caps or the number small caps? \...
0
votes
2answers
40 views

Configuring LaTeX to use fonts installed through portableapp.com

portableapp.com is a windows app that provides (besides a suite a portable apps) a workaround for installing fonts on a windows machine, without admin access. The work around is described in detail ...
1
vote
1answer
39 views

Bold font size is not changed for \setmainfont

I wanted to typeset a document with Times New Roman 18pt size (using xelatex). MWE: \documentclass{article} \usepackage[a4paper]{geometry} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \...
2
votes
1answer
25 views

Misalignement and interword spacing with mono font

I'm making a document with XeLaTeX and I would like to use a mono TTF font (Liberation Mono) and a special (reversed) indentation for my paragraphs. I don't understand some things about words spacing ...
1
vote
1answer
60 views

Babel before or after fontspec?

Paying keen attention to package loading order, I wonder if babel should be loaded before or after fontspec. Neither manual carries information on the loading order. Furthermore, there are ...
2
votes
2answers
146 views

fontenc vs fontspec with XeLaTeX

I have encountered something I fail to understand. I have read that I should use fontspec and not fontenc when I use XeLaTeX, but this causes some problems for me when I use the cochineal font package....
4
votes
2answers
138 views

LaTeX Fonts with fontspec-package

Today i figured out how to use system-installed-fonts with the fontspec-package and LuaLaTeX. But i can't figure out how to use fonts, that are installed in my texmf-tree! The fontspec-Manual says (...
3
votes
2answers
84 views

Without loading fontspec, \verb* cannot produce visible space under XeLaTeX

\verb* fails to produce visible space, under XeLaTeX. The problem repairs if package fontspec is loaded. By the way, \textvisiblespace produces visible space under both occasions. Moreover, \verb* ...
6
votes
2answers
89 views

\hbar not displayed with fontspec on XeLaTeX/LuaLaTeX

With \usepackage{fontspec}, \hbar does not show up correctly. Tested on LaTeX2e <2018-04-01> patch level 5 and fontspec.sty 2018/07/30 vv2.6h. \documentclass{article} \usepackage{fontspec} \...
1
vote
1answer
95 views

EB Garamond, and fontspec for “optical bold” with small caps?

This is somewhat a continuation of my EB Garamond (bold) small caps "suddenly" unavailable in lualatex? ; below, I had written some more details about this font for reference - but in brief, ...
1
vote
2answers
32 views

Math digits are in CM with newtxmath, fontspec and XCharter font (LuaLaTeX)

I've tried to follow this answer (and the subsequent ones cited there), but to no avail. When I try to compile with LuaLaTeX using the XCharter font, the numbers in math mode appear in CM. \...
4
votes
1answer
33 views

Fontspec: fall back to other font on missing glyph

Is it possible to tell fontspec to fall back to another font when the main font is missing some glyphs? In the example below, TeX Gyre Termes is missing the SUBSCRIPT ONE glyph (though there doesn't ...
1
vote
0answers
20 views

XeLaTeX exhibiting strange behaviour surrounding new pages and text shapes

I'm working on a XeLaTeX document using memoir with custom fonts. I have been experiencing strange behavior where, upon insertion of a page break (manually or by TeX), an undefined text shape is ...
4
votes
2answers
66 views

Selecting libertinus italic loads bold italic font

When using the libertinus font and compiling with xelatex, selecting the sans italic font with \textit causes the bold italic font to be loaded. Why? \documentclass{article} \usepackage{fontspec} \...
0
votes
0answers
24 views

Is there a way to use more than four font styles using fontspec? [duplicate]

I would like to use eight font styles in my document. They are: As far as I know, I can only use upto four of these fonts using fontspec: \usepackage{fontspec} \setmainfont{Roboto}[ Extension = ...
0
votes
1answer
45 views

MacOS & fontspec: font-not-found when using “defaultfontfeatures”

This is similar to, but not, to me, the same as, several other questions here. My MWE: \documentclass{article} \usepackage{fontspec} \defaultfontfeatures[DejaVu] { UprightFont = DejaVuSerif.ttf,...
0
votes
0answers
43 views

Fontspec can't find custom OTF-Files in Tex Live 2018 on Ubuntu

I've installed TexLive 2018 on an Ubuntu Machine. The reason behind is, that I would like to create a Docu triggered by a Jenkins build job. Therefore somebody delivered me a makefile which calls a ...
0
votes
1answer
48 views

XeLaTeX changes " to ”

Whenever I enter a QUOTATION MARK (U+0022), like in this MWE: \documentclass{article} \usepackage{fontspec} \setmainfont{Arial} \begin{document} This is "in quotes" \end{document} I end up with: ...
0
votes
2answers
44 views

English and Hebrew at the same file

Im trying to use culmus to write in hebrew few words as following for example: \documentclass[a4paper, 10pt]{article} \usepackage{ucs} \usepackage[utf8x]{inputenc} \usepackage{culmus} \usepackage[...
2
votes
1answer
61 views

\fontspec with scaling + \chemgreek = math font does not scale

I found this question: \chemgreek + \fontspec + Lucida.otf = missing greek characters which in principle solves my problem (missing greek characters). But since I use a scaling for my fonts another ...
5
votes
2answers
144 views

Mathastext: Wrong digits in math-mode

I'm using fourier and erewhon as my main (serif) text and math fonts. I want to use TeX Gyre Heros as sans font. Because this font has no math support, I use mathastext to fake it only for the sans ...
2
votes
2answers
70 views

Fake small caps & biblatex

I'm trying to use this answer: Fake small caps to use fake small caps with Times New Roman in my biblatex bibliography. For some reason I get the error message "improper alphabetic constant". It ...
2
votes
2answers
83 views

Support Arabic in LaTeX .cls file

Can you please add some lines to the following .cls file to support Arabic language? \ProvidesClass{bandar-cv}[2012/04/30 CV class] \NeedsTeXFormat{LaTeX2e} \DeclareOption{print}{\def\@cv@print{}} \...
0
votes
1answer
65 views

Why some font can be not found?

I set font in the document so \setmainfont{Akrobat} %or \setmainfont{Akrobat SemiBold} %or \setmainfont{Cormorant} %or \setmainfont{Cormorant Medium} %or \setmainfont{Cormorant Garamond SemiBold} It'...
2
votes
2answers
85 views

Fontspec, set font size for italic

XeLaTeX How can I set different font for all italic in the document? \setromanfont[StylisticSet=2, ItalicFont={Phenomena Light}, {Cormorant Medium} % Основной шрифт текста It's work. But I can't ...
1
vote
1answer
73 views

How can I use STIX Two with nextxtt?

I tried to load STIX Two with fontspec, STIX Two Math with unicode-math, and load newtxtt package directly. However, it seems that the document cannot be complied properly: If I load newtxtt before ...
0
votes
0answers
127 views

How to add Symbola to Overleaf v2 as not the main font?

I'm trying to migrate from Overleaf v1 to v2 to take advantage of TeXLive 2017 (compared to 2016 for v1), however Overleaf v2 doesn't include the Symbola font, which I rely on to supply occasional ...
0
votes
0answers
55 views

Command \m unavailable in encoding TU

I use XeLaTeX and normally do not use the fontenc package. But now I want to use a specific symbol which according to the symbols-a4.pdf needs T4 encoding which is provided by the fc package. ...
1
vote
0answers
70 views

Using Plex font in Sharelatex?

I would like to know how to use the IBM Plex font is Sharelatex. Therefore, I tried two approaches: 1: https://ctan.org/pkg/plex-otf \documentclass{article} \usepackage{blindtext} \usepackage[utf8]{...
2
votes
1answer
83 views

luatex fontloader virtual glyph table problem

I'm using Brill-Roman.otffont and with luatex I don't know how to access smallcaps glyphs from virtual fontloader.to_table returned table glyphs. There is no such index and I have no idea how to get ...
3
votes
3answers
228 views

math in MS Calibri

I have to typeset a document in Calibri upright letters. There is a problem with mathematics: When I typeset the following minimal-example, letters are right Calibri, but numbers are italic by default....
3
votes
2answers
115 views

How to scale inline mathmode font

I would like to know how to scale the size of the text on the integral limits and also the powers in the code given below: I used the command \DeclareMathSizes{10.95}{10}{7}{7} given here but there ...
1
vote
1answer
63 views

Using a different font for digits in text mode

I am writing a document for which I would like to use a main font, let's call it myfont, which I have as several .otf files. To do so, I use XeTeX along with the fontspec package and the setmainfont ...
2
votes
2answers
90 views

How to modify main font?

I would like to define \textsb command for semibold text as I could not find a package providing one (I very much wonder why it’s not part of the standard commands). I’ve found a nice solution in ...