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

learn more… | top users | synonyms

4
votes
1answer
872 views

fontspec cannot find fonts on Ubuntu

I recently migrated to Ubuntu from Mac OS. I installed TexLive and it works. However, fontspec doesn't work, no matter what fonts I use. This goes for fonts native to Ubuntu and fonts that I have ...
2
votes
0answers
128 views

generating combining characters in LuaLaTeX with Garamond Premr Pro

I'm trying to produce the œ́ character using Garamond Premier Pro in LuaLaTeX. I'm using fontspec in TeXLive 2012 to load the font. I seem to recall having had success doing this rather easily with a ...
2
votes
1answer
478 views

How to change the font for chapter title with titlesec and titling under XeTeX?

I'm using XeTeX to edit a document in which I am trying to use titlesec and titling to set a different font for some headings. I'm using the approach suggested as a reply to a similar question, but ...
2
votes
0answers
99 views

Spacing problem with microtype and Hoefler Text under xelatex

I'm seeing an odd spacing problem with microtype and Hoefler Text under XeLaTeX. A minimal example is provided below. When typeset with xelatex, the word "he" and the emphasized word "ought" overlap ...
1
vote
1answer
230 views

Fontfamily with XeLaTeX

I'm trying to install a custom fontfamily, named Agenda, in my Latex document. I use XeLatex, so i tried to load the font with \fontspec: Using this code, the font works great: ...
2
votes
1answer
122 views

Installed font not working

I have downloaded a latex template for a thesis from Harvard University. Currently I'm using Linux Mint Nadia 14. The instructions of the template tells you to install the needed fonts (which are ...
3
votes
2answers
581 views

Error: \Undefined control sequence \setmainfont in Ubuntu 12.04

I am getting error on compiling following Latex code: \documentclass{article} \usepackage{fontspec} \setmainfont{Code2000} \begin{document} abc \end{document} Error: \Undefined control sequence ...
3
votes
0answers
118 views

fontspec: Configuring project-local opticals font

I absolute adore Adobe's Garamond Premier Pro (the full set of opticals). In normal circumstances, I can just use it with \setmainfont{Garamond Premier Pro} when I'm working on my desktop, or laptop. ...
6
votes
1answer
94 views

Why does fontspec interfere with metafont fonts?

I need to create a document using a few fonts. Two or three will be metafont fonts used for most of the document in a Latin-based language, and then I need to use another font for a SE Asian language ...
1
vote
1answer
454 views

Small caps in fontspec on XeLaTeX

I'm trying to typeset my document with Times with XeLaTeX. Because Times does not include small caps, I want to use TeX Gyre Termes only for small caps. I tried this method, but it didn't work. A ...
11
votes
1answer
262 views

How to make lualatex select the correct OpenType features in math mode?

After fiddling around with egreg's answer to my previous question, I finally discovered that lualatex is not selecting the tnum OpenType features, that is it uses the default numerals instead of the ...
0
votes
1answer
76 views

Issue with \bar accent and fontspec

Consider the following MWE: \documentclass[png,border=2pt]{standalone} \usepackage[no-math]{fontspec} \usepackage{sfmath} \begin{document} $\bar 1$ $\vec 1$ \end{document} This produces in ...
6
votes
0answers
146 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 ...
3
votes
0answers
129 views

Skip \setsansfont if the font is not available

Is there a way to make \setsansfont conditional on the font being available, or to skip over that line if it gives an error? I'm using fontspec with XeLaTeX to use the TeX Gyre Heros font for a ...
1
vote
0answers
84 views

fontspec error using xepersian package! [closed]

when i want to use the xepersianpackage, in pdfLatex, i have the error: Fatal fontspec error: "cannot-use-pdftex" ! ! The fontspec package requires either XeTeX or LuaTeX to function. ! ! You must ...
1
vote
0answers
294 views

which texlive package has times new roman for xelatex

I have following in my latex header: \usepackage{fontspec} \setmainfont[Mapping=tex-text]{Times New Roman} This results in "font not found" error when compiled with xetex. I installed all packages ...
11
votes
1answer
249 views

