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

learn more… | top users | synonyms

0
votes
0answers
4 views

Incorrect rendering for Khmer using LuaLaTeX

\documentclass{article} \usepackage{fontspec} \usepackage{xltxtra} \newfontfamily\khmerfont[Script=Khmer]{Khmer OS} \newcommand{\textkh}[1]{\begingroup\khmerfont#1\endgroup} \begin{document} ...
3
votes
2answers
52 views

Why does fontspec interfere with Ligatures? (In retrospect: How the dutch hyphenate)

The tufte sample text (provided by ConTeXt) contains a || sequence which normally gets turned into an emdash. For some reason the inclusion of fontspec disables this. I've tried to use various options ...
0
votes
0answers
13 views

\setmainfont error with most recent fontspec version [duplicate]

I get a mysterious error running the following MWE (with both XeLaTeX and LuaLaTeX): \documentclass{article} \usepackage{fontspec} \setmainfont{texgyrepagella-regular.otf} \begin{document} Hello ...
1
vote
0answers
100 views

fontspec kernel/property-unknown [on hold]

I have a problem with fontspec. When i try to build simple document: \documentclass[11pt, a4paper]{article} \usepackage{fontspec} \begin{document} aaa \end{document} I get an error: ...
6
votes
1answer
408 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?
4
votes
1answer
47 views

\thinspace/\, inserts no space

In my greek-german document, the second \, of the combination \,--\, doesn't actually insert a space. It rather looks as if I wrote just \,-- (Often, the same occurs with other languages and fonts, ...
1
vote
1answer
27 views

change script of footnote label in bidi

I am using Memoir and polyglossia (including fontspec and bidi). My document contains text in Arabic script and Latin script. I'd like the footnote labels (footnotemark) to display in the defined ...
1
vote
0answers
43 views

Substitute a character by another one (Lualatex)

The lowercase figures of Adobe Garamond Pro are very nice, but the 1 can be confusing: Is this 11 (as it should be) or 2 in Roman? I would like to replace automatically this lowercase 1 with ...
4
votes
1answer
53 views

Change font blackness

\documentclass{article} \usepackage{fontspec,kantlipsum} \begin{document} \fontspec[Scale=0.9]{Trebuchet MS} \kant[1] \end{document} I'm using XeLaTeX but the text is way to black, it's like if I ...
1
vote
1answer
168 views

Latest MiKTex update breaks with fontspec

I'm using this document class type https://github.com/praseodym/tudelft-report-latex/blob/master/tudelft-report.cls and I get the following error when I run it throgh XeLatex: ! Undefined control ...
0
votes
0answers
34 views

CV template run time error in TeXstudio

i am trying to make cv by using LaTex template but there is an error when i start compilation. Fatal fontspec error: "cannot-use-pdftex" The fontspec package requires either XeTeX or LuaTeX to ...
0
votes
0answers
20 views

TexPad and fontspec package

I am compiling a .tex file with XeTeX from the cloud on an Ipad with TexPad. Whenever I try to load the fontspec package, it fails. Does anyone have any experience with this problem? Can TexPad simply ...
4
votes
3answers
60 views

local application of \addfontfeature and WordSpace=x

I wanted to reduce the inter-word space for some passages in a written text with the rest of the text remaining unchanged. So I tried to use \addfontfeature locally which I execute with the command ...
4
votes
0answers
100 views

“Undefined control sequence” error with fontspec

As a result of updating the l3kernel, l3packages, and l3experimental, a XeTeX document I'm working on no longer compiles. I've narrowed down the problem to fontspec failing to find a control sequence ...
1
vote
1answer
131 views

Cannot compile xelatex template

I try to create my CV using the following template two-columns, one page. I manage to find the fonts in .ttf format and installed them in my win7 system. However, I get an error of "font-not-found" ...
2
votes
0answers
24 views

Changing the Font of Variables in an Equation Using XeLaTeX

I am trying to digitalize a book(130pages) by retyping it all(copy is in a really bad shape to be scanned). I am attempting to use Helvetica Neue as the main font for all numbers and variables on all ...
5
votes
1answer
38 views

Circumflex over Numeral with fontspec

For a music analysis paper I'm working on, I need to enter an arabic numeral with a circumflex over it to represent a musical scale degree. Normally, I can just use \^3, but as soon as I load the ...
6
votes
2answers
120 views

How to get proper placed closing German doublequotes using lua|xelatex and Garamond Premier Pro Opticals (Regular)?

Using Adobe's Garamond Premier Pro Opticals (latest version: 2.104) the closing German doublequotes are set exactly above (instead of behind) a sentence's closing dot (e.g. questionmark is not ...
2
votes
1answer
57 views

Is there any way to use OpenType’s “access all alternates” feature in XeLaTeX?

This is inspired by this question, where an alternate character of a font is only available via OpenType’s access all alternates (aalt) feature. My question is simply: Is it possible to access this ...
7
votes
2answers
466 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 ...
1
vote
0answers
49 views

Specifying the font for only one character with unicode-math

I'm using XeTeX and the fontspec and unicode-math packages. In order to use a different math font for Greek letters, I do something like this, using the range option of \setmathfont: ...
13
votes
3answers
15k 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 ...
0
votes
0answers
30 views

Change \emph to swash in fontspec

I read this post Activate swash or alternate for Italic only about swash and \emph command. Reading comments I see that \emph just chooses between \textit and \textrm depending on the slope of the ...
2
votes
1answer
86 views

XeLaTeX with fontspec is slow every time, not just the first time

I am running XeLaTeX (distributed as part of MikTeX) on Windows 7 Service Pack 1 64-bit. The following test file takes a long time to compile: \documentclass{article} \usepackage{fontspec} ...
2
votes
1answer
62 views

Problem with math symbols unicode-math

I'm begginer with lualatex, fontspec and unicode-math packages. I try load differents fonts for text and for math operators. But some math symbols not appears. For example, I try this (just to show ...
1
vote
1answer
80 views

Changing the language in a beamer presentation with mtheme

I want to set the main language of my beamer presentation to German, in order to have German dates for \today etc. I use the mtheme by Matthias Vogelgesang. A minimal example (from the demo file) ...
7
votes
1answer
111 views

How to make the `url` package respect fontspec font options (stylisticset) with LuaLaTeX

I use the inconsolata zi4 font as the monospace font in my document but use the curved l as well as the straight quote thought the stylisticset option in fontspec. however, when using the url package ...
2
votes
2answers
68 views

Keeping constant line spacing even with descendents

I am trying to create a command to typeset titles in a document. At the moment I made it as simple as possible to help debug possible problems. My code is: \documentclass{book} \usepackage{fontspec} ...
3
votes
2answers
102 views

luaotfload font names database creation crashes

Edit 3, re-phrasing my original question: luaotfload expects a file /usr/local/etc/fonts/fonts.conf. Why? This seems not to be a canonical place for any fonts.conf in xubuntu, or is it? luaotfload ...
5
votes
1answer
38 views

handling of `--` in minted

I'm using minted for pretty printing console output and have just noticed that double hyphens, i.e. --, for program options are getting turned in en-hyphens, i.e. –. A MWE is: \documentclass{memoir} ...
2
votes
1answer
96 views

Use german umlauts with a font where its not defined

I need to use special font. There are no german umlauts defined. So everytime I get an error if I try to use them with my font (BentonSans): \documentclass[a4paper,10pt]{article} ...
13
votes
1answer
131 views

How can you check if fontspec (with LuaLaTeX) can load a font?

I want to check if fontspec (with LuaLaTeX) can load a certain font and if not try to load another one. For pdflatex I did by checking if the package file exists; but I don't find an easy way to do it ...
6
votes
1answer
67 views

Cabin font doesn't render properly apostrophe

I'm using Cabin font with XeLaTeX. The apostrophe is not render properly. As you can see on the following screenshot, there is not enough space betweend L and a. On this screenshot (with the ...
3
votes
1answer
41 views

Using tipa with XeLaTeX fontspec and real UTF-8 characters

Following on from the post Using TIPA with fontspec, how would I go about using IPA glyphs with XeLaTeX using the actual Unicode UTF-8 characters instead of using the tipa re-encoding? That is, using ...
15
votes
1answer
2k views

Using TIPA with fontspec

I'm trying to write a document that will contain characters in many different scripts (for which I am using fontspec and rendering with xelatex) and IPA symbols (for which I am using TIPA). ...
8
votes
1answer
48 views

How to load an OFM-based PFB font with fontspec?

In my ḍād package (for Arabic typesetting, see also the TUGboat paper) I use a PostScript font with OFM metrics file. I load the font in the usual way, going through an FD file. This works only for ...
5
votes
2answers
102 views

More problems with TIPA and Fontspec

I do quite a lot of work with Sanskrit and linguistics. For the Sanskrit (Devanagari letters) I used fontspec and render with xelatex. This, as far as I can tell, is the only way to go. For the ...
6
votes
1answer
72 views

URW Grotesk for XeLaTeX/LuaLaTeX (fontspec)?

How can I use URW Grotesk font with XeLaTeX/LuaLaTeX (fontspec) ? Or if this is not possible/easy, are there a good heavy font replacement for it (if possible that works as well with PDFLaTeX) ? ...
1
vote
1answer
30 views

Setting the optical size with beamer and fontspec

I am using fontspec to select a font for my beamer presentation. The font I am using has different optical sizes, and fontspec takes full advantage of this. This is great for high resolution print, ...
1
vote
1answer
63 views

Using sans-serif font for chemfig

In my document, I'm currently using chemformula for chemical formulae. To draw reaction mechanisms I'm trying to use chemfig, but it's proving very difficult to get chemfig to use the same sans-serif ...
3
votes
2answers
44 views

Disable shorter line spacing on lines without ascenders/descenders (setmainfont)

I'm using a system font with fontspec, and I'm using the Scale option when I declare it with \setmainfont. I've found that whenever I use the Scale option, the line spacing is no longer consistent. ...
33
votes
9answers
12k views

How to get straight quotation marks?

How do I get straight quotation marks, i.e., " and ' in TeX? (No, \verb changes the font and this is unacceptable.) [Edit] I forgot to mention that I’m using XeLaTeX, and fontspec is a necessity. ...
4
votes
1answer
148 views

LuaLaTeX from texlive-2014: Command \textsubscript unavailable in encoding EU2

Here is a minimal example of a file that lualatex from texlive-2013 compiles fine: \documentclass[11pt]{article} \usepackage{fontspec} \begin{document} X\textsubscript{Y} \end{document} If I try to ...
3
votes
1answer
94 views

How can I use the SBS font in Xe|Lua|La|TeX and specify which words to replace?

The Sans Bullshit Sans (SBS) font uses (currently only three) ligatures to replace words that are hard coded into the font's internal glyph substitution table. How can I use the SBS font in ...
3
votes
2answers
103 views

XeLatex otf font won't load

I am very inexperienced with LaTeX. I have a tex file that has worked for a long time, then stopped without any changes to the file. We purchased NeueHaasGrotDisp font. I have the fonts in OTF ...
10
votes
2answers
224 views

Switching to lualatex: How to translate font setups?

I am a long-term pdflatex user. Once in a while I want to give lualatex a try (e.g., to try the recent TikZ graph layout engine). A couple of good answers here at tex.se describe what to do in that ...
1
vote
0answers
31 views

How to switch back to main language after \foreignquote (csquotes, polyglossia, lualatex)? [duplicate]

csquotes' \foreignquote{language}{text} does not seem to switch back all the language specific font features automatically. In my opinion the language specific changes should be applied only locally ...
2
votes
1answer
39 views

`fontspec` changes indention of itemize

When I add the fontspec package, the items in an itemize environment get an additional indention. You find the code in the following example, it is mainly from this question: \documentclass{scrreprt} ...
2
votes
1answer
86 views

Text Bold with fontspec [closed]

I am trying to use: \usepackage{fontspec} \setmainfont{Cambria} But I cannot manage to emphasise the text by using usual \textbf or \textit. How to do it on Mac? Or which is the closest to ...
3
votes
1answer
108 views

Why can I not use the font name listed in the fc-list's output?

\documentclass{article} \usepackage{fontspec} \setmainfont{Helvetica Neue LT Pro 55 Roman} % This line is OK. \setsansfont{HelveticaNeueLT Pro 55 Roman} % This line is ERROR! \begin{document} Hello ...