Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [fontspec]

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

Filter by
Sorted by
Tagged with
7
votes
1answer
1k views

Can XeLaTeX generate bold and italic font styles for typefaces that lack them?

I use XeLaTeX in order to have easy access to fonts installed on my operating system, and Chinese in particular. Some of the Latin typefaces most pleasing to my eye do not have bold or italic font ...
6
votes
1answer
429 views

Trouble with contextuals in LuaLaTeX with fontspec - trying to get internal long Ss to work

I have been trying to get a project of mine set with internal long Ss. Using fontforge, I have tried to set up the contextual (both [calt] and [cswh]) feature - but when I do, I get no results in the ...
2
votes
1answer
843 views

problem of (double)quote--choosing char by glyphs

I use fontenc, fontspec and xelatex to load the custom font. \usepackage[T1]{fontenc} \usepackage{fontspec} \usepackage[utf8]{inputenc} \usepackage{xunicode} \setmainfont[Mapping=Tex-Text]{...
0
votes
0answers
193 views

Problems with xltxtra and footnote [duplicate]

Possible Duplicate: How to change parameters for \textsuperscript{} in french? I use fontspec to load the local fonts (ITC Esprit Std Book). Everything is fine (the only main problem may be, \/ ...
1
vote
1answer
2k views

XeLaTeX does not find fontspec any longer after TeXLive update

I am using XeLaTeX in TeX Live suites 2010 and everything was going well before I did an upgrade via TeX Live Manager minutes ago. Now every document I compile gets a "File not found" error as the ...
2
votes
1answer
1k views

xkeyval error when I try to use fontspec and OpenType fonts in XeLaTeX

I can't seem to get XeLaTeX to load OpenType fonts using \fontspec. Section 4.2 of the fontspec documentation says that I need to load OpenType fonts by filename rather than font name, but when I ...
2
votes
1answer
679 views

Adding weight to a font in xetex

My monospaced font in Xetex is Courier New, but appears too thin on screen. I can switch to the bold version, but that's too heavy. Is there is a way with Xetex and fontspec to add some weight to a ...
2
votes
2answers
6k views

xelatex compilation error

I am using xelatex to compile a tex file. However, I got a strange problem, the log says: ! This is a LaTeX bug: check coding! ! ! Command name `\font_set:Nnn' already defined! Any hint to solve it?...
3
votes
1answer
1k views

fontspec-example.tex on texlive 2010 and Ubuntu?

I try to run fontspec-example.tex through xelatex on my Ubuntu 10.10 installation, combined with texlive 2010. The package cannot find any of the fonts, e.g., TeX Gyre Pagella (error is that kpathsea ...
5
votes
1answer
515 views

Use variant glyphs from Mac OS X fonts under Linux

I would like to get the variant option from fontspec working under Linux. Unfortunately, this option which works with the AAT font system is not compatible with the OpenType font mechanism used under ...
60
votes
2answers
29k views

Load fonts that are in a ./fonts directory

I'm new to TeX. I have the following problem: How can I load a font from a file in a directory, which is located in the root of the project? Say I have something like: /project /fonts ...
12
votes
1answer
1k views

Baseline shift with fontspec?

Is there a way to manually adjust the vertical position of a font using fontspec (in XeLaTeX)? Such a feature would be quite useful when typesetting Asian text, since different font vendors often ...
12
votes
2answers
6k views

Finding a font for XeTeX

I am trying to customize this document, it's a CV template for XeTeX. What I'd like to be able to do is change the main font. I belive the section of the code I need to change is this: %FONTS \...
13
votes
3answers
13k views

How do I change the math italic font in XeTeX/fontspec?

I have a document where the main font is Gotham Book. So in my preamble I have: \usepackage{fontspec} \setmainfont{Gotham Book} As the fontspec manual describes, this sets the math roman font to ...
13
votes
1answer
2k views

Lining numbers not working in certain fonts

I’m using the Linux Libertine font and have old style numbers enabled. However, in a certain context I want to use lining figures instead. Normally I should be able to switch using \addfontfeature ...
5
votes
1answer
1k views

Using \texttt with polyglossia Hebrew

\texttt does not work as expected when using it with the polyglossia package, in a segment in the Hebrew language, even when the actual text to be set is Latin. I tried reading fontspec documentation, ...
2
votes
3answers
9k views

'fontspec' package problem with XeLaTeX in MiKTeX 2.9

Recently, I updated to MiKTeX 2.9, and after this the xelatex compiler fails when compiling documents with the fontspec package included. In other words, the following code won't compile: \...
4
votes
1answer
2k views

fontspec Error for some XeTeX/LuaTeX function

I have a template I got from the internet. When I run it I get the following error. ! Fatal fontspec error: "not-pdftex" ! ! Requires XeTeX or LuaTeX to function! I have XeTeX and LuaTeX installed....
6
votes
3answers
9k views

Last step in moving to XeTeX: Font shape problems

I am trying to move to the XeTeX distribution. My current problem is the following: If I leave these packages I have no problems with the Helvetica. \usepackage[portuges,english]{babel} \usepackage[...
2
votes
3answers
3k views

Trouble with unicode-math/fontspec in XeTeX

The following MWE yields a wrong output: \documentclass{article} \RequirePackage{xltxtra} \RequirePackage{unicode-math} %\setmainfont{Linux Libertine} \setmathfont{Asana Math} \begin{document} \(\...
4
votes
1answer
3k views

XeLaTeX ttf font support

Watertank is some ttf font that I got from one of those cheap fonts CDs. I know it is installed in my system because I can use it in other programs; but when I use it in XeLaTeX (which works with ...
13
votes
1answer
1k views

How to use lining figures in siunitx and fontspec?

I'm using XeTeX and fontspec, and I have selected old-style figures for my body text. Now I use the siunitx package, and have set it up to use text fonts instead of math fonts. For the siunitx values ...
2
votes
1answer
2k views

xelatex+fontspec is slow (after a fast xelatex -no-pdf)

xelatex -no-pdf blazes through a single page diagram using pstricks+fontspec but xdvipdfmx on the .xdv output is VERY slow (about 20 seconds delay). Using xdvipdfmx -E -vv efa.xdv makes me think ...
12
votes
1answer
3k views

Old style numbers without fontspec

How do I use old style numbers everywhere without using fontspec? Or is it even possible? Where do I find the documentation for the fonts in the LaTeX Font Catalogue? Minimum (Non)Working Example: \...
40
votes
9answers
23k views

How to get straight quotation marks?

How do I get straight quotation marks, i.e., " and ' in TeX? (No, \verb changes the font and this is unacceptable.) [Edit] I forgot to mention that I’m using XeLaTeX, and fontspec is a necessity. ...
0
votes
1answer
280 views

stringstrings replacement for XeTeX?

To construct a lower-case filename out of the mixed-case argument given to a command, I used stringstrings in LaTeX. Now I switched to XeTeX and it seems the fontspec-package has some interference ...
3
votes
2answers
7k views

Problems with fontspec and titlesec packages

I've been trying to create a CV template by following the tutorial from here. Here's the latex code I used \documentclass[a4paper,10pt]{article} %A Few Useful Packages \usepackage{marvosym} \...
3
votes
3answers
2k views

LuaLaTeX: use System font Monaco on Mac OS X

I'd like to use the Mac OS X (.dfont) Monaco with LuaLaTeX. With this input file \documentclass{article} \usepackage{fontspec} \setmonofont{Monaco} \begin{document} \begin{verbatim} foo \end{...
4
votes
4answers
4k views

Math symbols not showing while using fontspec

Math, symbols are not showing when i am using the fontspec package. Here i paste the command and output please tell me as to how i can rectify this. Command: \documentclass[10pt,amssymb]{revtex4} \...
4
votes
1answer
1k 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 ...
5
votes
1answer
5k 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 ...
3
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
655 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) (/usr/share/texmf/tex/latex/base/...
8
votes
1answer
2k 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
2k 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 ...
7
votes
2answers
1k views

Math italics with unicode-math. [closed]

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} \setmathfont{...
6
votes
1answer
1k 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} \begin{...
30
votes
2answers
3k 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; e....
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
7k 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 ...
7
votes
2answers
1k 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 ...
9
votes
1answer
902 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 ...
12
votes
2answers
6k 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
3k 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 ...