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

learn more… | top users | synonyms

5
votes
2answers
112 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 ...
5
votes
3answers
278 views

Changing numbers font features while changing shape

I am writing a document with the main font set up with old numbers, but I would like to have the "normal" style in the tables. This works but one particular table has some of the numbers in italic and ...
5
votes
2answers
3k views

XeTeX not working on Ubuntu 10.04?

When trying to compile a LaTeX document in Ubuntu 10.04 with xelatex I get the following error message: This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian) restricted \write18 ...
5
votes
1answer
47 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 ...
5
votes
1answer
423 views

XeLaTeX, Modern Latin and cyrilic

\documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \usepackage{unicode-math} \setmainfont{Latin Modern Roman} \setsansfont{Latin Modern Sans} \setmonofont{Latin Modern Mono} ...
5
votes
3answers
597 views

Controlling fontspec to use certain font features for different fonts in one document

I'm using the font Fontin to prepare a document and have come across a problem when using the discretionary ligatures. The regular font supports the discretionary ligatures, but the bold and italic ...
5
votes
1answer
2k 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 ...
5
votes
1answer
348 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?
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} ...
5
votes
1answer
638 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} ...
5
votes
1answer
242 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 ...
5
votes
1answer
304 views

Best way to use Linux Biolinum Keyboard with fontspec?

I am trying to typeset keyboard shortcuts in my document, e.g. "CTRL + SHIFT + S". The Linux Libertine font family includes a nice keyboard font that I would like to use. What's the best way to use it ...
5
votes
1answer
753 views

Fontspec SizeFeatures and recursive font definition

I suspect this isn't valid code, but the docs are ambiguous. fontspec is loaded with \fontspec[<font features>]{fontname}. BoldFont is included in "font features". Then I should be able to ...
5
votes
1answer
741 views

Using \texttt with polyglossia Hebrew

\texttt does not work as expected when using it with the polyglossia package, in a segment in the Hebrew language, even when the actual text to be set is Latin. I tried reading fontspec documentation, ...
5
votes
1answer
1k views

Using Graphite fonts on XeLaTeX

I want to use a Graphite font as the main font in a XeLaTeX document, but fontspec doesn't support Graphite fonts yet. Currently I'm using XeTeX's native way to change fonts, but that's cumbersome, as ...
5
votes
1answer
55 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 ...
5
votes
1answer
144 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 ...
5
votes
1answer
70 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 ...
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'' ...
5
votes
1answer
235 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 ...
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 ...
5
votes
1answer
642 views

Can TexText in Inkscape only load certain packages? - Or, how to recreate a page from a thread-bound Chinese book?

