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

learn more… | top users | synonyms

8
votes
2answers
657 views

First steps with LuaLaTeX and ttf fonts

I am just starting to use LuaLaTeX. Mainly because I want to use a ttf font for a presentation. My MWE looks like \documentclass{article} \usepackage{fontspec} ...
1
vote
1answer
106 views

Updating a font in fontspec

I want to implement all the LaTeX code mentioned in Showcase TeX Typography for TUG's Calendar. The implementation involves use of special fonts like Phaeton. I have installed it. But I don't get ...
2
votes
0answers
802 views

XeLaTeX/LuaLaTeX + fontspec “font-not-found” in CV template [closed]

I am trying to compile a CV template using XeLateX. I have always used Pdflatex, so I created a XeLaTeX command as described here: Use XeLaTeX in Texmaker instead of pdfLaTeX. I then downloaded the ...
2
votes
0answers
58 views

How to choose fonts with different optical sizes with fontspec [duplicate]

The font EB Garamond is a font that provides (at the moment two) different optical sizes. The fontspec package will automatically choose the appropriate optical size (cf. the manual under section ...
3
votes
1answer
101 views

NFSS-like selection of font weights using fontspec and xelatex

OK, so I have mastered fontspec to the extent that I can say \setromanfont[Mapping=tex-text,Ligatures=Common,Numbers=OldStyle]{Sabon LT Std} and indeed, for effect, I can say stuff like ...
3
votes
1answer
269 views

Small Caps Computer Modern Unicode problem

I want to use CMU with xelatex for my docs. Everything is working fine except small caps for greek letters. My input (code) \documentclass{article} \usepackage{xunicode,fontspec,xltxtra} ...
3
votes
1answer
128 views

Fontspec and Ligatures

I understand that if I typeset using Lualatex or Xelatex, and include the following in the preamble: \usepackage{fontspec} \setmainfont{XYZ} Then system-wide non-latex fonts can be used ...
4
votes
0answers
170 views

Optical weight selection with fontspec

I'm using LuaTeX version 0.76 and fontspec version 2.3c. I have the full family of MinionPro, but fontspec seems not to choose the appropriate optical weight. While it works for the roman font of ...
11
votes
2answers
297 views

How can I replace a character (zero)?

Is it possible to replace characters in pdflatex? I use the Minion Pro and Myriad Pro font and the zero looks like a small 'O'. I want to replace the zero by a zero with a dot or slash in the middle ...
9
votes
1answer
281 views

fontspec option “Renderer=Basic” - what does it mean?

Since a few days I've been using the fontspec option \setmainfont[Renderer=Basic] ... in order to use the microtype option tracking=true with LuaLaTeX. I have a simple question on this: why does ...
1
vote
1answer
108 views

Cannot set lining numbers in footnotes with realscripts and Times New Roman font

Whereas loading the package realscripts will change the footnote markers to lining numbers in some fonts (cf. How to change footnote number style), it does not work with Times New Roman: ...
3
votes
2answers
328 views

Fontspec, open type fonts, and lining figures

So here is the problem I have: I am using fontspec and a number of my fonts have lining figure only in the small caps font. So my question is how can I tell XeLaTeX that when it comes to numbers ...
11
votes
1answer
566 views

Are there typographical drawbacks to using .otf font files?

Recently I've been messing around with different fonts in LaTeX and tonight got set up with the fontspec package which allows you to use .otf fonts in your LaTeX documents (in my case compiling with ...
2
votes
0answers
405 views

XeLaTeX with fontspec not recognizing ANY fonts on a windows platform (with miktex)

Getting the message: font-not-found see fontspec documentation. I'm using cls file abbreviated at the bottom of this page whose origin is latextemplates.com/template/friggeri-resume-cv. I've tried all ...
1
vote
0answers
265 views

Font not found error fontspec using WinEdt in Windows

I'm trying to compile a document and (as usual) I'm getting stuck with the fontspec package. These are the only lines of code that I are giving me grief. \RequirePackage[T1]{fontenc} ...
5
votes
1answer
199 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 ...
8
votes
1answer
239 views

Loading otf font as mathfont range using unicode-math

I'm trying to replace the letters in the math font so that it matches the main font. Curiously, this works for the italic version, yet not for bold and roman. Why is that? \documentclass{article} ...
1
vote
1answer
127 views

XeTeX loads Lido STF incorrectly

This is a followup to Are the Lido STF font installation instructions up-to-date?. I have the Lido STF fonts installed as described there. I also have them installed in OpenType format in ...
6
votes
1answer
227 views

Fontspec demands ifpdf.sty?

I am using Arch Linux, but I installed TeX Live from the network, so that I can use tlmgr to install a minimal set of packages that I can add to as needed. Here is a .tex file: ...
10
votes
2answers
158 views

Use 'space' glyph from a font

Is there a way to globally (or in an environment) set the 'space' glyph as the interword space? I'm importing the OpenType font via fontspec which has a specially designed 'space' glyph that I want to ...
6
votes
1answer
113 views

How can you use both fontspec and xmpincl?

Is there a way to use both the fontspec and the xmpincl packages? Using PDFTeX returns Fatal fontspec error: "cannot-use-pdftex" The fontspec package requires either XeTeX or LuaTeX to ...
0
votes
0answers
221 views

After updating to MacTeX 2013, font size and kerning of Monotype Corsiva are strange

I knew I probably shouldn't have upgraded, being not very experienced, I always have to wade through strange errors. However, this is really weird. Here's my example: %!TEX TS-program = lualatex ...
2
votes
1answer
194 views

Latexmk and fontspec

I'm trying to use latexmk with XeLaTeX. When I type: latexmk.pl -xelatex -pvc -cd -auxdir=TeXAux myfile.tex it all works fine. However I would like to use switches with XeLaTeX, such as ...
2
votes
1answer
95 views

Alphabetic sorting fails in biblatex when defining characters with \newcommand

I'm citing an Icelandic guy whose last name has a first character Á (U+00C1). If I write his name in my bibliography with that character code (\char"00C1), the sorting works correctly. If, however, I ...
4
votes
1answer
155 views

The simplest way to input π in text mode (textual)?

What is the simplest way to input π in text mode if there is only this one greek letter in the whole English text? May be there is one line of code can make it. The following excellent example is ...
6
votes
2answers
260 views

How to obtain proper justification with XeLaTeX and fontspec package?

I'm trying to obtain a justified paragraph with greek text using XeLaTeX and fontspec package, but there is always a word that exceed the right alignment. Note that with LaTex and the default greek ...
3
votes
2answers
234 views

How to change font without changing document font [duplicate]

Surely this is easy, but I'm just beginning. I've created a font and I want to change "My Words Here" without modifying the document font for the rest of the page. I'm sure I just have the syntax ...
1
vote
0answers
120 views

Modifying moderncv to look like an example cv

I would like to create a cv with moderncv like the example below. I have set my fontsize to 10pt but the letters in this cv seem smaller. Furthermore the dates look awesome but I cannot achieve the ...
7
votes
3answers
2k views

What is the best Math Font for use with Minion Pro font?

I have began using the Minion Pro series of fonts and compiling with XeLaTeX. However, despite the typeface changing, I still have the same CM Modern Math fonts. Do any of you have a good suggestion ...
3
votes
1answer
225 views

Does fontspec have a cache?

The mininimal working example is the following one: \documentclass{article} \usepackage{fontspec,xunicode} \setmainfont[Numbers=OldStyle]{Linux Libertine O} \begin{document} 0123456789 ...
2
votes
0answers
31 views

\IfFontFeatureActive not working

In an answer to querying whether a font feature has been activated via a fontspec command there are definitions of \IfFontFeatureExists and \IfFontFeatureActive. I'm not getting reliable results for ...
4
votes
0answers
111 views

current font family using fontspec

I'm trying to emulate the behaviour of a [pdf]LaTeX package that provides commands \lstyle, \ostyle, \tstyle, and \pstyle to activate lining, oldstyle, tabular and proportional figures, respectively. ...
2
votes
2answers
235 views

Bold italics is hard to distinguish from italics

The aim of any special mathematical notation for a particular class of objects is to allow the reader immediately recognise objects of this class in expressions. For instance, the good old arrow ...
1
vote
1answer
133 views

How to use SciType font in LaTeX?

I saw a font with math support inside OTF glyphs. How to use it (with lualatex or xelatex for example)? Especially how to deal with stylistic sets with LaTex. Here is the link : SciType font ...
3
votes
2answers
389 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 ...
1
vote
0answers
148 views

Is it possible to use `lualatex`'s DVI output with `fontspec` without getting font-related errors?

Is it possible to use lualatex's DVI output with fontspec without getting font-related errors? I want to use the (eps-based) output of sagetex with a lualatex generated document with fontspec. As ...
5
votes
1answer
806 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, ...
0
votes
1answer
174 views

Use cmbright with unicode text under XeLaTeX

XeLaTeX has been my preferred LaTeX engine because it straightforwardly handles text in Unicode (UTF-8 encoding). I know this can be done using \usepackage[utf8]{inputenc} with other engines, too, but ...
3
votes
1answer
218 views

polyglossia & fontspec's script feature in 'setotherlanguage'

My fonts are able to give the wanted output. My fonts have both the Latin and Hebrew characteres, and even Greek needed. Is there any other way in which I can have the result wanted? Do I need the ...
2
votes
1answer
55 views

Extra line break and horizontal space at \begin{document}

I am trying to insert some text right at the beginning of the document with \AtBeginDocument while using lualatex and the fontspec package \documentclass{article} \AtBeginDocument{X} ...
21
votes
2answers
1k views

fontspec, lua, microtype: Renderer=Basic no longer working for specific font styles

You may have noticed that, as of now,* letterspacing small capitals is not as easy as it was in pdfTeX, where we could simply combine \textsc with microtype's \textls. Consider this example, which ...
1
vote
1answer
206 views

fontspec search path in TEXMFHOME

This is related to fontspec (xelatex) finding fonts by name, installed or in TEXMFHOME When installing an OpenType font in TEXMFHOME (~/texmf) I see the following behaviour with fontspec of TeXLive ...
6
votes
2answers
3k views

Change default font size while using fontspec

I'd like to set the main font size (i.e. all text which isn't a heading or something else with an explicit font size) to a particular font size, in this case, 9.5pt. I can't use the default package ...
1
vote
0answers
228 views

