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

learn more… | top users | synonyms

3
votes
1answer
221 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
30 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
99 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
195 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
131 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
246 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
109 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
785 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
140 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
169 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
52 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} ...
19
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
167 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 ...
5
votes
2answers
2k 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
159 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
299 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
180 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). ...
5
votes
0answers
194 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
123 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
94 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
215 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 ...
15
votes
1answer
570 views

LuaLaTeX + fontspec: cannot compare documents with Acrobat

I use the option "compare documents" in Adobe Acrobat Pro a lot to highlight changes between revisions. What I just noticed is, if I compile a simple document such as the one below with LuaLaTeX + ...
1
vote
1answer
380 views

\moderncvicons{awesome} giving error!

I'm getting an error when compiling a resume of moderncv, with pdflatex in Mageia 2 i586 and TEXlive 2011. Why? First I added the command \moderncvicons{awesome}, then I added \usepackage{fontawesome} ...
3
votes
0answers
115 views

Side bearings of Minion Pro quotes

I'm using Minion Pro with XeLaTeX. However, quotes are much too tight. I know the MinionPro package, for use with LaTeX, has a loosequotes option which slightly increases the side bearings of the ...
3
votes
2answers
81 views

Suppress character substitution in xetex

I have a situation where I need to place a combining ring above (U+030A) the character 'j'. Yes, it is silly, because the ring would collide with the dot above the 'j', but I want to combine them ...
8
votes
1answer
230 views

font selection for entire doc

Hello there:) Could someone show me how to select fonts (serif: regular/bold/italic/bolditalic/smallcaps, sans: regular/bold/italic) for entire document using fontspec and font's filenames. And at ...
28
votes
1answer
4k 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 ...
17
votes
1answer
3k views

XeLaTeX warning: Redefining document command \oldstylenums with arg. spec. 'm'

I updated my MiKTeX to the newest version a few days ago, and after this when I compile documents with the fontspec package included, there's a warning. For example: \documentclass{article} ...
12
votes
1answer
450 views

Why does LuaLaTeX produce smaller files than pdfLaTeX in this example?

I am discovering LuaLaTeX... I want to produce pdf files from my tex sources as small as possible. If I compile the following code with LuaLaTeX, the size of the generated pdf is 9 kB. ...
9
votes
0answers
155 views

XeTeX font spacing awfulness [duplicate]

When using the Lato font (e.g., Google fonts or Lato fonts), I get completely overlapping text: When I view the PDF in Google Chrome's PDF viewer, it looks fine on the screen: but it still ...
4
votes
1answer
172 views

Custom phonetic font with tipa and fontspec

I've been trying to typeset a document that has a lot of phonetic transcriptions, and I'm trying to do it using Tex Gyre Bonum for the body and Charis SIL for the phonetic transcriptions. I'm trying ...
6
votes
2answers
235 views

Scale font only vertically (poor man’s condensed of Libertine)

I’m using Linux Libertine to typeset the translation of a poem with eledmac/eledpar. The original text appears on the left pages and the translation on the right ones. Since the translated verses are ...
4
votes
1answer
116 views

Can I use these Libertine glyphs in pdftex?

MWE: \documentclass{article} \usepackage{iftex} \ifXeTeX\else \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \fi \usepackage{libertine} \begin{document} \ifXeTeX ...
3
votes
1answer
97 views

Using pst-barcode, fontspec and standalone at the same time?

I am trying to generate a series of labels using TikZ and the standalone document class. Normally, this works fine, but this time I want to use a system font and to include a barcode. Below is an ...
2
votes
0answers
61 views

Regular Chaparral comes out bold, bold Chaparral comes out regular. Why? [closed]

Chaparral.tex: \documentclass{article} \usepackage[english]{babel} \usepackage{fontspec} \setmainfont{Chaparral Pro} \begin{document} Hamburgefonstiv Regular \textbf{Hamburgefonstiv Bold} ...
4
votes
0answers
138 views

Using specific font for the equation in XeLaTex

I want to use a specific font for a specific formula in XeLaTeX. Usually, the math font can be set up using mathspec package. \usepackage{mathspec} ...
3
votes
1answer
148 views

Change lineno's number format for section headings (bold font)

This is a follow-up to the question Change from old style numbers to lining numbers in lineno's linenumbers environment I've discovered that the suggestion given there doesn't target the line ...
3
votes
1answer
135 views

Fontspec + Cabin + LuaLaTeX

I want to use the Cabin fonts (which are available on CTAN). It seems possible to use these fonts with LuaLaTeX, since there are type1 fonts available, and on CTAN it says: LuaLaTeX and xeLaTeX ...
2
votes
0answers
175 views

XeLaTeX Bad/Inconsistent Kerning

I'm running xubuntu 12.04.3 LTS with tex-full 2013 package. The kerning is terrible. For example, I have fonts-linuxlibertine 5.3.0 installed, latest and greatest; when I compile using XeLaTeX, both ...
0
votes
0answers
170 views

Just want to know how to run this on texmaker?

\documentclass{article} \usepackage{arabxetex} \newfontfamily\arabicfont[Script=Arabic,Scale=1.0]{Scheherazade} \newfontfamily\urdufont[Script=Arabic,Scale=1.1]{Code2000} \begin{urdu}[novoc] ,ham ...
26
votes
8answers
9k 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. ...
8
votes
2answers
1k views

Problem with small caps in XeLaTeX

I'm not able to make small caps work with any font in XeLaTeX. Here is output illustrating the issue for Charis SIL, Garuda, and Times New Roman, respectively. Pasted below are a MWE and version and ...
3
votes
0answers
165 views

Having Problem using math environment in LuaLaTeX

I am at learning stage of LaTeX. While working with lualatex with fontspec package, i am not being able to use any math environment. My document's preamble: \documentclass[a4paper, 14pt]{memoir} % ...
1
vote
1answer
333 views

Microtypesets and Fontspec

Is there a way to use Microtypesets so that one would specify a fontspec family. I have a very complicated document and it would be nice to be able to turn the microtype features on only for those ...
10
votes
0answers
157 views

Why does fake slant only seem to work after italics has been used? [closed]

Based on this question, can someone explain this behavior: \documentclass{article} \usepackage{fontspec} \setmainfont[ SlantedFont={Linux Libertine O}, SlantedFeatures={FakeSlant=0.30}, ...
2
votes
1answer
110 views

How do I slant variables when using eulervm?

Using fontspec and xetex, when in text mode I can define: \renewcommand{\textsl}[1]{{\fontspec[FakeSlant=0.2]{Neo Euler} #1}} and I get slanted characters using Neo Euler (to fake the missing ...
1
vote
1answer
120 views

Bold font error

When I type the ACKNOWLEDGEMENTS page using bold font, the following text is still bold while it should be normal (not bold). I used this code: \thispagestyle{fancy} \rhead{\thepage} % Sets the ...
6
votes
1answer
279 views

A Big fancy “Q”

One time I remember seeing a Q ligature in \setmainfont{EB Garamond} (fontspec, EB Garamond, etc.) that involved a wonderful long swash. Now I don't know how to get it. Contrary to most other ...
15
votes
1answer
148 views

fontspec ruins Lilypond's note spacing

I use lilypond-book to include music examples in my TeX document, but it seems that fontspec breaks the horizontal spacing between the notes: without fontspec with fontspec This MWE shows the ...
0
votes
1answer
609 views

fontspec (xelatex) finding fonts by name, installed or in TEXMFHOME

This is related to my other question: fontspec search path in TEXMFHOME I'm trying to write a package using a specific opentype font through fontspec. Using TeXLive 2013 on a Debian computer (a ...