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

learn more… | top users | synonyms

5
votes
1answer
155 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
44 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
347 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
834 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
958 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
2k views

fontspec setmainfont working

Here is a minimal problem example \ProvidesClass{cvMinimal}[2012/04/30 CV class] \NeedsTeXFormat{LaTeX2e} \LoadClass{article} %%%%%%%%%% % Colors % %%%%%%%%%% \RequirePackage{xcolor} ...
8
votes
3answers
361 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
178 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
310 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
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
234 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 ...
10
votes
1answer
329 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
271 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
212 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 ...
16
votes
2answers
388 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”. ...
8
votes
1answer
6k views

Problem while compiling template CV 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
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} ...
7
votes
1answer
177 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
404 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
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
479 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 ...
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
334 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 ...
0
votes
1answer
192 views

How do I create a visually pleasing tree hierarchy from a difficult to read CSV File (MySQL Export)?

Ok here is the deal: I am working on an endangered language project. The data is contained in a MySQL database. I can run a query to produce a hierarchy, but the hierarchy is difficult for humans to ...
12
votes
3answers
247 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 ...
3
votes
1answer
168 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 ...
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 ...
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 ...
9
votes
3answers
512 views

How to use \checkmark and Cambria Math?

In a document I need to use Cambria Math but at the same time be able to use \checkmark for an itemize environment. But as soon as I load unicode-math the checkmark disappears. Is there a work around ...
1
vote
1answer
300 views

Loading URW Garamond in TeX Live 2012 with fontspec

I can use URW Garamond as follows: \documentclass[12pt]{article} \usepackage{parskip} \usepackage[urw-garamond]{mathdesign} \begin{document} \thispagestyle{empty} \textbf{Bold text} \\ Normal ...
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 ...
11
votes
4answers
352 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ʿ ...
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
226 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 ...
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. ...
24
votes
1answer
393 views

Bad interaction between fontspec and some lua code that performs string-related search and replace operations

Update 2013/05/28: The selnolig package is now on the CTAN. Comments and critiques always welcome! If you wish to contact me about any aspects of the package, please use the email address that's given ...
7
votes
2answers
279 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 ...
5
votes
1answer
227 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?
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} ...
2
votes
1answer
486 views

XeTeX font problem (font-not-found) on Mac OS X 10.8

I installed Gotham font by copying otf files to /Library/Fonts/Gotham. Although Font Book cannot show the installed Gotham font properly (characters are borken), but Font Validation was fine, and it ...
6
votes
1answer
994 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 ...
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 ...
3
votes
1answer
2k views

fontspec does not work correctly. MiKTeX portable, no admin rights

I am trying to set up a TeX System at work, where I have no admin rights. So I went for MiKTeX portable. It is "installed" on my Desktop. I want to use fontspec with XeLaTeX to be able to choose the ...