XeLaTeX fonts don't work well on Windows?

I have recently downloaded the template for a CV from http://www.latextemplates.com/template/plasmati-graduate-cv. It is supposed to be compiled using XeLaTeX, with previous installation of the Fontin ...
6
votes
2answers
324 views

Deciding Which Glyphs to Use in Font Encoding

I wanted to use one of my favorite fonts, Crimson, while still maintaining full support from the microtype package. Since XeTeX and LuaTeX are not fully supported by the microtype package (as of ...
10
votes
1answer
213 views

Accessing user-selectable features in GentiumPlus in XeLaTeX/LuaLaTeX

Specifically, the combination of f plus î in the italic ends up with the upper curl of the f smashed into the peak of the circumflex (other fonts have the same problem, but the result is even uglier). ...
6
votes
0answers
245 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 ...
1
vote
0answers
145 views

Problem with XeLaTeX xdv2pdf mode and font compilation

I recently upgraded to TexLive2013 (Basic) and this broke the setup I use for letters of recommendation. I need to use a legacy university font which requires XeLaTeX in the mode xdv2pdf. MWE is below ...
4
votes
1answer
99 views

LuaTeX error “table index is nil” loading Cinzel OTF font with fontspec [closed]

In a LuaLaTeX document I am creating with MiKTeX 2.9 64-bit (LuaTeX version beta-0.70.2-2012060719) in Windows 7, I get the following error: ! LuaTeX error ...)/MiKTeX ...
4
votes
1answer
260 views

XeLaTeX and Biber/BibLaTeX: switching font for cyrillic references

My main font unfortunately does not have support for Cyrillic script. Mixing it with Linux Libertine (which does have the required glyphs) works fine in the main text where I can simply switch the ...