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

learn more… | top users | synonyms

2
votes
0answers
270 views

Fontspec: Select minionpro font from local folder

I have the Minionpro Font files in the same directory as the master LaTeX file. When compiling, the path to the MinionPro fonts folder would be ../minion/ containing: ./MinionPro-Bold.otf ...
9
votes
1answer
314 views

uneven line spacing

This is something that is already annoying me for quite a while. (I use LuaLaTeX) The line spacing of the Arabic text is uneven (see pic and/or MWE below). In particular, I think, lines 2, 7, and 10. ...
4
votes
1answer
776 views

Bold type and font specification with fontspec

When I manually specify the Linux Libertine O font types fontspec should load, the bold type is significantly bolder than when I load the exact same font family as a system font. MWE: ...
2
votes
1answer
158 views

Problem with amsmath+fontspec+ulem

I have a problem when I tried to compile this using XeLaTeX. \documentclass{article} \usepackage{ulem,amsmath,fontspec} \begin{document} \[1+1=2\] \end{document} Is there any way to fix this?
9
votes
1answer
288 views

different fonts for two languages

I use Sanskrit 2003 for my bilingual document. But the English so generated result in a very uneven and poorly looking document. I can not modify the text in between \begin{document} and ...
5
votes
0answers
369 views

Outline text using TrueType fonts

I'd like to write outlined text. Here is a minimal example, what I'd like to achieve. \documentclass[a4paper]{minimal} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} ...
4
votes
1answer
353 views

DejaVu Sans Light with XeLaTeX?