fontspec & microtype: fine tune OpenType fonts

I just began to try LuaTeX in order to make use of OpenType fonts. After loading fontspec I select such a font the usual way: \setmainfont{Adobe Garamond Pro} Now I wonder how I can fine tune the ...
3
votes
1answer
83 views

Unwanted extra lines appearing in bibliography

When I compiled a very lengthy paper with a lengthy bibliography, I noticed that at some places in the bibliography, an extra line had been entered between entries: I tried to cut down the document ...
7
votes
2answers
349 views

fontspec throwing error with lualatex - broken?

I get an error when I try to include the fontspec package. Here is a minimum working example: \documentclass{article} \usepackage{fontspec} \begin{document} Hello \end{document} I'm trying to ...
3
votes
1answer
117 views

fontspec and xeCJK conflict: tie (\t{}) over Latin character displaced one position

I want to create a tie over ng by typing: \t{ng}: The following minimal example causes the tie over ng to be displaced one position to the right, so that it appears over the g and empty space. The ...
9
votes
1answer
242 views

Generating a table of all glyphs – including meta data like name, Unicode etc

The answers to Generating a table of glyphs with XeTeX cycle through character positions in the font and output a glyph (and its ordinal number) if one is assigned to that position, which is only ...
5
votes
1answer
103 views

Globally enable a font feature for libertine package

The libertine package works with both PDFLaTeX and XeLaTeX; with the latter it automatically loads and uses fontspec for OpenType font loading. Also with XeLaTeX, it's possible to load a font feature ...
2
votes
2answers
87 views

Caveats of newtxmath and fontspec together

I'm able to typeset a ~50 page set of lecture notes with heavy math using \usepackage{libertine} \usepackage[libertine]{newtxmath} with both PDFLaTeX and XeLaTeX. I know that the libertine package ...
6
votes
2answers
182 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 ...
5
votes
2answers
184 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 ...
11
votes
0answers
129 views

siunitx disturbs spacing of \, in math with xelatex

In the following example - compiled with XeLaTeX - the spacing of \thinspacing/the value of mu (used by \,) is disturbed if \SI is used in the math before: \documentclass{article} ...
6
votes
2answers
450 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 ...
5
votes
2answers
249 views

letterspacing italic small caps automatically

The MinionPro-It.otf file I am using contains italic small caps, confirmed with otfinfo -f MinionPro-It.otf and cfftot1 MinionPro-It.otf | t1testpage | epstopdf --filter > MinionPro-It.pdf. The ...
3
votes
1answer
277 views

Fontspec with bibtex with accents give me a bug : “Missing \endcsname inserted. \char”

i try to get out of a 3 days trouble, hope for your help ! I just want to find my bibliography in my font without bug... I'm using \documentclass{scrbook}, & {Adobe Garamond Pro} font with ...
0
votes
0answers
105 views

\setmainfont uses features of previously defined \newfontfamily

I don't know what's wrong with this code. Shouldn't the output of the third text come in my main font, I mean SolaimanLipi? But it comes in \fancy font. Can someone tell me how to fix it? ...
8
votes
2answers
558 views

First steps with LuaLaTeX and ttf fonts

I am just starting to use LuaLaTeX. Mainly because I want to use a ttf font for a presentation. My MWE looks like \documentclass{article} \usepackage{fontspec} ...
1
vote
1answer
100 views

Updating a font in fontspec

I want to implement all the LaTeX code mentioned in Showcase TeX Typography for TUG's Calendar. The implementation involves use of special fonts like Phaeton. I have installed it. But I don't get ...
2
votes
0answers
57 views

How to choose fonts with different optical sizes with fontspec [duplicate]

