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

learn more… | top users | synonyms

7
votes
2answers
1k views

How do I get fontspec to work with text color white in XeLaTeX

In a previous question ( How do I globally set the text color in XeLaTeX ), I've asked how to globally set a text colour in XeLaTeX and got some excellent answers. However, while the proposed ...
13
votes
1answer
855 views

Use stylistic set variations only for certain glyphs

Some fonts include stylistic variations of certain glyphs. But it seems like there is only a global switch for these alternates, as in this example from the fontspec manual: \fontspec{Linux ...
1
vote
1answer
829 views

xetex: broken accent over cyrillic letters in some fonts

I just noted that XeLaTeX yields wrong accents over cyrillic letters if I use Arno Pro or Myriad Pro fonts. I mean the command like these: \'{o}, `{o}, \~{o}, \c{o}, \d{o}, e.c.t. They ...
8
votes
2answers
2k views

LuaLaTeX, fontspec and tracking with microtype

I try to get microtype's tracking working but without success: up-to-date TeXlive 2011 (lualatex 0.70.1) with microtype v2.5 beta 07. Sample code: \documentclass{article} ...
2
votes
2answers
859 views

Combining Typefaces [duplicate]

Possible Duplicate: Choosing font for bold small caps (or any other particular family+series+shape combination) I am using Aldus obtained from Adobe and installed using this method (after ...
0
votes
2answers
792 views

LuaTeX cannot find existing TTF font [closed]

Using lualatex, I get the following error: </usr/local/share/fonts/HoodHeaven Ornaments Two SSi.ttf> !LuaTeX error: cannot find OpenType font file for reading () ==> Fatal error occurred, ...
5
votes
3answers
874 views

Controlling fontspec to use certain font features for different fonts in one document

I'm using the font Fontin to prepare a document and have come across a problem when using the discretionary ligatures. The regular font supports the discretionary ligatures, but the bold and italic ...
11
votes
1answer
2k views

Best free Baskerville font with small caps

I have been using the Baskervald font for a document but have realised that small caps do not work with it. Instead lowercase letters are used. Is there a better free option if you want these features ...
6
votes
1answer
875 views

Fontspec: Is there any practical difference between \setmainfont and \newfontfamily + \def\rmfamily{…}

As the title of this question suggested. Is there any practical difference between \setmainfont{font name} and \newfontfamily\familyname{font name} \def\rmfamily{\familyname} I had a look into ...
6
votes
1answer
402 views

Arithmetic overflow with fontspec and LuaTeX

I have the following code using this font: \documentclass{minimal} \usepackage{lettrine} \usepackage{fontspec,xunicode} \newfontfamily\EBLettrineFont{EBGaramondInitialsF2} ...
5
votes
1answer
1k views

fontspec + package “accents” (bezos) = “! LaTeX Error: Command `\acute' already defined.”

I am trying to define the "less-than" Symbol "<" as a math-accent via the "accents" package of Javier Bezos. \documentclass{minimal} \usepackage{fontspec} \usepackage{accents} \begin{document} ...
4
votes
1answer
1k views

XeLaTeX: System font for headers only?

I know that you can use \setmainfont for normal text but is there any command that will apply a font only to headers (chapters, sections, subsections)?
6
votes
1answer
905 views

Fontspec SizeFeatures and recursive font definition

I suspect this isn't valid code, but the docs are ambiguous. fontspec is loaded with \fontspec[<font features>]{fontname}. BoldFont is included in "font features". Then I should be able to ...
13
votes
1answer
1k views

How does fontspec select fonts “by name”?

When loading a font by name, what is the search mechanism being used? How is the matching done? (It's marked TODO in the documentation) I have many problems, for example: a "Hoefler Text Engraved" ...
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 ...
6
votes
2answers
1k views

Font name in LuaTeX's fontspec

I have a document using fontspec which works fine with XeTeX, but a the Linux Libertine Initialis O font is not found when compiling with LuaTeX: Here is a MWE reproducing the problem: ...
7
votes
2answers
885 views

Terminus with fontspec in XeTeX

When using \setmonofont with fontspec in XeTeX, I wonder what fonts (or type faces) I can use. fc-list yields among others: Terminus:style=Bold Terminus:style=Regular So I tried this: ...
0
votes
1answer
466 views

Random character varients being used with fontspec

I'm trying to get the hang of xelatex and fontspec and I'm a little confused about how character variants are selected. I'm using the font Bickham Script Pro. Confusion (1) Some words are ...
5
votes
1answer
447 views

Importing missing glyphs in font

I'm using a title font which has very few characters, and I need '+' and '=' for a given title, which are missing. Using fontspec, is it possible to import only these two missing glyphs from another ...
17
votes
1answer
2k views

How to flip / produce the mirror image of a special character in xelatex

I'm producing a menu with xelatex using the font Bickham Script Pro. It has a swirly pattern I'd like to use at the beginning and end of a line. The swirly character would need to be flipped to have ...
1
vote
1answer
406 views

Replace integral sign in CM(U) Bright with Iwona while keeping proper position of integral limits

I am typesetting my thesis in CMU Bright OpenType using font spec. For the math fonts I'm using the CM Bright T1 font. The result looks nice except for the integral sign which does not match of other ...
1
vote
1answer
4k views

Set the “font-weight: lighter/ bolder”

I need to know how to set the "font-weight: lighter/ bolder" font-weight: lighter/ bolder \documentclass{article} \usepackage{fontspec} \begin{document} \font\ta="Times New Roman":color=ff0000 ...
3
votes
2answers
3k views

How can I compile a tex with Helvetica under Linux?

I'm trying compiling this latex template example (CHI Extended Abstracts template) under linux (XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010/Arch Linux) using xelatex. This is the output I'm ...
3
votes
1answer
245 views

Font portability between platforms? Windows/Linux

If I first work in Windows environment then move to Linux, do I just copy all the fonts in the Windows system font folder into the Linux system font folder? I'll be using xelatex and fontspec.
6
votes
2answers
2k views

LuaLaTeX: Font table with examples of font files (not system or TEXMF installed)

Looking at the answer to the question here, it is very close to what I wanted. What I wanted is to create font table with samples for font files that are not system installed or in TEXMF trees, but ...
17
votes
3answers
10k views

Switching back to Computer Modern within XeLaTeX

Until I select a font using \fontspec{ ... }, XeLaTeX uses the default of Computer Modern. Once I select some font, I have no idea how to re-select Computer Modern. Can anyone help?
2
votes
2answers
1k views

XeLaTeX with Polyglossia and Thai

The following example displays the English text alright, but not the Thai text. It is simply left blank in the PDF result. \documentclass{report} \usepackage{fontspec} \setmainfont{Times New Roman} ...
11
votes
1answer
7k views

XeLaTeX with polyglossia and Greek

I'm struggling a lot with XeLaTeX and polyglossia. Somehow the font selection doesn't seem to work as I would expect it (and as the error messages suggest). Please consider the following example: ...
7
votes
1answer
2k views

Table of Contents Style

I really enjoy the table of contents formatting (all sections of a chapter in a single paragraph), of the Motion Mountain's physics books. Does anyone know how to reproduce that kind of style? Is ...
5
votes
1answer
2k views

With fontspec, how can one define a variation of a font family?

I keep running into the following situation using fontspec with XeTeX: I define a "base" font family using \newfontfamily. I then want to access a "spaced small caps" variant, using the LetterSpace ...
19
votes
2answers
3k views

Lualatex: Font table with examples

I wanted to create a table of the fonts on my machine with short examples of each. So I got the function below and tried to modify to print the font in its typeface. (LuaLatex) ...
7
votes
1answer
2k views

Latest MiKTeX-Update broke XeLaTeX with fontspec

I updated MiKTeX a few days ago and since then I cannot compile XeLaTeX with fontspec anymore. \documentclass{article} \usepackage{fontspec} \begin{document} Hello world! \end{document} When I try ...
4
votes
2answers
2k 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} ...
4
votes
2answers
672 views

How can i use special glyphs in large font sizes, with fontspec?

now i have some trouble with font size declaration, using XeTeX's fontspec package. I read the fontspec manual. There is no explicit section about font size, but i see that the author of the manual ...
11
votes
1answer
3k views

XeTeX, microtype and fontspec

I am using XeTeX from TL2010 with microtype 2.5 beta and fontspec. My main font is Linux Libertine O. I do not see a single difference with and without including the microtype package. Am I doing ...
5
votes
2answers
885 views

fontspec \setmainfont over-rides href color

I'm happy with the way fontspec is working for me, but have one problem. I have the command: \setmainfont[Color=393939]{URW Palladio L} which colors all the text in my document. I have darker greys ...
3
votes
2answers
530 views

Linux Libertine Initials break emph

Loading the Linux Libertine Initials font breaks the emph command, even if the font is not used: \documentclass{scrartcl} ...
4
votes
2answers
4k views

XeTeX can't find font

I'm using fontspec with XeTeX from TL2010. I've installed the Linux Libertine OTF font files in /usr/local/share/fonts, ran fc-cache and I can see them listed: $ fc-list | grep -i libert Linux ...
1
vote
1answer
560 views

Selecting an alternate style with fontspec

I've got a font with two styles showing up in fc-list, corresponding to two TTF files: Humanistic:style=Regular Humanistic:style=Cursive How can I select the Cursive style in fontspec?
18
votes
2answers
2k views

How should fontspec be set up to exploit the best features of Pro fonts?

Suppose that you have a Pro class fonts such as Adobe Arno which has several design sizes as described below: Design Size Size Ranges Caption: 8 point 5–8.5 point SmText: 10 ...
6
votes
1answer
893 views

XeLaTeX and missing spaces in PDF text

I use xelatex to compile a PDF from this tex-file: \documentclass[14pt]{scrartcl} \usepackage{fontspec} \usepackage{xunicode} \usepackage{xltxtra} \usepackage{polyglossia} \usepackage{lipsum} ...
7
votes
2answers
1k views

Change XeTeX fonts automatically depending on Unicode blocks

I would like to move from p(La)TeX (which was a TeX system specifically tailored to Japanese in a pre-Unicode era) to Xe(La)TeX, and I'm having a problem. In p(La)TeX, Japanese fonts are only used ...
17
votes
1answer
1k views

TeX accents do not seem to work with fontspec and xe/lua/latex

I am using Minion Pro as mainfont and it does not have in its glyph table the character U+1E47 Latin small letter with dot below which I need only once in my document. Rather than change to another ...
2
votes
4answers
1k views

Dynamic stretching of text

For the needs of a running title (in header), I would like the text of a running title (in header) to be stretched over the page. So far, I stretch it manually (using LetterSpace and WordSpace in ...
19
votes
3answers
5k views

How to enable ligatures for emdash/endash in LuaTeX ?

I cannot switch on ligatures for emdash (---) and endash (--) in LuaLaTeX. Here is my test file: % !Mode:: "TeX:UTF-8" \documentclass{article} \usepackage{fontspec} ...
12
votes
2answers
8k views

\fontspec or \setmainfont do not load fonts from current directory

I am trying to use GARA.TFF (Garamond) in my latex document. \setmainfont can not find the font when I try to load it from the current directory. Here is the document: \documentclass{article} ...
11
votes
3answers
3k views

Using MinionPro for the main font and Fontspec for the monospaced font

I am using Minion Pro for my document's main font and would like to use Consolas for my code listings. I know that I can set the monospace font using fontspec and setmonofont, but it seems I cannot ...
1
vote
3answers
532 views

Latino Elongated, XeTeX and small capitals

I'm using the Latino Elongated LET font with XeTeX and I can't get small capitals to display: \documentclass{scrbook} \usepackage{fontspec} \newfontfamily\lelong{Latino Elongated LET} ...
7
votes
2answers
568 views

LuaLaTeX sees a font while fc-list doesn't

I've got a fresh Arch Linux box with fresh full TeX Live installed. The installation seems to include cm-unicode fonts and lualatex seems to find them correctly, but when I run fc-list the output ...
7
votes
1answer
4k views

Setting default font size in \newfontfamily

When mixing fonts in XeTeX, some fonts have quite different aspects for the same size. Say, I'm using Linux Libertine as my main font and I want to use Latino Elongated for chapter headings. Latino ...