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

learn more… | top users | synonyms

3
votes
1answer
773 views

How to achieve different formats for label and text in a subsection heading using titlesec

How to get a different formatting for the label and text of a subsection using titlesec? Reason: Italic numbers in the subsection heading hurts my eyes and should be avoided at all cost, Label of the ...
3
votes
1answer
4k views

Xelatex / Fontspec how to load fonts directly from diskfile (Postscript Type 1 fonts)

I have a directory containing a Type 1 Sabon font I want to use in Xelatex. I want to use the font by specifying the filenames using the fontspec package. I specifically define the bold and italic ...
2
votes
2answers
2k views

Ligatures with Century Schoolbook L in xetex [Ubuntu]

I don't get any ligatures, like the fi ligature. I'm using: URW Century Schoolbook L (afai can determine anyway) XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian) Ubuntu 10.04 This is ...
3
votes
2answers
387 views

Where is fontspec.cfg?

I'd like to write \let\newfontinstance=\newfontfamily in fontspec.cfg, but I cannot find that. May I please know where I can find it? Thank you!
5
votes
2answers
2k views

Error in \setmainfont

I'm trying to follow the example on the Wikipedia page about XeTeX. But when I run the TeX code, I get this error: (/usr/share/texmf/tex/latex/etex-pkg/etex.sty) ...
8
votes
1answer
1k views

Double quotes with monospaced font and LuaLaTeX

I am trying to set the following minimal document: \documentclass[a4paper,11pt]{article} \usepackage{fontspec} \setmonofont{Inconsolata} \begin{document} \begin{verbatim} <!DOCTYPE HTML PUBLIC ...
5
votes
1answer
1k views

Using Graphite fonts on XeLaTeX

I want to use a Graphite font as the main font in a XeLaTeX document, but fontspec doesn't support Graphite fonts yet. Currently I'm using XeTeX's native way to change fonts, but that's cumbersome, as ...
5
votes
2answers
924 views

Math italics with unicode-math.

I'm using Tex Live 2010. Here's the example I want to discuss. \documentclass{article} \RequirePackage{amsmath} \RequirePackage{unicode-math} \setmainfont{Linux Libertine O} ...
4
votes
1answer
646 views

fontspec and \color

Compiling the following example (with xelatex or lualatex), I would expect to get violet letters abc: \documentclass{article} \usepackage{xcolor} \usepackage{fontspec} \setmainfont{Verdana} ...
27
votes
2answers
2k views

An example of changing kerning of a font in LuaLaTeX

LuaLaTeX, through the luaotfload package, is able to dynamically add and modify features and properties of a font. This is performed by using the FeatureFile option in fontspec when loading a font; ...
6
votes
2answers
1k views

Accessing Private Use Area Character by fontspec in XeTeX

I am using XeTeX to encode Opentype fonts. One of the feature of opentype font is availability of Private Use Area. Generally, Private Use Area in most cases contains different variants of same ...
16
votes
3answers
5k views

Fontspec: Palatino with small caps and old-style figures

For various reasons, I’m using the fontspec package. However, I’d also like to use Palatino as the document’s main font, and I want to use it with small caps and old-style figures. So I’ve got four ...
6
votes
2answers
687 views

How to make sense of font metrics?

If I have a Tex font, and I want to really understand how it will be laid out by Tex, and what features of the font to bear in mind when tuning my output to be beautiful, what tools are useful for ...
8
votes
1answer
375 views

Whatever happened to \newfontinstance?

I just installed a pretest version of TeXLive 2010 and tried compiling some files as a test. None of my XeLaTeX files compile because apparently the command \newfontinstance (which was defined in ...
9
votes
2answers
4k views

XeTeX not working on Ubuntu 10.04?

When trying to compile a LaTeX document in Ubuntu 10.04 with xelatex I get the following error message: This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian) restricted \write18 ...
9
votes
2answers
2k views

Math in Trebuchet MS

How can I write equations in Trebuchet MS? Ideally, I'd like to have the following results: All symbols that are available in Trebuchet MS are written in Trebuchet MS. That includes, e.g., Latin and ...