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

learn more… | top users | synonyms

2
votes
2answers
66 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} ...
-1
votes
0answers
85 views

Two variants this same character

I have a text that uses a specific font and some letters in it that appear in two or three variants. Is possible to use all this letters in one document? Every variant has a different size. Maybe TeX ...
21
votes
4answers
1k views

Which Unicode fonts are available with grades/optical sizes comparable to Donald Knuth's awesome eight grades in Computer Modern Roman?

Which Unicode fonts are available with grades/optical sizes comparable to Donald Knuth's awesome eight grades in Computer Modern Roman? It would be great to get at least 3 options! This question is ...
3
votes
1answer
238 views

xelatex select local math font

The problem I am facing is that I am typesetting with MinionPro-Regular.otf as the main font and MinionPro-Cn.otf for the captions. However I have to declare only one math font for the whole document, ...
4
votes
2answers
86 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
93 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
38 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
55 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
105 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
18 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
39 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
48 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
60 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 ...
2
votes
1answer
93 views

XeLaTeX - Bottleneck at eu1enc.def

With XeLaTeX my compiler always consistently slows down when it comes to accessing eu1enc.def (I am using the fontspec package). I tried with copying that file and the others employed at that point ...
2
votes
1answer
54 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
38 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 ...
5
votes
2answers
4k views

Angle brackets in non-math-mode text

Is there a way to directly input angle brackets into text without resorting to math-mode symbols? I'd like to correctly indicate orthography in a linguistics paper, and have been resorting to single ...
4
votes
2answers
1k views

How can I produce TeX Gyre Pagella smallcaps using xelatex?

Here's my input file: \documentclass{article} \usepackage{fontspec} \setmainfont[Mapping=tex-text]{TeXGyrePagella} \begin{document} abcde ABCDE {\scshape abcde ABCDE} \textsc{abcde ABCDE} ...
1
vote
1answer
39 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} ...
13
votes
1answer
215 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 ...
4
votes
1answer
65 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
33 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
64 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
45 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 ...
2
votes
2answers
46 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
36 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. ...
1
vote
1answer
210 views

\LaTeX macro: “Font shape `OT1/LatinModernSans(0)/m/n' undefined” [closed]

I tried compiling the following example using LuaLaTeX (LuaTeX v0.76/TeX Live 2013): \documentclass{beamer} \usepackage{fontspec} \usepackage[ngerman]{babel} \defaultfontfeatures{Ligatures=TeX} ...
7
votes
1answer
160 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
503 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
76 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} ...
3
votes
2answers
126 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 ...
0
votes
0answers
40 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 ...
1
vote
1answer
123 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
2answers
157 views

Which font extension is better to work with XeLaTeX

I am curious to know which font extensions works better when using XeLaTeX to compile a TeX document. I have just downloaded the font Alegreya from CPAN, and it comes with a fonts folder that includes ...
21
votes
1answer
828 views

LuaLaTeX protrusion problem with Negative value

Please see the following screen shots. As you can see there are two "overfull" hbox there. However, LaTeX does not produced any overfull box warning at all. I tried to produce a minimal working ...
2
votes
1answer
98 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 ...
3
votes
1answer
60 views

Problem with greek letters in Computer Modern Unicode

I've tried to use Computer Modern Unicode (version 0.7.0) with XeLaTeX to write greek letters. However, using the following code in TeXLive 2012 or 2014, the shapes of "βγλθωχ" seem different with ...
12
votes
1answer
269 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 ...
0
votes
0answers
30 views

The quote symbol in LuaLatex [duplicate]

I have a document which are previously compiled with regular pdflatex with \usepackage{times}, the typographic quote symbols are generated correctly as: And once I started to use LuaLatex with: ...
1
vote
0answers
61 views

Bold and sans serif at once with fontspec and LuaLaTeX

As you know, the code like \sffamily{\bfseries{...}} gives bold and serif font at once. If to use fontspec (luatexja-fontspec in my case) it is not enough just to define bold and sans serif fonts. If ...
2
votes
1answer
278 views

Is there a way to use external font files with unicode-math?

I use fontspec with LuaLaTeX to load fonts from external file even if they are not installed on the system. Such as \usepackage{fontspec} \setmainfont[Path=fonts/, Extension=.otf, ...
4
votes
1answer
502 views

Modifying EB Garamond font

Is possible modifying this font to have only the "normal" s and u also in the doubles ? \documentclass[pagesize=auto, version=last]{scrartcl} \usepackage{fontspec} \usepackage{microtype} ...
8
votes
1answer
385 views

A Big fancy “Q”

One time I remember seeing a Q ligature in \setmainfont{EB Garamond} (fontspec, EB Garamond, etc.) that involved a wonderful long swash. Now I don't know how to get it. Contrary to most other ...
10
votes
1answer
240 views

How to force a long-tailed Q in EB Garamond

I'm using XeLaTeX and EB Garamond to produce a facsimile of a 17th-century French pamphlet. EB Garamond, at least with its default settings, seems to select the long-tailed Q only when the Q is ...
0
votes
0answers
36 views

PyX with Chinese Characters / Xetex / encoding

I've been struggling with getting PyX to output some Chinese characters. The routes I have been trying are: Getting PyX to use Xetex changing my encoding using ...
1
vote
1answer
71 views

Fontspec en- and em-dash ligatures

When producing en- or em-dashes with fontspec enabled i XeLaTeX, the ligatures are not produced, it simply prints -- and ---. MWE: \documentclass{article} \usepackage{fontspec} \setmainfont{Linux ...
7
votes
1answer
55 views

XeLaTeX: Letterspacing with swashes

I'm trying to use XeLaTeX to typeset a word in EB Garamond, and I want only two of the letters in the word to have swashes. However, the swashed characters screw up the letterspacing: ...
6
votes
1answer
77 views

LuaLaTeX, Fontspec: Wordspacing and Letterspacing

I have a command \work which will format titles in SmallCaps and with less letter spacing. Now the funny thing: If I try to add some word spacing, too, and only for SmallCaps, it affects the whole ...
5
votes
1answer
101 views

Accessing an alternate representation of a letter in fontspec

Recently I've been trying to access a specific letter from the WatersTitlingPro-Rg font, through LuaLaTeX and fontspec. The Waters Titling Pro fonts is a small caps only font. Specifically, I'm ...
1
vote
1answer
91 views

Table with a different fonts for different columns

I'm using XelaTeX to typeset a table with a vocabulary list in a foreign language, with a structure similar to this one: different columns are typeset in different fonts (and scripts). It seems that ...