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

learn more… | top users | synonyms

7
votes
1answer
725 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
637 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
787 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
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
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
190 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
323 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
213 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
222 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
338 views

Complex ligatures in Devanāgarī

Ligatures are known to the Western European languages, however it isn't that common to spot vertical or complex form of them. As an exercise in typography I tried to get some complex ligatures in ...
7
votes
0answers
433 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
630 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
419 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
616 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
3answers
221 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
408 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
411 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
831 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
6k 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 ...
6
votes
2answers
121 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
223 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
71 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
367 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
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
2answers
276 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
300 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
846 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
772 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
67 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
73 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
164 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
144 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
836 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} ...
6
votes
1answer
192 views

Siunitx + Junicode font: Overfull hboxes

The following MWE, using Junicode, creates 4 overfull hboxes. But any other font I tried (e.g. Linux Libertine O) creates no warnings. Any ideas? \documentclass{article} \usepackage{fontspec} ...
6
votes
3answers
823 views

What does 'font name' in the fontspec package refer to on a Mac

On a Mac using XeLaTeX and the fontspec package, what is meant by font name? The Font Book application lists several possibilities: PostScript name Full name Family I.e. which name should I type ...
6
votes
1answer
107 views

\cf@encoding vs. \UTFencname: which of them has priority?

There are two macros that bear the name of current font encoding. First is \cf@encoding which seems to be set by core of LaTeX 2e and NFSS and changed by the fontenc package. Second macro is ...
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 ...
6
votes
2answers
73 views

Use monospaced numbers in gb4e's example number, but proportional elsewhere

I'm using proportional numbers in my document. But in gb4e's example numbers, I would like to have monospaced numbers, so that the width of the example parenthesis remains the same throughout my ...