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

learn more… | top users | synonyms

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
924 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} ...
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
534 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
577 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, ...
10
votes
1answer
16k 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
853 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 = ...
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 ...
2
votes
1answer
2k views

Computer Modern Unicode + OpenType for XeTeX / fontspec

I'd like to use the most modern version of the Computer Modern fonts for XeTeX [or anything newer, of course] with the FontSpec package. Currently, I'm using \setromanfont{CMU Serif} However, this ...
5
votes
5answers
2k views

Can't use installed fonts

I use Linux and if I go to installed fonts I can see that the 'Adobe Helvetica', for instance, is installed. I also find it if I do fc-list. But I can't use it with XeTeX. If I do ...
6
votes
3answers
882 views

Substitute font's glyphs with glyphs from the same font

Is it possible to substitute certain font's glyphs with other glyphs from the same font? I am using Xelatex and Fontspec. More specifically, I am using small caps with Linux Libertine O C and the ...
1
vote
1answer
410 views

texshade: how to change fontshape of sequencelogo's

I realize this is a very specific question about a certain package: texshade, but I also realize that some of the users here also use this package and might be able to help me out I have made a ...
3
votes
1answer
793 views

OpenType Kerkis and bold Small Caps with greek

Kerkis font is an OpenType font that has Greek glyphs Small Caps both for regular and bold shapes. The names of the OTF files are KerkisSmallCaps.otf and KerkisSmallCaps-Bold.otf. When I compile the ...
2
votes
1answer
4k views

font-not-found error: font “HoeflerText” cannot be found — LuaLaTex error! [closed]

I am running this CV/Resume example from here: Here is a relevant fraction of the code: \documentclass[10pt]{article} %!TEX encoding = UTF-16 % See geometry.pdf to learn the layout options. There ...
0
votes
1answer
584 views

Using fontspec with LuaLaTeX produces a LaTeX bug message [closed]

I have LuaLaTeX installed via MiKTeX 2.9 on Windows 7. I am trying to use fontspec to change my document to a different font than the default CMR fonts. Just invoking \usepackage{fontspec} is ...
0
votes
1answer
1k views

After install package (lm), the math symbol can't be seen!

I want to use XeLaTeX to compile a file like \documentclass{article} \usepackage{fontspec} \begin{document} $a_1+a_2+\cdots+a_n\geq n\sqrt[n]{a_1a_2\dots a_n}$ \end{document} but there is some ...
5
votes
1answer
941 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
384 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
711 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} ...
0
votes
0answers
190 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 ...
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
602 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
3k 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 ...
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
466 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 ...
38
votes
2answers
10k 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 ...
8
votes
1answer
899 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
5k 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 ...
7
votes
2answers
7k 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 ...
12
votes
1answer
1k 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
955 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
7k 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 ...
6
votes
3answers
6k 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} ...
2
votes
3answers
2k 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
2k 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 ...