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

learn more… | top users | synonyms

2
votes
1answer
308 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 ...
4
votes
1answer
154 views

fontspec-color not working correctly with microtype package [closed]

If I use the fontspec package together with the microtype package, the color-feature of fontspec does only colarize the last line of the paragraph instead of the whole paragraph, as the grouped ...
2
votes
1answer
90 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 ...
5
votes
1answer
233 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
184 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 ...
4
votes
0answers
270 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
210 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 ...
5
votes
0answers
136 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
245 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
79 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} ...
8
votes
1answer
222 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 ...
0
votes
0answers
44 views

Creating my own font map for use with XeLaTeX [duplicate]

I want to create my own font map for use with XeLaTeX. What I want to do is what Natror is doing with the medial long S in his answer to this question: Trouble with contextuals in LuaLaTeX with ...
3
votes
1answer
477 views

Changing the Greek math font with mathspec

I've recently changed from pdftex to xetex to be able to write documents in Bembo Std but I'm not quite there yet. While trying to typeset some notes from one of my classes, I tried to typeset Greek ...
3
votes
2answers
294 views

Does XeLaTeX automatically select optical sizes for a given font, if available?

I've been intrigued by a great feature of XeLaTeX (perhaps it was already a feature of (La)TeX) for a long time -- its ability to automatically select the appropriate optical size of a font for a ...
9
votes
1answer
462 views

Fake bold in LuaLaTeX

I am sometimes using a font that has no boldface, so I am wondering whether or not there is a way to use some fakebold-feature in LuaLaTeX. The fontspec documentation explains a feature for XeLaTeX, ...
12
votes
3answers
245 views

telling luaotfload where to look for fonts

