Skip to main content

Questions tagged [fontspec]

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

Filter by
Sorted by
Tagged with
40 votes
7 answers
11k views

Fake small caps with XeTeX/fontspec?

Using XeTeX and fontspec, I use the Liberation font family in of my documents. Unfortunately those fonts (esp. Liberation Serif) do not natively support small caps. Is there a way to enable fake ...
Michael's user avatar
  • 824
73 votes
2 answers
48k views

Load fonts that are in a ./fonts directory

I'm new to TeX. I have the following problem: How can I load a font from a file in a directory, which is located in the root of the project? Say I have something like: /project /fonts ...
srcspider's user avatar
  • 833
21 votes
1 answer
3k views

TeX accents do not seem to work with fontspec and xe/lua/latex

I am using Minion Pro as mainfont and it does not have in its glyph table the character U+1E47 Latin small letter with dot below which I need only once in my document. Rather than change to another ...
chandra's user avatar
  • 3,094
16 votes
1 answer
2k views

Substituting fonts for emojis in LuaLaTeX

Inspired by this question, I try to use a different font for all emoji characters in the document. In the code sample below, I build the is_emoji function according to unicode standards. \...
Alan Xiang's user avatar
  • 5,247
25 votes
10 answers
5k views

How can I access a specific glyph in LuaLaTeX/Fontspec?

The OTF version of Minion Pro contains several Dingbats glyphs I would like to access. Some of them are not unicode, so I can not just copy the specific unicode character I want to access into my text ...
Ingo's user avatar
  • 20.1k
18 votes
1 answer
4k 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). Ordinarily,...
Au101's user avatar
  • 10.3k
50 votes
2 answers
5k views

How can I specify a chain of fallback fonts in XeLaTeX?

I am aware of the following questions and answers about font fallback in XeTeX (or LuaLaTeX): Unicode in XeTeX with automatic font substitution? Font substitution with XeLaTeX Define fallback font ...
Clément's user avatar
  • 4,024
18 votes
2 answers
4k views

Getting started with Greek and Hebrew in LuaLaTeX

I am typesetting a 17th century English theological document that uses a smattering of Greek and Hebrew. I am using LuaLaTeX with TeXShop on the Mac. Is LuaLaTeX up to the task? If so what are the ...
Paul Dulaney's user avatar
  • 5,350
14 votes
3 answers
3k views

Internal error: bad native font flag (XeLaTeX, fontspec, newtxmath, libertine, \dot)

I'm trying to use \dot{P} in a math environment. MWE: \documentclass{scrartcl} \usepackage[no-math]{fontspec} \usepackage{libertineotf} \usepackage[libertine]{newtxmath} \begin{document} \begin{...
Qrrbrbirlbel's user avatar
10 votes
4 answers
3k views

Accessing IPA characters when using Charis SIL

When using Charis SIL, how do I access IPA characters? Are there handy macros, as with tipa.sty? If I have to set up my own encoding using unicode numbers, how is this best done? (Code from those ...
Daniel Harbour's user avatar
20 votes
1 answer
1k views

LuaLaTeX protrusion problem with Negative value

Please see the following screen shots. As you can see there are two "overfull" hbox there. However, LaTeX does not produced any overfull box warning at all. I tried to produce a minimal working ...
Yan Zhou's user avatar
  • 9,052
13 votes
1 answer
4k 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, ...
ClintEastwood's user avatar
12 votes
2 answers
3k 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} \...
szantaii's user avatar
  • 4,749
11 votes
1 answer
1k 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} \...
Thérèse's user avatar
  • 12.7k
10 votes
2 answers
8k views

font set problems in beamer

i want to set the main font in my beamer as "Consolas" i do like this : \documentclass{beamer} \usepackage{fontspec} \usetheme{Warsaw} \begin{document} \setmainfont{Consolas} \begin{frame} we discuss ...
Nax's user avatar
  • 1,411
48 votes
9 answers
35k 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. ...
ȷ̇c's user avatar
  • 1,841
25 votes
5 answers
4k views

Capital ẞ in LaTeX/XeTeX/lualatex/whatever

I am trying to get a ẞ in my LaTeX document. How can I do this? I already tried: Using other fonts: dejavu and libertine Using \MakeUppercase{ß}, which sometimes produces nothing, sometimes produces "...
schoppenhauer's user avatar
25 votes
3 answers
2k 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”. ...
Evpok's user avatar
  • 2,842