In XeLaTeX, it is possible to directly embed Unicode fonts via \newfontfamily\name_to_use{font name}. So I can, for example, write: \newfontfamily\dej{DejaVu Sans}, and later write \dej{unicode ...
1
vote
1answer
1k views

Migration from Computer Modern to Times New Roman fonts

I had typed my LaTeX article using Computer Modern fonts. Now I want Times New Roman and double spacing. I'm getting so many errors regarding font packages. Please help. ...
6
votes
1answer
309 views

Monotype Gill Alt One MT and the fi fl ligatures

I have previously received help with getting the fi and fl ligatures working with the Berling font and now I found myself trying to do the same with the Gill Alt One MT font. The same approach does ...
3
votes
1answer
221 views

Indentation with beamer fontspec and alltt

The following document mangles the indentation of the second line of the alltt (the pipe/bar character does not occur under the equals of the previous line). \documentclass[14pt]{beamer} ...
2
votes
0answers
186 views

Why is my regular font garbled but \emph and \textbf fine? [duplicate]

I'm trying to format a document following my organization's style guide. I'm using XeLaTeX for the font flexibility. I made a minimal document \documentclass{article} \usepackage{xltxtra} %% For ...
0
votes
0answers
51 views

MacTeX 2013 takes ages to compile [duplicate]

I am sorry that this is not a very specific question. Since I updated to 2013 I haven't been able to compile a single document. To be honest, neither did I let one of the many compilation processes I ...
1
vote
1answer
276 views

Font problems when using IPAexMincho

I am trying to run some fonts named IPAexMincho in latex under win 8 using MikTeX under TeXnic, but I got error messages in regard to not being able to run Kanji map when I have the following valid ...
1
vote
1answer
128 views

Bold font error

When I type the ACKNOWLEDGEMENTS page using bold font, the following text is still bold while it should be normal (not bold). I used this code: \thispagestyle{fancy} \rhead{\thepage} % Sets the ...
1
vote
1answer
90 views

Luaotfload complains: “cache : Could not write lookup cache”

I am in quite the pickle about my document I would like to compile with LuaLaTeX. This is the set-up I am using for the fonts and such: \usepackage[no-math]{fontspec} \usepackage{lipsum} ...
1
vote
1answer
126 views

assigning font size in .sty files

I am using a LaTeX template which contains a .sty file. The problem is that I am getting error for the below line which is shown below it. \font\chaptocfont=\helveticabold ERROR: ! Font ...
3
votes
1answer
315 views

Use of unicode-math results in “unprintable” PDF

In the following example, if I uncomment the inclusion of unicode-math, I still get an PDF that shows up fine in my PDF Viewer (Evince), but none of the equation shows up in print. Why is that? ...
5
votes
0answers
363 views

Miktex amsfont problem: \scriptfont is undefined [duplicate]

Today, After updating Miktex system, I have trouble with error \scriptfont is undefined. So I tried to reinstall Miktex 2.9.4813 (32 bit version). Everything OK, but again after updating, problem is ...
4
votes
0answers
210 views

unicode-math and oldstyle figures

I'm trying to find a good way to archive the following using fontspec, unicode-math and lualatex: almost global oldstyle figures including inline math lining numbers for displayed equations, e.g. ...
3
votes
1answer
247 views

»Missing number, treated as zero.« in graphics with invoice [duplicate]

I’m on Debian’s texlive 2013.20130530-1. My minimal test document is as follows: \documentclass{article} \usepackage{fontspec} \usepackage{invoice} \begin{document} \end{document} I get the ...
8
votes
1answer
304 views

access all characters in an OpenType font with LuaLaTeX

This is a follow-up to Access specific characters in LuaTeX and How to access fleurons? With TeX Live 2012, I compiled the following file and got the output in the image: \documentclass[12pt]{book} ...
6
votes
4answers
279 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: Щ ...
5
votes
3answers
305 views

Using \ifstrequal in a fontspec macro

Here is my Minimal Failing Example: \documentclass{article} \usepackage{fontspec,etoolbox} \setmainfont{TeX Gyre Schola} \begin{document} \newcommand\Stretch[1]{ \ifstrequal{#1}{narrow}{0.6}{} ...
6
votes
1answer
304 views

Check for missing font characters in LuaLaTeX

I have a document: \documentclass{article} \usepackage{fontspec} \begin{document} Program the μC, please. \end{document} When I compile with xelatex or lualatex, there is a missing "μ" character in ...
9
votes
1answer
265 views

fontspec option “Renderer=Basic” - what does it mean?

Since a few days I've been using the fontspec option \setmainfont[Renderer=Basic] ... in order to use the microtype option tracking=true with LuaLaTeX. I have a simple question on this: why does ...
9
votes
1answer
212 views

How to change kerning around ( glyph with lualatex?

Inspired by An example of changing kerning of a font in LuaLaTeX I decided to try to change the kerning for some letter combinations together with parentheses which have been bothering me in my ...
7
votes
1answer
248 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 ...
6
votes
1answer
200 views

How to access the quotation marks in Berling font using lualatex?

Here is a small example: \documentclass[11pt,article,oneside]{memoir} \usepackage{fontspec} \setmainfont[ItalicFont={BerlIt}, FeatureFile=myligatures.fea]{Berling} \begin{document} ``Lala la'' ...
1
vote
0answers
46 views

How to use en-dash with Cambria fonts? [duplicate]

When using non-TeX fonts in LuaTeX I can produce en-dashes in the usual way by typing two dashes together --: \documentclass{article} \usepackage{fontspec}%use luatex \setmainfont{Cambria} ...
5
votes
1answer
468 views

How to Use Goudy Initialen in Lettrine

How can I use the Goudy Initialen font with Lettrine for the first drop letter of a paragraph? I can't understand from the documentation how to use LettrineFontHook or LettrineFont to do this?
20
votes
3answers
935 views

Which Unicode fonts are available with grades/optical sizes comparable to Donald Knuth's awesome eight grades in Computer Modern Roman?

Which Unicode fonts are available with grades/optical sizes comparable to Donald Knuth's awesome eight grades in Computer Modern Roman? It would be great to get at least 3 options! This question is ...
18
votes
3answers
1k views

Does LaTeX automatically change fonts when switching between Title, Author, Date, and Body Text or sizes modifiers?

I have a question regarding the inner workings of the system. Let us assume that I am using the article class. I cannot help but notice that the title seems to have a different look than the body ...
5
votes
2answers
3k views

fontspec setmainfont working

Here is a minimal problem example \ProvidesClass{cvMinimal}[2012/04/30 CV class] \NeedsTeXFormat{LaTeX2e} \LoadClass{article} %%%%%%%%%% % Colors % %%%%%%%%%% \RequirePackage{xcolor} ...
9
votes
3answers
456 views

Enabling c_t and longs_t without enabling s_t ligatures

I'm using the Hoefler Text font in xelatex with long s: \usepackage{fontspec} \setmainfont[Contextuals=Inner]{Hoefler Text} But I want to use the ct ligature (it's from the Rare set): ...
11
votes
1answer
198 views

How to use fontspec with opentype fonts when ligatures are a separate font

I am just learning LATEX. Have been wanting to for years, doing quite well (at 60) and many years of programming are making it a joy! I am using fontspec to load some fonts directly from a ...
2
votes
1answer
379 views

Why doesn't \usepackage{times} work with cyrillic characters?

I need to add some text to my LaTeX document, I need to use Times New Roman font, and that text contains cyrillic characters. I tried using times package: \usepackage{times} but that simply omits ...
2
votes
1answer
95 views

Fontspec pb since update May 20th, 2013 on MiKTeX2.9 and Win7(32bit) [closed]

When I want to compile the file fonspec-example.tex with the latest version 2.3c of fontspec, I get an error (It didn't happen before): fonspec.lua:45:attempt to call upvalue 'check_script' (a nil ...
6
votes
1answer
324 views

How do I use kpfonts with fontspec?

Is there a way to use kpfonts with fontspec ? The math font is correctly used but just loading the kpfonts package is not enough for the text. If I add the \setmainfont line (see example) the kp font ...
8
votes
1answer
216 views

fontspec: Load an italic text font so that it has the same x-height as the “main” (roman) text font

Suppose that one likes the "upright" shape of the font Sabon Next LT Pro, but prefers the "italic" shape of the font Garamond Premier Pro over the italic shape of Sabon Next. (Both fonts are ...
11
votes
1answer
377 views

Proper way to use LaTeX fonts in XeLaTeX

What is the proper way to use LaTeX fonts, for example calligra or other fonts from the Font Catalogue in XeLaTeX. Something like \usepackage{fontspec} \setromanfont{Calligra} doesn't work. ...
4
votes
0answers
355 views

using a Postscript Type 1 font with fontspec and LuaLaTex on MacOSX

I am having trouble using SabonLT which is a Postscript Type 1 Outline font. I have the font installed as a system font (as described here) rather than a local font. I'm running LuaLaTex on Mac OSX. ...
2
votes
1answer
242 views

XeLaTeX / XeTeX — fontspec and ornaments/dingbats [duplicate]

I would like to know if it is possible to use the ornaments contained in a font like Minion Pro from Adobe. I'm using XeLaTeX and fontspec (or mathspec), but I don't find information on ornaments in ...
17
votes
2answers
440 views

Is there a way to use different local font files for different font size in fontspec?

I am a big lover of the EB-Garamond fonts by Georg Duffner. As of now, he has made two sets of font files, EB-Garamond-8 and EB-Garamond-12, respectively for “design size 8pt” and “design size 12pt”. ...
10
votes
2answers
8k views

Problem while compiling friggeri CV template with: ' fontspec error: “font-not-found”'

I have somme problem while I'm trying to compile template CV from: http://www.latextemplates.com/template/friggeri-resume-cv . I have install texlive-full package on Ubuntu and tryied to compiled this ...
5
votes
0answers
141 views

luatex 0.76 failed to generate some ligatures [closed]

I installed texlive 2013 today. After installation, luatex cannot generate ligatures for "fi fl ff", but it can for `` '' ---. xetex works perfectly here, after update. MWE: \documentclass{article} ...
7
votes
1answer
288 views

Ligatures in (Graphite) TrueType fonts

When using ConTeXt MkIV (i.e. with the LuaTeX engine), I’ve noticed that ligatures don’t work properly for some TrueType fonts, even though they do work in LuaLaTeX or even LibreOffice. As far as I ...
2
votes
0answers
85 views

Ferial class option of evweek does not work with fontspec

I am trying to produce a two page weekly calendar using package evweek with the class option ferial. The following file works fine: \documentclass[a4paper,ferial]{evweek} ...
7
votes
1answer
193 views

How to substitute one glyph sequence for another with OTF feature files in LuaTeX?

I am trying to do some sequence-for-sequence glyph replacement. As far as I can tell from the Adobe spec, the LHS and RHS of a "sub … by …" rule cannot both contain multiple glyphs; and in any case, ...
7
votes
3answers
507 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, ...
8
votes
1answer
267 views

Solving an unexpected interaction between ebgaramond and Franklin Gothic

Here's my MWE, and its output (XeLaTeX, TeXLive 2012 latest, Windows 7): \documentclass{article} \usepackage{fontspec} \usepackage{ebgaramond} %%% <== This one \setsansfont[% ]{ITC ...