The font EB Garamond is a font that provides (at the moment two) different optical sizes. The fontspec package will automatically choose the appropriate optical size (cf. the manual under section ...
4
votes
2answers
111 views

How to debug LuaLaTeX no longer finding ttf font

I just updated texlive and now LuaLateX no longer finds two ttf fonts situated in the same folder as the .tex file. Before I updated it all worked fine. Clumsy as I am I was having a latexmk session ...
13
votes
3answers
553 views

Possible to use MnSymbol with LuaTex?

I want to use the Minion Pro font together with math symbols from MnSymbol (http://www.ctan.org/tex-archive/fonts/mnsymbol). Is this possible? It has already been discussed here -> ...
4
votes
0answers
156 views

Optical weight selection with fontspec

I'm using LuaTeX version 0.76 and fontspec version 2.3c. I have the full family of MinionPro, but fontspec seems not to choose the appropriate optical weight. While it works for the roman font of ...
11
votes
2answers
269 views

How can I replace a character (zero)?

Is it possible to replace characters in pdflatex? I use the Minion Pro and Myriad Pro font and the zero looks like a small 'O'. I want to replace the zero by a zero with a dot or slash in the middle ...
3
votes
2answers
318 views

Fontspec, open type fonts, and lining figures

So here is the problem I have: I am using fontspec and a number of my fonts have lining figure only in the small caps font. So my question is how can I tell XeLaTeX that when it comes to numbers ...
2
votes
0answers
379 views

XeLaTeX with fontspec not recognizing ANY fonts on a windows platform (with miktex)

Getting the message: font-not-found see fontspec documentation. I'm using cls file abbreviated at the bottom of this page whose origin is latextemplates.com/template/friggeri-resume-cv. I've tried all ...
1
vote
0answers
246 views

Font not found error fontspec using WinEdt in Windows

I'm trying to compile a document and (as usual) I'm getting stuck with the fontspec package. These are the only lines of code that I are giving me grief. \RequirePackage[T1]{fontenc} ...
20
votes
4answers
567 views

It doesn't hyphenate words ending with “—”

UPDATE Well. After a while, I decided to see again about this “problem”, and just discovered that in pdfLaTeX, using \usepackage[utf8]{inputenc} and the — (the unicode —, not the ligature ---) it ...
8
votes
1answer
207 views

Loading otf font as mathfont range using unicode-math

I'm trying to replace the letters in the math font so that it matches the main font. Curiously, this works for the italic version, yet not for bold and roman. Why is that? \documentclass{article} ...
6
votes
1answer
205 views

Fontspec demands ifpdf.sty?

I am using Arch Linux, but I installed TeX Live from the network, so that I can use tlmgr to install a minimal set of packages that I can add to as needed. Here is a .tex file: ...
5
votes
1answer
192 views

Can one kern math font euler.otf using lualatex and fontspec?

I am at it again... :) Using the http://github.com/khaledhosny/euler-otf/blob/master/euler.otf font, can one kern distance between T and P with Lualatex? Clearly, my attempt does not work... Could ...
10
votes
2answers
142 views

Use 'space' glyph from a font

Is there a way to globally (or in an environment) set the 'space' glyph as the interword space? I'm importing the OpenType font via fontspec which has a specially designed 'space' glyph that I want to ...
6
votes
1answer
104 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 ...
0
votes
0answers
201 views

After updating to MacTeX 2013, font size and kerning of Monotype Corsiva are strange

I knew I probably shouldn't have upgraded, being not very experienced, I always have to wade through strange errors. However, this is really weird. Here's my example: %!TEX TS-program = lualatex ...
4
votes
1answer
150 views

The simplest way to input π in text mode (textual)?

What is the simplest way to input π in text mode if there is only this one greek letter in the whole English text? May be there is one line of code can make it. The following excellent example is ...
3
votes
1answer
121 views

Fontspec and Ligatures

I understand that if I typeset using Lualatex or Xelatex, and include the following in the preamble: \usepackage{fontspec} \setmainfont{XYZ} Then system-wide non-latex fonts can be used ...
6
votes
2answers
232 views

How to obtain proper justification with XeLaTeX and fontspec package?

I'm trying to obtain a justified paragraph with greek text using XeLaTeX and fontspec package, but there is always a word that exceed the right alignment. Note that with LaTex and the default greek ...