The documentation of luaotfload states that on Linux fontconfig is used to find the font locations. However all fonts I install in /usr/share/local/fonts edit: /usr/local/share/fonts(as I don't want ...
5
votes
1answer
98 views

Localise appendix numbering?

I'm using XeLaTeX with fontspec. I write Russian document and get appendix numbered with latin letters: \documentclass{article} \usepackage{fontspec} % enables loading of {True/Open}Type fonts ...
12
votes
0answers
333 views

Libertine Mono and lualatex [closed]

Using lualatex on latest TeXLive 2012 I am not able to select Libertine Mono by its full name via fontspec. luaotfload is finding the font and it is written into ...
3
votes
1answer
167 views

Russian language within figure captions in unicode-aware systems [duplicate]

When I try to compile the following document caption package seem to convert caption text to \cyr.. sequences and fontspec don't understand them. Is it possible do somehow get around that without ...
7
votes
1answer
172 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 ...
12
votes
1answer
351 views

Towards a \ucshape and \textuc command for uppercase text (XeTeX, LuaTeX)

While we have \textit and \textsc, \itshape and \scshape etc., there's no \textuc and \ucshape to typeset its argument in uppercase. There is \MakeUppercase, but -- as uppercase is not a font style -- ...
11
votes
2answers
232 views

Accent positioning on 'oe' character with feature file in fontspec

There is no accented glyph for the 'oe' character in Linux Libertine. When trying to form this character, the (acute) accent is centred over the 'e' half. I'm trying to get the accent over the centre ...
11
votes
4answers
351 views

How to prevent combining a character?

"EB Garamond" font combines ʿ character and the preceding letter. Consider following document: \documentclass{article} \usepackage{fontspec} \setmainfont{EB Garamond} \begin{document} aʿ bʿ cʿ dʿ ...
7
votes
1answer
196 views

Using multiple system fonts

I'd like to use 3-4 different specific system fonts (e.g., Georgia, HelveticaNeui Light, and Lucida Sans) with certain font sizes for different sections of a page. How would I do this? Edit: Thanks ...
2
votes
1answer
280 views

Changing the Ruby Font (for Pīnyīn)

Using ruby package to generate both furigana for Japanese and Pīnyīn for Chinese. I use individual \sf calls to individually switch each Pīnyīn from the Japanese font back to the default sans font. ...
1
vote
0answers
163 views

Load font from package directory using fontspec

I'm working on a LaTeX package (in fact it is a document class) that I want to make available for others to install in their texmf directory. In this package I'm setting up a default configuration for ...
22
votes
1answer
455 views

How to automatically adjust the emdash length according to current language?

In Russian typography the emdash, which is typed as the ligature --- in LaTeX, is 20% shorter than the standard emdash. The babel package cares this difference so that --- prints a shorter emdash if ...
2
votes
2answers
122 views

Changing space between atoms in Chemabove

Consider this example: \documentclass{memoir} \usepackage{fontspec} \usepackage{chemfig} \usepackage{unicode-math} \pdfmapline{+arial arial <8r.enc <sAarial.ttf} \begin{document} ...
7
votes
2answers
225 views

Font Handling in XeTeX

Knuth's original Tex implementation uses TFM files to use font information for typesetting. Since XeTeX supports TrueType and OpenType fonts through fontspec package, how does it use these type of ...
7
votes
2answers
277 views

Change from old style numbers to lining numbers in lineno's linenumbers environment

I am using old style numbers in my document, but I prefer lining numbers in my line numbering environments (lineno's \linenumbers environment). How can I enforce this (without changing to another ...
3
votes
0answers
2k views

XeLaTeX Errors on Windows 7 [closed]

I'm trying to get a minimal XeLaTeX document to compile in Windows 7 with MiKTeX 2.9. I have updated all of my installed MikTeX packages and am still getting many errors during compilation. ...
11
votes
1answer
495 views

Reduce compilation time for opentype fonts (otf)

I have some opentype fonts (otf) which I use with fontspec. Everything works fine. During the compilation LuaLaTeX load the otf-files in a temporary file. For example: (load: ...
5
votes
1answer
225 views

Arabic bibliography with biblatex

I haven't found any mention of the possibility of inserting a bibliography entry with biblatex in Arabic script (Arabic in this case). Is there any way I can do it?
10
votes
1answer
524 views

XeLaTeX, LuaLaTeX different default font features

The following MWE is producing different outputs on XeLaTeX and LuaLateX: \documentclass{scrartcl} \usepackage{fontspec} \setmainfont{FoglihtenNo04-070.otf} \begin{document} ffi ew \end{document} ...
6
votes
1answer
991 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 ...
15
votes
0answers
555 views

Letterspacing/font expansion in LuaLaTeX

I am a few months into learning LaTeX. I would like to use microtype with LuaLaTeX and I would like to obtain letter spacing for my smallcaps. I've tried to follow some of the threads on the subject ...
1
vote
1answer
132 views

Punctuation in superscripting with Natbib in Xetex

I'm trying to use the achemso package for my bibliography and citations. I'm also trying to using Xetex to use the Minion Pro fonts. When I just typeset with LaTeX and do everything in Computer Modern ...
3
votes
2answers
79 views

List renders incorrectly

In output of following LaTeX markup, the list is rendered incorrectly. What is wrong with it? \documentclass{article} \usepackage{fontspec} \newfontfamily\faFont[Script=Arabic]{Tahoma} ...
7
votes
3answers
3k views

Change the font of the block quote?

Sorry if this is a duplicate, but I can't find the right way of doing this. I want to redefine my quote and quotation commands to use a different font. My main font is Linux Libertine O (I am using ...
3
votes
1answer
93 views

How to catch missing font error and use another font?

I write a TeX-document on two PCs, the files are transferred via USB-Stick. The document should be printed with a specific font. For legal reaons the font is only available on one PC. When I ...
6
votes
2answers
307 views

How to add LineFinal (falt) or WordFinal (fina) features to Garamond Premier Pro on XeLaTeX?

I'm still familiarizing myself with XeLaTeX and the fontspec package. I would like to access the OpenType feature LineFinal or WordFinal with the Garamond Premier Pro font from Adobe. For example, I ...
3
votes
1answer
284 views

xetex - myriad pro - want “bold” but not “bold condensed” font

Situation: I've got Myriad Pro included in xetex via: \setmainfont[Mapping=tex-text]{Myriad Pro} But when I use \textbf{this is a test} and see the result in Acrobat, I can see that I've gotten ...
14
votes
4answers
1k views

Bembo, Bembo Book or Garamond Premier Pro? And how to exploit all their features with LuaLaTex?

I am allowed to use one of these fonts (or the three of them if I want) to edit a document. Here is the list of the Bembo fonts I have : Bembo-Bold.otf Bembo-ExtraBoldOsF.otf ...
4
votes
1answer
290 views

Font Size Conversion

I am writing a document that is supposed to be typeset in Time New Roman or equivalent. The problem I have is that 12pt in font A is not the same as 12pt in font B. So is there a conversion table of ...
4
votes
0answers
805 views

fontspec: \setmainfont problem, bold/italic/bolditalic font error [closed]

A long time ago i posted about an error I occur when trying to set the mainfont using xelatex and the fontspec package, specifically the bold/italic/bolditalic fonts. My previous post from 2011 is ...
3
votes
1answer
553 views

Automatic switching of math font based on current text font

I'm writing a document using xelatex and have set up my document fonts using fontspec as follows: \usepackage{fontspec} \setmainfont[Mapping=tex-text,Numbers=OldStyle]{Linux Libertine O} ...
2
votes
1answer
155 views

Overriding `\bfseries` and `\itshape` to do special things for certain families

My problem arises from trying to work around the issue described in question 26276: I want to use SizeFeatures to explicitly select another family for small sizes, but this causes bold / italic / etc. ...
4
votes
2answers
568 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}{% ...
3
votes
1answer
316 views

LuaTeX error (font expansion): font has been expanded with different expansion step

I am suddenly getting the following error when trying to compile my document with LuaLaTeX and my simple question is: what does it mean? LuaTeX error (font expansion): font has been expanded with ...
2
votes
0answers
165 views

including font in .otf [closed]

I'm writing my thesis at a company and have to write it in their default font. How can I set a .otf font in Latex (using Texmaker on Windows)? \documentclass[a4paper,12pt,twoside,ngerman]{article} ...