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

learn more… | top users | synonyms

1
vote
1answer
35 views

Boisik font in combination with fontspec

I'm trying to use fontspec (XeLaTeX) in combination with the Boisik font, which turns out to be hard. The following order \usepackage{boisik} \usepackage{fontspec} leads to fontspec overriding ...
3
votes
1answer
39 views

Fontspec not searching in TEXINPUTS

I'm writing an application in which I want to generate pdf file using xelatex. The process of generating the pdf file from tex file takes place in a tmp file however data files such as fonts and ...
14
votes
2answers
330 views

Getting ligatures of Qv with Linux Libertine

In old texts in Danish, the letter combination Qv was common and more or less worked like Qu in English. Now the code \documentclass{memoir} \usepackage{fontspec} ...
1
vote
0answers
36 views

How to kern small caps with italics or regular characters?

Theoretical question Why are small caps and italics of the same typeface treated as if they were absolutely different (and, as a consequence, they aren't properly kerned)? I know no —so to speak— ...
7
votes
4answers
179 views

Using \fontsize in XeLaTeX and LuaLaTeX

In the Wikibooks/TeX article on fonts, it is stated that The \tiny...\Huge commands are often enough for most contents. These are fixed sizes however. In most document processors, you can usually ...
2
votes
0answers
80 views

An annoying overflow in mdframed environment with tufte-handout

I'd like to highlight a text block in a Tufte style document. I defined myblock environment based on mdframed package. \documentclass{tufte-handout} \definecolor{MyGray}{rgb}{0.95,0.95,0.98} ...
7
votes
0answers
86 views

Why is \setmainfont case sensitive with XelateX but not with LuaLaTeX?

Consider the following MWE \documentclass{article} \usepackage{lipsum} \usepackage{fontspec} \setmainfont{tex Gyre Pagella} \begin{document} \lipsum[1] \end{document} If I compile it with LuaLaTeX ...
1
vote
1answer
36 views

fontspec and textcomp

On various sites, they recommend not loading the textcomp package under XeLaTeX but to simply use the combination of fontspec & xunicode (the latter being loaded automatically by the former). This ...
4
votes
1answer
52 views

Small caps with TeX Gyre Heros (via unicode-math/fontspec) in beamer

I would like to use small caps for short text sections in a beamer presentation. In a normal article, the following produces small caps in the TeX Gyre Heros font, as shown in this question: ...
5
votes
1answer
87 views

LuaLatex change main text font for everything a part of numbers

Thanks the abundance of templates on the Internet seldom I use LaTeX (LuaLaTeX engine) also for non-academic texts like relations or letters. So sometime I like to use other fonts than the Computer ...
4
votes
0answers
37 views

How to load baskervaldx font in xelatex

I'm trying to use the baskervaldx font in XeLaTeX; however it doesn't kern properly. With LaTeX it works as supposed. What is the right way to load the Baskervaldx font? With LaTeX, default install ...
3
votes
0answers
142 views

Tikz Externalize with LualateX - Fontspec?

There are several questions already posted about issues externalizing tikz with the Lualatex engine. However, most of these are dead ends with no correct answer. The reasons for externalizing are ...
3
votes
1answer
44 views

\XeTeXglyph for Math Mode (alternative?)

Is there an alternative for \XeTeXglyph that works in math mode? Or is there a way \XeTeXglyph itself can work in math mode? I want to access a specific glyph as a math symbol (UF091F specifically) ...
3
votes
0answers
65 views

prevent combining characters if single characters are available

I am working a lot with characters such as: ā ū ī š ṣ ḫ ḥ ǧ ġ ṯ ṭ ẓ ḍ ḏ. There are (at least) two ways to typeset such characters either as a single character or as a combined character. ...
2
votes
1answer
111 views

Bug with XeLaTeX \setmainfont{CMU Serif} command displaying Bold/Italic/BoldItalic fonts

Bold/Italic/BoldItalic fonts with \XeLaTeX's \setmainfont does not work correctly. For example (below), the \textbf{English} and \textit{English} looks like normalfont. With \LuaLaTex it is works ...
2
votes
1answer
47 views

fontspec has no effect on changing English font after using \setTransitionsForLatin

I want to write a paragraph with two languages, Khmer and English. And I want to change font sometimes. Here is the code: \documentclass{article} \usepackage[no-math]{fontspec} ...
4
votes
1answer
30 views

unwanted double width space before inline listings when using luatexja-fontspec

I am seeing an extra big space (which looks like double width space) in my document before inline listings bits: MWE: \documentclass[]{article} \usepackage{fontspec} \usepackage{listings} ...
3
votes
2answers
110 views

fontspec in book title

I have the following code: \documentclass{book} \usepackage{fontspec} \begin{document} \part{title} \chapter{\fontspec{Latin Modern Roman} chapter title} \part{title} \chapter{title} ...
2
votes
1answer
24 views

Control glossaries fontsize

What is the most convenient way to control the fontsize of the text printed by \printglossary from glossaries ? For example, \documentclass[12pt]{article} \usepackage{fontspec} ...
8
votes
1answer
95 views

Incompatibility between fontspec and graphicx (bug of XeTeX)

I got a weird problem with the fontspec package and the graphicx package. Let's see the MWE first. %!TEX program = xelatex \documentclass{article} \usepackage{graphicx} \usepackage{fontspec} ...
1
vote
0answers
32 views

Font Selection: XeLaTeX with polyglossia and Greek [duplicate]

I am writing a document in English that contains words and passages in ancient greek. XeLaTeX seems ideal to this purpose because one doesn't need to mark the text. Loading polyglossia and choosing ...
3
votes
1answer
48 views

Getting glyph names

I can't get the XeTeXglyphname command to produce any output. My code is shown below. I suppose that this command produces a string as output; do I need to do something special to make this string ...
9
votes
1answer
245 views

How to get access to this special character?

I just bought the font Uberschrift which brings tons of ligatures with it, but u nfortunately I'm not able to get access to them. I tried to find out wich is the symbol's name and this is what ...
2
votes
2answers
90 views

French spacing with xelatex and Minion Pro

I've just installed the full version of MacTex 2014 on my MacBookpro running OSX 10.8.5, and I'm surprised by the output of this minimal document compiled with xelatex, \documentclass[]{article} ...
4
votes
2answers
107 views

Manually specifying a system TTF font seems to break curly/smart quotes

The following code... \documentclass{article} \usepackage{lipsum} \usepackage[a4paper, margin = 0.4in]{geometry} \usepackage{fontspec} \begin{document} \fontspec[Scale=3]{URW Bookman L Light} ...
7
votes
1answer
119 views

Mapping ‘space + character’ into ‘non-breaking space + character’

I have files containing fragments of Old English texts. These files use the letter wynn (ƿ (U+01BF) and Ƿ (U+01F7)) which I want to print as modern w (U+0077) and W (U+0057). This I have no problem ...
2
votes
0answers
72 views

Computer Modern with fontspec in XeLateX (package mod)

I'd like to type my CV/resume form Friggeri's template (http://www.latextemplates.com/template/friggeri-resume-cv) that is based on Helvetica Neue fonts which I do not have on my computer and the ...
0
votes
1answer
60 views

How to use a system font together with latex fonts

I am trying to use a display font for special headers -- it is Anton in truetype format, but to continue to use normal Latex fonts for the rest of the document. I thought this would be achieved by ...
3
votes
1answer
118 views

En-dash instead of two short dashes for page range in bibliography

Since I'm working with the fontspec package, using the Segoe UI font (actually, let me include a secondary question here: which font would you prefer for a scientifical paper on influenza, keeping in ...
1
vote
0answers
40 views

XeLaTex: 'Font Shape undefined'

I'm trying to use custom fonts, but I can't get it to work. Compiling with XeLaTex \documentclass[a4paper]{article} \usepackage{fontspec} \usepackage[T1]{fontenc} ...
2
votes
0answers
46 views

How does mktexmf find fonts on mac?

I installed a new font using Font Book on my mac. But when I try using fontspec, I get an error that says "font-not-found". It seems that the name that appears in the Font Book application is not ...
3
votes
0answers
60 views

letterspacing of mathpazo and Tex Gyre Pagella in LuaLaTeX

I am typesetting my phd thesis, and I was hoping to use Palatino as main font. For some of the headings I wanted to use a fancy TTF font, so I switched from pdfLaTeX to LuaLaTeX to compile my ...
5
votes
1answer
72 views

greek character of GFS Porson is missing with LuaLaTeX (fontspec, polyglossia)

When I LuaLaTeXify a document with GFS Porson as greek font, it doesn't print the Greek semicolon (·) when written as ·, it uses the latin semicolon when written as ;. If I am right, · is ...
3
votes
1answer
65 views

Specifying various fonts with various scales with fontspec

The fontspec package allows us to define something like: \setmainfont{texgyrepagella-regular.otf}[ BoldFont = texgyrepagella-bold.otf , ItalicFont = texgyrepagella-italic.otf , ...
3
votes
1answer
53 views

Fontspec finding no fonts for XeLaTeX

Consider this MWE: \documentclass{minimal} \usepackage{fontspec} \setmainfont{Latin Modern Roman} \setsansfont{Latin Modern Sans} \setmonofont{Latin Modern Mono} \begin{document} X marks the ...
1
vote
1answer
76 views

Fontspec can't find italic font (installed later) but will use condensed (installed first) on OSX

I installed a bunch of Myriad Pro variants in Font Book and was using LuaLateX to set the section headers to this font: \newfontfamily{\headingfont}{Myriad Pro} ...
4
votes
1answer
84 views

Bold weight for custom font

I just found out today about the fontspec package, which I find very useful for fonts that I have installed system-wide. I'm a big fan of handwriting-like fonts and I happen to love Pecita. So much ...
3
votes
1answer
38 views

Is cyrillic actually missing in LinLibertine monospace?

If you consider this MWE, then for me lualatex does not display texttt{Привет, мир!} but non-monospaced cyrillic text is displayed fine. \documentclass[notitlepage,oneside]{article} ...
2
votes
1answer
111 views

Installing a .otf font and using it with fontspec (LuaLaTeX on a Mac)

I've downloaded an .otf font (specifically one called Dalelands Uncial) that I would like to use in a document. I've double-clicked on the file and selected install, so that it now sits in my ...
2
votes
1answer
49 views

Using the fonts from the pxfonts package with fontspec

I've been using the pxfonts package to typeset my document since I liked the look of the text fonts. I now have cause to use the fontspec package but now my favoured pxfonts don't load. I'm getting ...
15
votes
1answer
275 views

Training Tesseract with generated LaTeX files

My problem Tesseract is an OCR that can be trained. I need to train it to take into account a new specific font (which is a ttf font). I found this discussion that indicates it is possible to ...
2
votes
2answers
50 views

Change letter colour without losing letter spacing

I am designing a poster with XeLaTeX and want a word with custom letter spacing and where each letter is a different colour. The example below shows the problem: the first word is spaced as I want but ...
0
votes
0answers
43 views

How to set background image using XeLaTex?

I need to create {beamer} presentation like this one: Unfortunately I can't set picture background using XeLaTeX properly. With pdfLaTeX it works fine but TrueType fonts disappears. ...
7
votes
1answer
189 views

How to have Helvetica or helvet font with lualatex having similar look as with pdflatex?

Continuing the migration to lualatex, how to have the same aspect for sans serif fonts in lualatex as with pdflatex ? Is there something I haven't install or is it the wrong commands ? ...
15
votes
3answers
520 views

Lualatex : € as a utf8 character is not recognized : why?

I need to include some tex files as parts of a more global project. Some of this global projects have to be compiled with pdflatex, some others with lualatex, but the parts are the same. All this part ...
5
votes
0answers
84 views

Letterspacing via microtype vs fontspec (in LuaLaTeX)

I've just realised that I can get somewhat similar letterspacing effects using either the microtype or fontspec packages; for example: \documentclass{article} \usepackage{fontspec} ...
0
votes
0answers
57 views

Scale font sizes – match text font (Comfortaa) and math font

Before I start, I want to note that I don't know very much about (La)TeX's font system and find it to be very confusing and not very well-documented. I've read the "fntguide", but that only gives very ...
3
votes
2answers
146 views

Access a glyph on fontspec using a GID (Glyph ID)

I'm trying to access a glyph, but it's only mentioned in the "Basic Latin and Latin 1" set for a font. The glyph has no name or unicode ID, but it does have a glyph ID or GID. fontspec doesn't mention ...
1
vote
1answer
150 views

fontspec – sans-serif as main font?

fontspec defines the commands \setmainfont[font features]{font name} \setsansfont[font features]{font name} \setmonofont[font features]{font name} to set the document's default fonts. However, if I ...
2
votes
1answer
107 views

Everything in small caps with fontspec and XeTeX

I seem to be having the opposite problem from everyone else. I am using fontspec and would like only the title and section headings to be small caps yet everything is unless I specify textbf or textit ...