22 votes
3 answers
6k views

How to use Noto Color Emoji with lualatex?

I want to use Noto Color Emoji with lualatex (package fonts-noto-color-emoji on my box). However, this fails as follows. How to use Noto Color Emoji with lualatex? \documentclass{article} \usepackage{...
Martin Monperrus's user avatar
19 votes
3 answers
3k views

Possible to use MnSymbol with LuaTex?

I want to use the Minion Pro font together with math symbols from MnSymbol (http://www.ctan.org/tex-archive/fonts/mnsymbol). Is this possible? It has already been discussed here -> http://www.latex-...
user4811's user avatar
  • 4,185
17 votes
1 answer
5k views

\emph{} no longer works as expected in XeLaTeX / LuaLaTeX

Compiling with either XeLaTeX or LuaLaTeX, \emph{} no longer displays text as expected, i.e. in italics. \textit{} works fine. Here is a MWE demonstrating the issue. \documentclass{article} \...
pictho's user avatar
  • 173
6 votes
1 answer
1k views

After MiKTeX update: suddenly all fonts (incl. existing path-referenced ttf files) are not found by fontspec / LuaLaTeX anymore

I just updated my MiKTeX packages (and also did FNDB refreshes, updmap and everything and also already tried a complete fresh install), but now I suddenly get loads of errors telling me that my fonts ...
Foo Bar's user avatar
  • 13.3k
18 votes
1 answer
1k 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 ...
TeXtnik's user avatar
  • 5,873
13 votes
1 answer
2k views

Defining subfamilies for a font

I wish to import from files a font family, which comes in extra light, light, regular, medium, bold and black. Instead of defining several different font names and choosing them as I need, it would be ...
Subhamoy S.'s user avatar
12 votes
1 answer
2k views

Can one set a specific font variant in xelatex for uppercase letters only?

I would like to typeset a short, letter-like document using the Zapfino font, with the following twist: I'm OK using Zapfino's "standard" (i.e., Variant 0) glyphs for lowercase letters, but I'd like ...
Mico's user avatar
  • 512k
10 votes
3 answers
2k 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 ...
Au101's user avatar
  • 10.3k
47 votes
4 answers
37k views

Switching back to Computer Modern within XeLaTeX

Until I select a font using \fontspec{ ... }, XeLaTeX uses the default of Computer Modern. Once I select some font, I have no idea how to re-select Computer Modern. Can anyone help?
Mayer Goldberg's user avatar
30 votes
2 answers
4k views

An example of changing kerning of a font in LuaLaTeX

LuaLaTeX, through the luaotfload package, is able to dynamically add and modify features and properties of a font. This is performed by using the FeatureFile option in fontspec when loading a font; e....
Will Robertson's user avatar
23 votes
3 answers
7k views

How to enable ligatures for emdash/endash in LuaTeX ?

I cannot switch on ligatures for emdash (---) and endash (--) in LuaLaTeX. Here is my test file: % !Mode:: "TeX:UTF-8" \documentclass{article} \usepackage{fontspec} \defaultfontfeatures{Ligatures=...
Igor Kotelnikov's user avatar
23 votes
2 answers
7k 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 ...
Daniel's user avatar
  • 37.7k
14 votes
1 answer
2k views

Lining numbers not working in certain fonts

I’m using the Linux Libertine font and have old style numbers enabled. However, in a certain context I want to use lining figures instead. Normally I should be able to switch using \addfontfeature ...
Konrad Rudolph's user avatar
9 votes
2 answers
5k 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}{% \...
Svend Tveskæg's user avatar
7 votes
2 answers
3k views

Change XeTeX fonts automatically depending on Unicode blocks

I would like to move from p(La)TeX (which was a TeX system specifically tailored to Japanese in a pre-Unicode era) to Xe(La)TeX, and I'm having a problem. In p(La)TeX, Japanese fonts are only used ...
Yuji's user avatar
  • 1,025
5 votes
2 answers
12k views

Use of \scshape or \textsc with fontspec/xelatex

I've already tried Use of \scshape or \textsc in beamer \institute fix with \rmfamily in the MWE below, but it doesn't work - I've seen A problem with \textsc as well, but I don't think I should load ...
sdaau's user avatar
  • 17.1k
3 votes
4 answers
2k views

Accented letters with IM FELL fonts

I am having an error compiling the following code with xelatex and lualatex: ** WARNING ** "seac" character deprecated in Type 2 charstring. ** ERROR ** Type2 Charstring Parser: Parsing charstring ...
user56153's user avatar
  • 1,009
1 vote
3 answers
1k views

Error in fontspec

(my first question here) I'm using xelatex to compile this code: \documentclass{book} \usepackage{fontspec} \begin{document} %This is a Greek text ``Ελλάδα'' text \end{document} and receive this ...
alfred's user avatar
  • 607
89 votes
2 answers
30k views

microtype settings for dummies

More than a year ago, a friend of mine was totally excited about microtype features in LaTeX. He was talking about it quite a bit and then said to me: "Show me your document, let me add some lines of ...
ClintEastwood's user avatar
34 votes
1 answer
2k views

In lualatex, hyphenation doesn't seem to work for words that contain certain ligatures

It would seem that hyphenation does not work properly under LuaLaTeX if the hyphenation points occur at places where TeX inserts ligatures. Consider the following MWE, which (i) provides hyphenation ...
Mico's user avatar
  • 512k
34 votes
4 answers
33k views

How to properly install and use a new font with LuaLaTeX?

I have problems trying to get new fonts to work when compiling with LuaLaTeX. I'm working on Mac and use TexShop (with the MacTeX package). It goes like this: I downloaded for example the Cardo font;...
Meclassic's user avatar
  • 1,807
27 votes
2 answers
5k views

TeX (LuaTeX, XeTeX, fontspec) support for OpenType variable fonts

Is anyone working on implementing support for the new OpenType variable fonts in any TeX/LaTeX implementation like XeTeX or LuaTeX? Will fontspec support accessing the new tables?
Daphne Preston-Kendal's user avatar
21 votes
1 answer
4k views

Lualatex (luaotfload) broke after upgrading to Mavericks

Ever since I upgraded to OS X Mavericks—post hoc ergo propter hoc—I can no longer compile my dissertation using LuaLaTeX. When running lualatex I first got the following error: luaotfload | db: ...
jdevuyst's user avatar
  • 313
21 votes
1 answer
8k views

How to use all variants of Latin Modern Roman with fontspec?

Sorry I have minimal knowledge of how font families work in TeX. After trying to read the fontspec documentation I get more and more confused. I am trying to get as many variants of Latin Modern Roman ...
Mobius Pizza's user avatar
  • 2,346
20 votes
3 answers
8k views

Lualatex: Font table with examples

I wanted to create a table of the fonts on my machine with short examples of each. So I got the function below and tried to modify to print the font in its typeface. (LuaLatex) \documentclass[10pt,...
Louis's user avatar
  • 1,481
18 votes
2 answers
10k views

Selecting main math font in LuaTeX?

I’d to set some fairly simple maths in Minion Pro (and potentially other system fonts), using LuaTeX.  I’d hoped that something like the following should work: \documentclass{minimal} \usepackage{...
Peter LeFanu Lumsdaine's user avatar
18 votes
2 answers
12k 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 ...
castle-bravo's user avatar
18 votes
4 answers
28k 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 ...
Lukasz Gadawski's user avatar
17 votes
1 answer
16k views

XeLaTeX with polyglossia and Greek

I'm struggling a lot with XeLaTeX and polyglossia. Somehow the font selection doesn't seem to work as I would expect it (and as the error messages suggest). Please consider the following example: \...
kongo09's user avatar
  • 2,496
12 votes
4 answers
4k views

Increase word space between words in small caps

With tracking activated for small caps, it can be a little bit hard to detect interword spaces. Cf. below. \documentclass{article} \usepackage{fontspec} \setmainfont{Libertine Serif}[ ...
Sverre's user avatar
  • 20.8k
10 votes
1 answer
4k 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 ...
Anne-Laure's user avatar
10 votes
2 answers
1k views

Searchable and copyable small caps, ligatures and umlaut in PDF created by XeLaTex

I have several issues with searching and/or copy-pasting text from my PDF created with XeLaTex. Consider the following MWE, the PDF search gives me no results for certain words. \documentclass[% ...
Lysanne's user avatar
  • 403

1
2 3 4 5
12