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

learn more… | top users | synonyms

6
votes
3answers
162 views

Why fontspec breaks extarrows package

Why \documentclass{book} \usepackage{extarrows} \usepackage{fontspec} \setmainfont{Times New Roman} \begin{document} $$Q\xLongrightarrow{\text{Maximum}} P$$ \end{document} produces this output: ...
2
votes
0answers
140 views

Small caps font is not enabled with fontspec and MinionPro

I can't make lualatex generate small caps font when I use MinionPro as my main font: \documentclass[a4paper,justified,nobib,notoc]{tufte-book} \usepackage{fontspec} \title{ABC} \author{Arthur ...
5
votes
1answer
119 views

Is there a simple way to manually change font with font size in XeTeX?

Many typfaces come with different fonts for different font sizes. For example Surveyor Pro has a Book style for main text and a Display style for headings (or in general, large text). Another example ...
3
votes
2answers
136 views

\textlf{} for light font weight – how common?

In the allrunes.sty documentation (which uses Metafont), I’ve recently seen the \textlf macro for the first time. It selects a light font and therefore accompanies the frequent command \textbf and its ...
7
votes
2answers
123 views

Problem with babel and fontspec

I've just had a problem on using babel with lualatex (or xelatex as well) and fontspec in the context of latin and cyrillic alphabets. Here is a minimal example: \documentclass[11pt]{article} ...
5
votes
1answer
143 views

ucharclasses package does not work with TeX Live 2014's fontspec

With full TeX Live 2014 ucharclasses package no longer works with fontspec. It works with BasicTeX 2014 because BasicTeX 2014 uses old version of font spec from 2013. Here is an example document ...
2
votes
0answers
71 views

fontspec related font setting compiles on Linux, but not on Windows

I have this portion of code: \documentclass{scrartcl} \usepackage{amsmath, fontspec} \usepackage[math-style=TeX, bold-style=TeX]{unicode-math} \setmathfont[StylisticSet=0]{xits-math.otf} ...
3
votes
0answers
121 views

Error using fontspec v2.4a and unicode-math [closed]

Compiling the following example with XeLaTeX or LuaLaTeX \documentclass[11pt]{article} \usepackage{unicode-math} \setmathfont{latinmodern-math.otf} \begin{document} \small \begin{tabular}{c} Foo ...
1
vote
1answer
103 views

Problem working fontspec, babel and datetime with cyrillic

I have discovered that fontspec with russian babel settings doesn't work with datetime package. I tried to compile such code: \documentclass[a4paper,11pt]{article} \usepackage[T2A]{fontenc} ...
0
votes
0answers
25 views

Error: Font \l_tmpa_font has only 8 fontdimen parameters [duplicate]

I get the above error when I try to use my main font for the math letters. If I leave out the \sqrt[3]{2} bit, it works but gives a load of complaints about not having the OpenType feature ...
4
votes
2answers
81 views

Disabling ligatures in xelatex like rmligs

Ligatures set by Latex are often wrong in German (i.e. between combined words like "Auflaufform"). To set these words correct I often use rmligs which is a great tool to disable ligatures when the use ...
2
votes
0answers
76 views

Error when using luaotfload-tool

i am trying to install Myriad Pro at my Ubuntu PC to use it with Lualatex and fontspec. The font is correctly installed and can be used in LibreOffice. fc-list | grep -i myriad -> Myriad ...
1
vote
1answer
34 views

Compilation error with fontspec and BoldFeatures [closed]

Using fontspec 2.4, why won't the following example compile? \documentclass{article} \usepackage{fontspec} % version 2.4 \setmainfont[BoldFeatures={Color=AA0000}]{Arial} \begin{document} This is ...
2
votes
0answers
62 views

Incompatibility of scrbook and fontspec in TeX-Live 2013

Since updating to TeX-Live 2013 I am facing the following error: Compiling the following file by XeLaTeX ... \documentclass{scrbook} \usepackage{fontspec} \begin{document} bla \end{document} ... ...
7
votes
1answer
213 views

Fontspec 2.4 and Scale=MatchLowercase causes error

