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

learn more… | top users | synonyms

0
votes
0answers
7 views

Arabic script not displaying in chapter headings, even though body text is fine.

In the MWE below {thanks to @maïeul}, the Arabic chapter heading and chapter number does not display the Arabic font, but the body text displays fine. It seems to be a problem with Arabic, because ...
2
votes
1answer
34 views

Ligatures with Alegreya Font in XeLaTeX

The following code does not create the expected ligatures (note that Alegreya is OTF): %XeLaTeX \documentclass{report} \usepackage{fontspec} \setmainfont[ SmallCapsFont={Alegreya SC}, ...
3
votes
2answers
106 views

Shrink a line of verse

I have some lines of Sanskrit verse (left indented via a quoting environment) which are slightly too long, similar to the following example: \documentclass{memoir} \usepackage{quoting} ...
0
votes
0answers
15 views

Using setmonofont with Bera Sans Mono in Beamer produces garbled output

I am using Bera Sans Mono as the monospaced font for typesetting code listings using the listings package. This is done for slides which are produced using beamer and XeLaTeX. My preamble includes the ...
9
votes
3answers
133 views

Increase word space between words in small caps

With tracking activated for small caps, it can be a little bit hard to detect interword spaces. Cf. below. \documentclass{article} \usepackage{fontspec} \setmainfont{Libertine Serif}[ ...
4
votes
1answer
23 views

Defining subfamilies for a font

I wish to import from files a font family, which comes in extra light, light, regular, medium, bold and black. Instead of defining several different font names and choosing them as I need, it would be ...
4
votes
0answers
18 views

Unicode-math no bold math or greek letters [duplicate]

What could be causing this? I'm on Ubuntu 14.04 I've uninstalled the Ubuntu TexLive packages and installed TexLive 2015 directly, and just updated today with tlmgr I've tried a few different ...
8
votes
3answers
183 views

Aliasing an imported font to be reused later?

I have imported a font from files and set it as the main font like this: \setmainfont{EBGaramond}[ Path = fonts/eb-garamond/, Extension = .ttf, UprightFont = *12-Regular, BoldFont = *08-Regular, ...
6
votes
2answers
255 views

Historic font and missing ligatures

I am trying to compose a sort of old-style book. I would like to use a specific historical font for the entire text. This font includes ligature glyphs for: ff, fi, fl, ffl, and st (see Figure 1 for ...
7
votes
1answer
112 views

Combine kerning, small caps, and tracking in luatex

As is known, luatex requires the fontspec option Renderer = Basic in order to display small caps when microtype's tracking = true is used. \documentclass{article} \usepackage[tracking = ...
1
vote
2answers
65 views

Substitute one glyph for an alternate glyph of another stylistic set

In LuaTeX, I want to do the following: Having a text in the standard stylistic set of the font, but for a specific letter instead of having the glyph of the standard stylistic set, having it ...
1
vote
0answers
41 views

sans serif math font selection using unicode-math

I am typesetting a document in XeLaTeX using a serif font for main text, and a sans serif for everything else (section titles, tables etc). For setting of mathematics, I use TeX Gyre Pagella Math. ...
4
votes
0answers
107 views

lualatex: Error when loading a font from a relative path

I'm trying to load a .ttf from lualatex, which works fine when I place the .ttf in the same folder as the .tex file. However, for my project structure it would be beneficial to store .ttf files in a ...
2
votes
1answer
21 views

How to fix problem with `fontspec` and `wrapfig`?

MWE: \documentclass[a4paper,12pt,twoside]{memoir} \usepackage{graphicx} %\usepackage{fontspec} \usepackage{wrapfig} \usepackage{lipsum} \begin{document} \chapter{Fundamentals of Modern Physics} ...
1
vote
1answer
29 views

Changing Caption Font Doesn't Work

I need to format the caption of tables and figures in my document so that is is 10pt Arial font bold faced. The main font is 12pt Times New Roman. I've tried the following (MWE), but it doesn't seem ...
10
votes
1answer
2k views

textls breaks smallcaps with luatex

I'm switching a code to LuaTex from XeTeX. In XeTeX, I had a combination of tracking and small caps using LetterSpace and WordSpace parameters in fontspec calls, but these are not supported in with ...
5
votes
1answer
56 views

Scale font to a desired x-height/em/cap-height/etc' in fontspec

When reproducing a typographic layout from print I often run into the usual difficulty of a font's "point size" not being easily measureable on a page. On the other hand, features such as x-height and ...
4
votes
1answer
159 views

How can I use OpenType Collection font with fontspec package and LuaTeX?

Remark: I have accepted Herbert's answer because I'm now able to use Source Han Code JP by utilizing OTF fonts at the moment. However, that might not be a true solution to the conflict between ...
1
vote
2answers
79 views

Fontspec - Erewhon : what is the difference between setmainfont and usepackage?

What are the diffences and are there drawbacks involved in replacing \setmainfont{erewhon} by \usepackage{erewon}? In the first case there is no bold small caps, but there are in the second. This is ...
2
votes
0answers
21 views

Fontspec, bold small caps with Erewhon

How to have bold small caps with Erewhon ? \documentclass{article} \RequirePackage{fontspec} \setmainfont{Erewhon}[ Extension=.otf, UprightFont=*-Regular, ...
3
votes
1answer
120 views

fontawesome and pdflatex [closed]

When using pdflatex and the fontawesome package the below error shows up. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! Fatal fontspec error: "cannot-use-pdftex" ! ! The fontspec package ...
5
votes
1answer
134 views

Using swash italics through fontspec

I am trying to use Minion Pro’s swash italics in my files. The typical method, \usepackage{Minion Pro} and \textsw{Text to be Swashed}, fails when using fontspec. I need fontspec to switch between ...
3
votes
1answer
39 views

fontspec+polyglossia… lack of spaces before punctuation marks (French) in standalone and dinbrief

I fail to get Lualatex to properly typeset punctuation marks for French when using the classes standalone or dinbrief. In this minimal example I would expect to see spaces before the colon and before ...
18
votes
1answer
337 views

siunitx disturbs spacing of \, in math with xelatex

In the following example - compiled with XeLaTeX - the spacing of \thinspacing/the value of mu (used by \,) is disturbed if \SI is used in the math before: \documentclass{article} ...
15
votes
2answers
3k views

How do I change the font size in LuaLaTeX?

\documentclass{minimal} \usepackage[paperheight = 140mm,% comprimento paperwidth = 200mm,% altura margin = 10mm % tamanho da margem ]{geometry} ...
0
votes
0answers
61 views

XeLaTeX and changing fonts inside a document

Here is a detailed explanation of how to use various fonts inside a document in XeLaTeX: How do I use a particular font for a small section of text in my document? However, there is no MWE to ...
0
votes
1answer
42 views

How to display italics (obliques) with SourceSans Pro?

I'm working in a document with lualatex where I want to use the Adobe Source family: Source Sans Pro, Source Serif Pro and Source Code Pro. My problem is that Source Serif Pro does not contain ...
6
votes
1answer
86 views

Having trouble enabling ligatures with HF&J's Mercury Text OpenType font

I'm sure this font supports ligatures, but I can't get them to show up. Example with Roboto for comparison: \documentclass[ 11pt, a4paper ]{scrartcl} \usepackage{fontspec} ...
5
votes
1answer
57 views

Linguex bad spacing between number and examples with certain values above 99 when using old style numbers

When using linguex example numbering packing, if I use \defaultfontfeatures{Numbers=OldStyle} with xetex or luatex, then with certain example numbers exceeding 99, there is no spacing between the ...
10
votes
1answer
180 views

XeLaTeX: Set an alternative font in case it is not found

I am setting up the packages for a shared project with someone who's not familiar with LaTeX. I want to use some of our local fonts. I used XeLaTeX and it works. However, we'll also use a notebook ...
3
votes
0answers
27 views

Incorrect rendering for Khmer using LuaLaTeX

When I compile the following MWE with XeLaTeX, it works pretty fine. But when I compile with LuaLaTeX some Khmer vowels are missing. Does LuaLaTeX support Khmer Unicode? Or is this a problem caused ...
5
votes
2answers
87 views

Why does fontspec interfere with Ligatures? (In retrospect: How the dutch hyphenate)

The tufte sample text (provided by ConTeXt) contains a || sequence which normally gets turned into an emdash. For some reason the inclusion of fontspec disables this. I've tried to use various options ...
2
votes
1answer
38 views

TypeWriter font have no effect with polyglossia package

Using XeLaTeX engine, MWE1 works fine with fontspec and ucharclasses package. But when I change fontspec to polyglossia (MWE2), there is no TypeWriter font effect. Moreover, the first sentence of ...
0
votes
0answers
15 views

\setmainfont error with most recent fontspec version [duplicate]

I get a mysterious error running the following MWE (with both XeLaTeX and LuaLaTeX): \documentclass{article} \usepackage{fontspec} \setmainfont{texgyrepagella-regular.otf} \begin{document} Hello ...
2
votes
0answers
2k views

fontspec kernel/property-unknown [closed]

I have a problem with fontspec. When i try to build simple document: \documentclass[11pt, a4paper]{article} \usepackage{fontspec} \begin{document} aaa \end{document} I get an error: ...
6
votes
2answers
419 views

Arabic bibliography with biblatex

I haven't found any mention of the possibility of inserting a bibliography entry with biblatex in Arabic script (Arabic in this case). Is there any way I can do it?
4
votes
1answer
54 views

\thinspace/\, inserts no space

In my greek-german document, the second \, of the combination \,--\, doesn't actually insert a space. It rather looks as if I wrote just \,-- (Often, the same occurs with other languages and fonts, ...
1
vote
1answer
38 views

change script of footnote label in bidi

I am using Memoir and polyglossia (including fontspec and bidi). My document contains text in Arabic script and Latin script. I'd like the footnote labels (footnotemark) to display in the defined ...
1
vote
0answers
52 views

Substitute a character by another one (Lualatex)

The lowercase figures of Adobe Garamond Pro are very nice, but the 1 can be confusing: Is this 11 (as it should be) or 2 in Roman? I would like to replace automatically this lowercase 1 with ...
4
votes
1answer
57 views

Change font blackness

\documentclass{article} \usepackage{fontspec,kantlipsum} \begin{document} \fontspec[Scale=0.9]{Trebuchet MS} \kant[1] \end{document} I'm using XeLaTeX but the text is way to black, it's like if I ...
1
vote
1answer
274 views

Latest MiKTex update breaks with fontspec

I'm using this document class type https://github.com/praseodym/tudelft-report-latex/blob/master/tudelft-report.cls and I get the following error when I run it throgh XeLatex: ! Undefined control ...
0
votes
0answers
84 views

CV template run time error in TeXstudio

i am trying to make cv by using LaTex template but there is an error when i start compilation. Fatal fontspec error: "cannot-use-pdftex" The fontspec package requires either XeTeX or LuaTeX to ...
0
votes
0answers
29 views

TexPad and fontspec package

I am compiling a .tex file with XeTeX from the cloud on an Ipad with TexPad. Whenever I try to load the fontspec package, it fails. Does anyone have any experience with this problem? Can TexPad simply ...
5
votes
3answers
66 views

local application of \addfontfeature and WordSpace=x

I wanted to reduce the inter-word space for some passages in a written text with the rest of the text remaining unchanged. So I tried to use \addfontfeature locally which I execute with the command ...
4
votes
0answers
182 views

“Undefined control sequence” error with fontspec

As a result of updating the l3kernel, l3packages, and l3experimental, a XeTeX document I'm working on no longer compiles. I've narrowed down the problem to fontspec failing to find a control sequence ...
1
vote
1answer
152 views

Cannot compile xelatex template

I try to create my CV using the following template two-columns, one page. I manage to find the fonts in .ttf format and installed them in my win7 system. However, I get an error of "font-not-found" ...
2
votes
0answers
30 views

Changing the Font of Variables in an Equation Using XeLaTeX

I am trying to digitalize a book(130pages) by retyping it all(copy is in a really bad shape to be scanned). I am attempting to use Helvetica Neue as the main font for all numbers and variables on all ...
5
votes
1answer
41 views

Circumflex over Numeral with fontspec

For a music analysis paper I'm working on, I need to enter an arabic numeral with a circumflex over it to represent a musical scale degree. Normally, I can just use \^3, but as soon as I load the ...
6
votes
2answers
127 views

How to get proper placed closing German doublequotes using lua|xelatex and Garamond Premier Pro Opticals (Regular)?

Using Adobe's Garamond Premier Pro Opticals (latest version: 2.104) the closing German doublequotes are set exactly above (instead of behind) a sentence's closing dot (e.g. questionmark is not ...
2
votes
1answer
64 views

Is there any way to use OpenType’s “access all alternates” feature in XeLaTeX?

This is inspired by this question, where an alternate character of a font is only available via OpenType’s access all alternates (aalt) feature. My question is simply: Is it possible to access this ...