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

learn more… | top users | synonyms

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
1k 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 ...
15
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
913 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: \usepackage{...
0
votes
1answer
489 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
471 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 ...
18
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
419 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 ...
2
votes
1answer
5k 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
251 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
12k 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} \...
13
votes
1answer
8k 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) \documentclass[10pt,...
8
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} \end{...
4
votes
2answers
682 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
4k 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
954 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
547 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} \usepackage{fontspec}...
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
603 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
939 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
2k 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 ...
18
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 ...
21
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} \defaultfontfeatures{Ligatures=...
12
votes
2answers
9k 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
536 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} \newfontfamily\...
7
votes
2answers
585 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 ...
9
votes
3answers
2k views

Letterspacing, Minion Pro, and Tufte-LaTeX (problem with running header)

I'm trying to use Minion Pro with the Tufte-LaTeX class. Basically, I've got it working, but I have a problem with letterspacing the small caps for the running header. Rather than appearing in small ...
1
vote
1answer
2k views

Polyglossia and fontspec's script feature.

Hi I have a question regarding the combination of polyglossia and fontspec I have written the folllowing: \documentclass[oneside, 12pt]{book} \usepackage{fontspec} \setmainfont[Script=greek, Mapping=...
10
votes
1answer
17k views

Change font of document title

I have used fontspec to style all of my headers with a new font with: % Specify different font for section headings \newfontfamily\headingfont[]{Gill Sans} \titleformat*{\section}{\LARGE\headingfont} ...
11
votes
4answers
1k views

Replacing Unicode non-breakable spaces by normal spaces

I am using the Neo keyboard layout, which uses all kinds of modifier keys to input all kinds of characters (e.g. Greek letters and mathematical symbols). It also has shift+Mod3+space mapped to Unicode ...
2
votes
2answers
2k views

How can I load a true type font in luatex? [duplicate]

Possible Duplicate: Load fonts that are in a ./fonts directory I have a TTF file zapf-chancery.ttf in the same folder as my LaTeX document. How do I make this font available in my document?
22
votes
3answers
9k views

How to scale Tikz drawings and text together?

I'm trying to build a diagram (a logo, actually) that I can scale easily through a parameter. I'd like to be able to scale both drawing and fonts through a single parameter. Here's my current MWE, ...
8
votes
1answer
864 views

Minion Pro activate small caps for greek

According to otfinfo, greek small capitals are supported in Minion Pro. otfinfo --script=grek -f MinionPro-Regular.otf ... smcp Small Capitals ... yet the following MWE \documentclass{article} ...
2
votes
1answer
560 views

fontspec, defining boldfont using diskfiles directly not possible?

I'm defining my mainfont using fontspec, providing an additional option for the italic fontshape: \setmainfont[Path=C:/fonts/SabonNext/, ItalicFont = SabonNextLT-ItalicOsF.otf]{SabonNextLT-RegularOsF....
7
votes
3answers
3k views

Add colour to margin notes

I'm using LyX with XeTeX and the KOMA-script article class. I'm trying secsty and fontspec for the first time. I'm trying to do a unique layout with large outer margins. On some pages I will put key ...
3
votes
1answer
2k views

XeTeX, fontspec and Garamond

I've got the opportunity to play with a machine with some premium fonts installed. I ran some experiments with XeTeX and e.g. Palatino Linotype, which worked, but for some reason cyrillic breaks with ...