I've finally managed to install Inkscape 0.48 on my Mac OS X Mountain Lion. My TeX distribution is TeX Live. I've installed TexText 0.4.4. and I can use the extension to write simple LaTeX text (I ...
5
votes
2answers
531 views

Weird spacing with DejaVu Sans Mono with MiKTeX's XeLaTeX

\documentclass{article} \usepackage{fontspec} \setmainfont{DejaVu Serif} \setsansfont{DejaVu Sans} \setmonofont{DejaVu Sans Mono} \begin{document} Hello World! \textsf{Hello World!} ...
5
votes
1answer
343 views

font name with a space, using XeLaTeX and fontspec

I use XeLaTeX, amsmath, fontspec, unicode-math and standalone to create a pdf containing one single equation which I then import to Inkscape for a poster. When using font names with a space in it, ...
5
votes
3answers
639 views

Using OTF/TTF fonts that are installed with TeXLive

I've noticed that there are plenty of OTF and TTF fonts packaged with my new TexLive 2012. For example, the Asana-Math OTF font is in $TEXMFDIST/fonts/opentype/public/Asana-Math And there is a TTF ...
5
votes
1answer
1k views

With fontspec, how can one define a variation of a font family?

I keep running into the following situation using fontspec with XeTeX: I define a "base" font family using \newfontfamily. I then want to access a "spaced small caps" variant, using the LetterSpace ...
5
votes
2answers
1k views

Error in \setmainfont

I'm trying to follow the example on the Wikipedia page about XeTeX. But when I run the TeX code, I get this error: (/usr/share/texmf/tex/latex/etex-pkg/etex.sty) ...
5
votes
1answer
333 views

Adobe Caslon Pro, XeLaTeX, fontspec - how to change the “dollar” symbol that's used with oldstyle numbers

I am using XeLaTeX with Adobe Caslon Pro, and I would like to have oldstyle numbers. But when I use the option Numbers=OldStyle in fontspec, my dollar sign changes from a full-height S with two lines ...
5
votes
1answer
196 views

'r' rendered improperly in Devanagari ligature [closed]

Have bumped into a LaTeX-specific problem (on my current system at least) in typesetting Devanagari: 'r' in conjunct consonants such as 'ntrya' does not render properly (e.g., as न्त्र्य, see image ...
5
votes
1answer
889 views

Font name in LuaTeX's fontspec

I have a document using fontspec which works fine with XeTeX, but a the Linux Libertine Initialis O font is not found when compiling with LuaTeX: Here is a MWE reproducing the problem: ...
5
votes
1answer
292 views

Importing missing glyphs in font

I'm using a title font which has very few characters, and I need '+' and '=' for a given title, which are missing. Using fontspec, is it possible to import only these two missing glyphs from another ...
5
votes
1answer
417 views

Use variant glyphs from Mac OS X fonts under Linux

I would like to get the variant option from fontspec working under Linux. Unfortunately, this option which works with the AAT font system is not compatible with the OpenType font mechanism used under ...
5
votes
1answer
795 views

Math italics with unicode-math.

I'm using Tex Live 2010. Here's the example I want to discuss. \documentclass{article} \RequirePackage{amsmath} \RequirePackage{unicode-math} \setmainfont{Linux Libertine O} ...
5
votes
1answer
149 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 ...
5
votes
1answer
246 views

System-wide feature file in lualatex

I have a font (Dolly) with f_i and f_l ligatures, which requires a feature file to make them work. Everything works fine using the following: # dolly.fea languagesystem DFLT dflt; languagesystem ...
5
votes
1answer
183 views

Ornamental hyphenation character with Xe(La)TeX

Using Xe(La)TeX, how could the hyphenation character be set to any particular glyph in a given font? I'd also like to have the possibility to set a color for the glyph when used for that task and to ...
5
votes
2answers
626 views

Asana-math + LuaTeX : missing greeks/arrows

After recent update of Asana-Math (packaged for MiKTeX on 2011-10-11) I noted that Greek letters and various arrows disappear from PDF file after it was saved from within Adobe Acrobat 10 (via the ...
5
votes
0answers
78 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 ...
5
votes
0answers
158 views

TeX Gyre fonts in XeLaTeX and LuaLaTeX: call by name or file name?

Is there any downside of using file names with \setmainfont, except for the fact that it takes more typing? I ask because I am experiencing problems with using names for TeX Gyre fonts on my Linux ...
5
votes
0answers
314 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} ...
5
votes
0answers
361 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 ...
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} ...
5
votes
0answers
5k views

The fontspec package requires either XeTeX or LuaTeX to function [closed]

I am not an expert in LaTeX, but I was writing a paper, everything was going fine, until it suddenly crashed giving me the error: The fontspec package requires either XeTeX or LuaTeX to function. ...
5
votes
0answers
130 views

fontspec features not working correctly in floating environment [closed]

The fontspec properties seem to work not correctly inside a floating environment, if used with LuaLaTeX. \documentclass{article} \usepackage{fontspec} \begin{document} { ...
4
votes
2answers
775 views

Set section and subsection header to ttf font in KOMA-script

I'd like to set a custom font I acquired for all section and subsection headers in a scratcl paper I'm writing. It's a ttf and installed correctly on my Mac. I know about \setkomafont and ...
4
votes
2answers
84 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 ...
4
votes
2answers
570 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}{% ...
4
votes
1answer
331 views

Graphite features (Chinese Pinyin and low diacritics) on Gentium Plus

I'm trying to activate the Graphite features on Gentium Plus (Chinese Pinyin tone marks + low diacritics). This is my minimal example: \documentclass[utf8,12pt,letterpaper]{article} ...
4
votes
2answers
5k views

Error in fontspec.sty

I downloaded a template for CV and one of the requirements was installation of fontspec.sty. Now when I compile the file the code file of fontspec.sty pops up in a new tab in TeXnicCenter and it ...
4
votes
1answer
182 views

microtype tracking disables small caps in luaLaTeX

Normall microtype tracking loosens the tracking of small caps. However, with fontspec's \setmainfont{ebgaramond}, small caps are completely disabled and I get a loose normal text, as opposed to ...