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

learn more… | top users | synonyms

7
votes
3answers
710 views

Replace all standard LaTeX fonts with [arbitrary fonts] for journal submission

A physics journal I'm submitting to requests that image files not contain any non-standard fonts. Standard fonts, as far as they are concerned, are: Times-Roman, Times-Italic, Times-Bold, ...
7
votes
1answer
223 views

Strange interaction between fontspec, lua and pgfplots

While trying to combine some Lua code with plots written in pgfplots something went completely wrong. I have no idea what causes the problem, as the error message is a bit opaque to me. Here is the ...
7
votes
2answers
189 views

Fontspec causes long underscores

My collaborator added \usepackage[no-math]{fontspec} to a document we're working on. The result is that \_ underscores become v. long: cf. pictures below. \documentclass{article} ...
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 ...
7
votes
2answers
192 views

LuaLaTeX: Replace character “ß” in CMU fonts

The glyph for the character "ß" differs considerably between Latin Modern and the CMU fonts (CMU Serif, CMU Sans Serif etc., which use the same glyphs for ß as cm-super; see this answer): I much ...
7
votes
1answer
227 views

Loading a font via package or fontspec

In Xe(La)TeX, what is the difference between loading a font via its package, i. e. \usepackage{tgpagella}, and loading it through fontspec (\fontspec{TeX Gyre Pagella}). When loaded with the package, ...
7
votes
1answer
755 views

xelatex hangs when using fontspec

I'm using TexStudio 2.5.1 on Windows 7 with MiKTeX. The following brief .tex file will cause xelatex to hang: \documentclass[12pt]{article} \usepackage{fontspec} \begin{document} Test \end{document} ...
7
votes
1answer
2k views

XeLaTeX: Space between letters

I use XeLaTeX. I need that words look stretched in some places in the document. How I can configure the space between letters in a word?
7
votes
1answer
650 views

Optical font sizes: how do I set a fixed value?

This is, for the moment, just an experiment with Minion Pro optical font sizes. I'm trying to produce a large letter g to compare the Caption, Normal, Subhead, and Display-size fonts. Here's the code: ...
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 ...
7
votes
1answer
790 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} ...
7
votes
1answer
2k views

Font problem with XeLaTeX

When trying to compile my .tex file using the xelatex command in TeXmaker (with MiKTeX), I get this error message: ! fontspec error: "font-not-found" ! ! The font "Linux Libertine O" cannot be ...
7
votes
1answer
3k views

XeLaTeX on Mac OSX: Using User Fonts

I recently started using XeLaTeX on Mac OSX, and was not able to get XeLaTeX to recognize the fonts that I had installed. After opening Font Book, bringing up the Preferences dialog, and opting to ...
7
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 ...
7
votes
2answers
201 views

Is it possible to use the punctuation of one font within another font?

I'm in the process of trying to turn an English document into Hindi based on a translation in Word. However, I'm struggling to find a font that does what I want. As I'm working with an existing ...
7
votes
1answer
326 views

how to set font feature file for a specific font file and not the whole font shape

I'm looking for having my document set with specific ligatures, such as 's' replaced by 'longs', 's t' by 'longs_t' etc. and using the Linux Libertine G font. To do this, I'm writing my text ...
7
votes
1answer
218 views

tipa with fontspec redux: tilde above characters

I'm trying to use the tipa package with fontspec, but they don't play nice together. I've read previous questions trying to solve the issues that come up (like this one), and that's the solution I've ...
7
votes
1answer
1k views

Using CJK (Chinese/kanji) characters in math using unicode-math on lualatex

I'm trying to persuade the unicode-math package to let me insert CJK characters (Chinese ideograms) in math formulæ. Here's a sample input (the first few lines are merely to check that basic ...
7
votes
1answer
226 views

Fine-tuning letter space for small caps with fontspec

I'd like to have different settings for small caps letter space as a function of font size by using the appropriate fontspec settings when the compilation is done over XeLaTeX. So far I haven't been ...
7
votes
0answers
436 views

Is LuaLaTeX producing faulty pdfs? [closed]

If I compile the following minimal code with LuaLaTeX I seem to get a faulty pdf: \documentclass{article} \usepackage{fontspec} \setmainfont{Times New Roman} \begin{document} text \end{document} ...
6
votes
3answers
5k 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} ...
6
votes
4answers
7k views

fontspec LuaTeX error

I have installed "ProTeX" with "TeXstudio 2.3" & "Miktex 2.9". I get an error ! The fontspec package requires either XeTeX or LuaTeX to function when I attempt to run \documentclass{article} ...
6
votes
3answers
642 views

Accessing IPA characters when using Charis SIL