I just updated to TeXLive 2014 and when compiling the following code using either XeLaTeX or LuaLaTeX I get an error: \documentclass{article} \usepackage{fontspec} \setsansfont{Latin Modern ...
3
votes
2answers
177 views

small-caps figures, anyone?

Is there a good (possibly free) opentype font out there with small-caps figures and small question and exclamation marks; and could I use them with xelatex + fontspec? Or, better still, is there a ...
1
vote
2answers
76 views

Curly Quote usage in XeTeX via LyX

I have this preamble in my LyX document: \widowpenalty=10000 \clubpenalty=10000 \raggedbottom \usepackage{dtklogos} \usepackage{fontspec} ...
5
votes
1answer
156 views

Problems using Expert Fonts

I recently purchased an expert font, Calluna (exljbris). There is only one problem when using the font: The font is encoded with Old Style numbers by default. I don't know how to access the Lining ...
3
votes
0answers
72 views

Combining diacritical mark is misaligned with luatex, but not with xetex

Consider the following code: \documentclass{article} \usepackage{fontspec} \setmainfont[BoldItalicFont = {* Semibold Italic}]{Linux Libertine O} \begin{document} \textit{\textbf{V\char"0306}} ...
1
vote
0answers
119 views

Ansi Encoding for Embedded Fonts in PDF Output

Rendering PDFs with identical fonts using InDesign versus using LuaLaTeX with fontspec in TeXworks, I have found differences in Acrobat Reader's descriptions of the embedded font types and encoding. ...
7
votes
3answers
240 views

XeLaTeX: How to specify a different font family for Latin text within non-Latin text?

In a XeLaTeX document whose main language is non-Latin (in the sense of using non-Latin alphabet), I'd like the Latin text to be typeset with a different font family from that of the main text. How do ...
3
votes
1answer
61 views

Setting figure caption font face

I'd like to change font face of all figure captions. I'm currently using the fontspec package to set main font of the document. I'm also using DeclareCaptionFormat to set font size. I fail to see any ...
3
votes
0answers
69 views

Can I turn a variable width font into a fixed-width font?

I found a free ancient-typewriter font I'd like to use in a project, but the person who made it apparently traced some scanned outlines and poured them into a variable width truetype font. That is not ...
4
votes
3answers
309 views

combine \usepackage{times} and \fontspec \setmainfont

I'm having difficulty finding a Times-like font which has support for Americanist phonetic symbols, bold, italic, bold italic and small caps. Currently, I've got a setup using xelatex which gets me ...
3
votes
2answers
177 views

How can I make fontspec avoid black italics with Charter in OS X Mavericks?

OS X Mavericks includes a copy of the font Charter in /Library/fonts/Charter.ttc. This file provides six variants: roman, italic, black, bold, black italic, and bold italic. As the following example ...
7
votes
1answer
152 views

Loading a font via package or fontspec

In Xe(La)TeX, what is the difference between loading a font via its package, i. e. \usepackage{tgpagella}, and loading it through fontspec (\fontspec{TeX Gyre Pagella}). When loaded with the package, ...
3
votes
2answers
193 views

Fontspec/xeCJK AutoFakeBold and copyable Chinese characters in PDF

I'm writing a document in mixed English and Chinese (with the xeCJK package. I want to add some fake bold headlines using the font Kaiti SC. When I do this using the AutoFakeBold option, this makes it ...
7
votes
2answers
132 views

Is it possible to use the punctuation of one font within another font?

I'm in the process of trying to turn an English document into Hindi based on a translation in Word. However, I'm struggling to find a font that does what I want. As I'm working with an existing ...
0
votes
0answers
79 views

Beramono in XeTeX?

I like the beramono font, and I want to use it for code listings (using the listings package). I want the standard CMR tt font for typewriter font in the body of the text. I could do this using ...
5
votes
2answers
254 views

How to select a font for the main Chinese character and another font for its Furigana?

The objective is to make a list of Japanese vocabularies with Kanji stroke order for the main characters, its furigana (small kana characters placed above the main characters), and its meaning (in ...
8
votes
1answer
142 views

Ensuring embedded Fonts are hinted for on-screen PDF viewing

I'm trying to recreate a pleasing page layout from an existing pdf as a way to get more familiar with book design in latex. The geometry part was fairly simple to get right, but I've come across a ...
3
votes
0answers
178 views

Font found with XeLaTeX not found with LuaLaTeX on Linux [closed]

The following MWE will build correctly with XeLaTeX but not with LuaLaTeX. \documentclass{article} \usepackage{unicode-math} \setmainfont{TimesNewRomanPSMT} \setmathfont{CambriaMath} ...
9
votes
2answers
130 views

Define a new \XXseries macro for light fonts

Is ist possible to define a new series with fontspec? I tried the following but … it throws an error if the font doesn’t have a light version instead of replacing the font, like \bfseries does. In ...
4
votes
2answers
98 views

Set length to the line height of a particular font

How to define new length using : \newlength{...} \setlength{...}{...} and equal to the line height of a particular font (for example \tiny\ttfamily) Note : I want a solution which does not involve ...
1
vote
1answer
204 views

Tracking with XeTeX via LetterSpace

When I use PDFLaTeX I have a setup using microtype and a font available in small caps (eg \usepackage{lmodern}), \usepackage[ protrusion=true, expansion=true, kerning=true, spacing=true, ...
1
vote
1answer
97 views

Vector font for suetterlin

I want to use the old German "Kurrentschrift" in equations. In LaTeX, this is already integrated in the package suetterl: \documentclass{article} \usepackage{suetterl} \begin{document} ...
3
votes
1answer
84 views

Telugu font characters not correctly produced from xelatex

Anyone have this issue. This is the following code. \documentclass{article} \usepackage{fontspec} \setmainfont{Gautami} \usepackage{polyglossia} \setmainlanguage{telugu} ...
2
votes
1answer
242 views

Using MinionPro for math and ArnoPro for text

As the title says, I want to use ArnoPro as my main font for text while using MinionPro for all math (inline or display). What I did for ArnoPro was since I have Windows on my laptop as well as Linux ...
4
votes
0answers
133 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 ...
10
votes
0answers
192 views

Old ligatures in Siṇhala

I am trying to reproduce a term from an old Siṇhala-English dictionary. I have checked several fonts and the best candidates for the job seemed coming from the Bhashitha font family. The font contains ...
2
votes
1answer
80 views

Problems for use differents fonts in a document with XeTeX

I'm working a document using the scrartclclass with the following options and packages: \documentclass[10pt,letterpaper,DIV=14,titlepage=false,twocolumn=on]{scrartcl} %\usepackage[DIV=14]{typearea} ...
3
votes
2answers
69 views

Translate content in fields in bibliography entries (biblatex)

I have in the @thesis entries in my .bib file the names of institutions and types written in the local language of the thesis. I need to translate these to English. As an example, I need to translate ...
2
votes
1answer
190 views

About font and designs

I'm new to Latex, I finally decided to learn it after having discovered that LibreOffice writer sucks. I thought it helps you create better text but after having spent almost two hours on this site, I ...
0
votes
1answer
82 views

Sans serif fonts in block headers while using another package [duplicate]

I'm brand new to TeX and am making my first beamerposter. I'm using XeLaTeX and I like the package pxfonts for the math and the body text. However, I'd like to have sans serif text in the block ...
5
votes
1answer
123 views

Big brackets are always opening and square when using fontspec with MnSymbol

I have here a strange problem I don't get. When using the fontspec package in combination with MnSymbol package all big brackets in math mode are square and opening... when I deactivate one of the ...
11
votes
3answers
189 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 ...
0
votes
1answer
249 views

Font “AGaramondPro-semibold” cannot be found

I have a document [CV template taken from Paul Gessler. I am having difficulty finding AGaramondpro-Semibold font from fontspec package. I have already upgraded the fontspec package from package ...
4
votes
1answer
322 views

Lualatex, fontspec and externalized tikz problem in MacTeX

To enable faster compilation of large documents I'd like to externalize tikz pictures. I also have to use lualatex and fontspec. EDIT: After further testing it seems that this is a problem only when ...
4
votes
1answer
152 views

Parentheses and square brackets contextually in small caps

In a book publication I use references in parentheses with an open type font. The references are set in small caps (both letters and numbers): % xelatex xetex 0.9999 texlive 2013 windows ...
3
votes
1answer
78 views

Custom font family with siunitx

I'm trying to set some relatively large tables in my document. I used fontspec to create a new font family, which I use only to set tables. Specifically, I'm using the Bell Centennial font to set my ...