When using Charis SIL, how do I access IPA characters? Are there handy macros, as with tipa.sty? If I have to set up my own encoding using unicode numbers, how is this best done? (Code from those ...
6
votes
4answers
435 views

Is there a way to use T1 font for math and main font (with some T2A Cyrillic letters) in document compiled by XeLaTeX?

Here is my code (utf8): \documentclass{article} \usepackage[no-math]{fontspec} \usepackage[utf8]{inputenc} \usepackage[T1,T2A]{fontenc} \usepackage{anttor} \begin{document} text $math$ Russian: Щ ...
6
votes
2answers
637 views

Is there a way to control scope of fontspec font change?

I would like to limit the scope of \fontspec to just one or a couple of words in my paragraph, for example: Vivamus gravida lacus a sapien \fontspec{The Font Name}{interdum} eget interdum mi ...
6
votes
2answers
255 views

Historic font and missing ligatures

I am trying to compose a sort of old-style book. I would like to use a specific historical font for the entire text. This font includes ligature glyphs for: ff, fi, fl, ffl, and st (see Figure 1 for ...
6
votes
3answers
228 views

Why fontspec breaks extarrows package

Why \documentclass{book} \usepackage{extarrows} \usepackage{fontspec} \setmainfont{Times New Roman} \begin{document} $$Q\xLongrightarrow{\text{Maximum}} P$$ \end{document} produces this output: ...
6
votes
2answers
427 views

Deciding Which Glyphs to Use in Font Encoding

I wanted to use one of my favorite fonts, Crimson, while still maintaining full support from the microtype package. Since XeTeX and LuaTeX are not fully supported by the microtype package (as of ...
6
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 ...
6
votes
2answers
435 views

Left and right quotation marks aren't correct when using fontspec

Using XeLaTeX the following document produces the correct result if \setmainfont{Arial} is never called (the quotation marks are proper left- and right-quotation marks). Once I try to set a font (even ...
6
votes
2answers
885 views

ï & î font encoding

I've one problem in my scrbook, ï and î don't work when I compile my \printbibliography. But the problem come only with these 2 accents… I export my .bib from Papers2 for Mac application, & I ...
6
votes
2answers
127 views

How to get proper placed closing German doublequotes using lua|xelatex and Garamond Premier Pro Opticals (Regular)?

Using Adobe's Garamond Premier Pro Opticals (latest version: 2.104) the closing German doublequotes are set exactly above (instead of behind) a sentence's closing dot (e.g. questionmark is not ...
6
votes
3answers
2k views

XeLaTeX fontspec Century Gothic not using ligatures

I'm trying to use my Century Gothic TrueType font in a document, but it's failing to use the fl and fi ligatures. The input's below: \documentclass{article} \usepackage{xltxtra} ...
6
votes
1answer
272 views

Problem using .ttf fonts with XeLaTeX

I have some .ttf fonts in ~/Library/Fonts that I would like to use with XeLaTeX, but it can't seem to find them. For example, this will compile: \documentclass[]{article} \usepackage{fontspec} ...
6
votes
2answers
123 views

Fontspec creates left margin

I'm using standalone document class and trying to draw a TikZ picture. The picture have border which is the border of the page. I do it like this: \documentclass{standalone} \usepackage{tikz} ...
6
votes
1answer
3k 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 ...
6
votes
1answer
86 views

Having trouble enabling ligatures with HF&J's Mercury Text OpenType font

I'm sure this font supports ligatures, but I can't get them to show up. Example with Roboto for comparison: \documentclass[ 11pt, a4paper ]{scrartcl} \usepackage{fontspec} ...
6
votes
1answer
372 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} ...
6
votes
2answers
286 views

Does Kerkis font work with xelatex?

I'm a confused on whether xelatex and kerkis font can be used together. I'm using Ubuntu 13.10, Tex Live 2013/Debian, and I have the kerkis font installed. Though, if I try to compile the following ...
6
votes
2answers
1k views

Removing ligatures when using fontspec

This is a follow-up question to Currency symbol: French franc. Consider the following code: \documentclass{article} \usepackage{fontspec} \usepackage{siunitx} \DeclareRobustCommand*{\myfranc}{% ...
6
votes
1answer
304 views

fakebold error in fontspec or lualatex

I have been trying to fake small caps which are not available in Myriad Pro. So I used the Scale and FakeBold options. Scaling is allright, but as you all know the glyphs slim out. To work against ...
6
votes
1answer
1k views

How can I use the Optima font delivered with my Mac in LuaLaTeX?

I am trying the following on my Mac: \documentclass{minimal} \usepackage{fontspec} \begin{document} \setsansfont{Optima} \textsf{Test} \end{document} But I get the following: ...
6
votes
1answer
850 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
3answers
781 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 ...
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 ...
6
votes
1answer
80 views

Cabin font doesn't render properly apostrophe

I'm using Cabin font with XeLaTeX. The apostrophe is not render properly. As you can see on the following screenshot, there is not enough space betweend L and a. On this screenshot (with the ...
6
votes
1answer
81 views

URW Grotesk for XeLaTeX/LuaLaTeX (fontspec)?

How can I use URW Grotesk font with XeLaTeX/LuaLaTeX (fontspec) ? Or if this is not possible/easy, are there a good heavy font replacement for it (if possible that works as well with PDFLaTeX) ? ...
6
votes
1answer
169 views

Big brackets are always opening and square when using fontspec with MnSymbol

I have here a strange problem I don't get. When using the fontspec package in combination with MnSymbol package all big brackets in math mode are square and opening... when I deactivate one of the ...
6
votes
1answer
152 views

How can you use both fontspec and xmpincl?

Is there a way to use both the fontspec and the xmpincl packages? Using PDFTeX returns Fatal fontspec error: "cannot-use-pdftex" The fontspec package requires either XeTeX or LuaTeX to ...
6
votes
1answer
841 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} ...