Questions tagged [fontspec]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
33 views

Using non-solid colours for fonts [duplicate]

My marketing dept. devised a scheme for visuals that includes occasional occurences of characters (glyphs) rendered in non-solid colours to go beyond simple gradients. My question is: is there any way ...
3
votes
1answer
62 views

How to use inputenc, fontspec, fontenc, mathdesign and babel to properly render cyrillics and UTF-8 characters?

MWE: % main.tex \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[urw-garamond]{mathdesign} % \usepackage{fontenc} T1,T2A? % \usepackage{fontspec} ? \usepackage[russian,english]{babel} ...
17
votes
1answer
714 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 ...
3
votes
1answer
72 views

Changing font in LuaLaTeX

I'm required to have my dissertation in Times New Roman. I'm using LuaLaTeX because it lets me use figures which are too big for the usual compiler. I've tried several ways to change the font: \...
1
vote
1answer
27 views

calibri recompile time error

I would like the font of my latex document to be calibri. As this is not one of the basic fonts I downloaded the calibri package from windows and added it to my file path (see picture). Following the ...
1
vote
1answer
38 views

How can I manually insert the length of interword space and inter sentence space?

By \defaultfontfeatures{PunctuationSpace=1.5} I set the space between sentences (to 1.5 * interword space, if I understand it). How can I manually insert this very space, if there is no sentence ...
8
votes
2answers
605 views

Where do I find the stylistic sets/variants described?

If I use a font with LuaTeX, usually TeXGyrePagellaX, I know how many StylisticSets there are (otfinfo -f TeXGyrePagellaX-Regular.otf) and I know how to activate them (\setmainfont{TeX Gyre Pagella X}[...
2
votes
1answer
175 views

Compile Failures After Fontspec Update

I updated packages (Windows 10 / MikTex 2.9), which included a January 26, 2020 update to fontspec. On my first compile (LuaTex) after the update, a file that compiled fine immediately before the ...
6
votes
4answers
95 views

fontspec / babelfont: Mixing Chinese and English | Latin Font Different in Chinese vs. English Text | Google Noto Fonts

I want to mix Chinese an English in one document. For each languages, I will use paragraphs (not just short sentences). I want to use Google's Noto fonts. The problem is, that the Latin characters ...
1
vote
1answer
74 views

Palatino with TeX Gyre Pagella Math or Asana Math change the letter “y”

I use the classic thesis style which uses the Palatino font (TeX Gyre Pagella). So it uses the companion math font TeX Gyre Pagella Math as well. My problem with it is, I do not like how the letter "y"...
1
vote
1answer
54 views

Problems with sanskrit hyphenation in babel

I need to type a multilingual document, this document has both greek and sanskrit texts. But, I do not know why, the sanskrit hyphenation does not work. Here my MWE: % !TEX engine = lualatex % !TEX ...
0
votes
0answers
48 views

MakeUppercase capitalizes fontspec feature names

The attached MWE does not work properly for \MakeUppercase alters FakeSlant to FAKESLANT prior to expanding \addfontfeature. \documentclass{article} \usepackage{fontspec} \setmainfont{Erewhon} \...
17
votes
2answers
32k views

Fontspec {cannot-use-pdftex} on overleaf

I am a LaTeX beginner writing on a report using overleaf. I have a main.tex and a refs.bib. I wanted to change the fonts of the text and sections so I added fontspec and titlesec. At first it worked ...
2
votes
1answer
861 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: \setmathfont[...
1
vote
0answers
33 views

Why `arabxetex` does not apply the arabicfont for including macros?

Why arabxetex does not use the arabicfont for macros included in like \marginpar and \footnote, it seems so weird? I think as the text appeared in the arab environment, all the following macros in it ...
2
votes
1answer
108 views

unicode-math: Font “Inconsolata” has no glyph for \mathhyphen. How to remap to the normal hyphen glyph?

Compile the following MWE with LuaLaTeX \documentclass{article} \usepackage{libertinus} % Set the same teletype font for text, \mathtt and \symtt \setmonofont{Inconsolatazi4-Regular.otf}[Scale=...
1
vote
1answer
32 views

\textbullet in CMU Serif font family looks very large

In order to use \scshape and \bfseries together within the cm-related fonts, I switch my main font to the font family CMU Serif. However, \textbullet in the CMU Serif font family looks very large. my ...
7
votes
2answers
307 views

Has a recent update broken mathbf when using mathspec?

The following MWE illustrates code that was working until sometime over the last couple weeks. \documentclass{article} \usepackage{mathspec} \setallmainfonts{Times New Roman} \begin{document} \begin{...
0
votes
0answers
31 views

Use a Adobe Type-1 font in combination with unicode-math for \symcal

I would like to use the calligraphic fonts from txsy.pfb (normal-weight) and txbsy.pfb(bold). Normally, I use \usepackage[cal=pxtx]{mathalfa} to make \mathcal to use these fonts. However, I also want ...
0
votes
0answers
31 views

Use the same font for \mathfrak as for \symfrak

Is there a way how I can make \mathfrak use the same font as \mathsym? This works for the pair \mathtt and \symtt because the fontspec-package as a builtin-command \setmathtt for that, but I am ...
5
votes
2answers
669 views

Typing in Sinhala

I am trying to use the fontspec package and gnu-freefonts to type in Sinhala. I have seen an example in the link Old ligatures in Siṇhala. So my first attempt is to use the above example. \...
0
votes
1answer
71 views

How can I fix this polyglossia/fontscpec conflict?

Here's my MWE, it appears replacing MedeivalSharpwith any TTF file will do the trick. \documentclass{article} \usepackage[T1]{fontenc} \usepackage{fontspec} \usepackage[osf,proportional]{...
6
votes
1answer
131 views

fontspec issue with new LaTeX <2020-02-02> patch level 1

Let's compile this file with LuaLaTeX (or XeLaTeX): \documentclass{article} \usepackage{fontspec} %\setmainfont{Latin Modern Roman} % (or any other font) \newfontfamily\myfont{texgyreheros}[ ...
0
votes
1answer
29 views

fontconfig doesn't list/find XITS font even after updating config

I would like to use XITS/XITS Math within my LaTeX project (which uses XeTeX). Following the answers to this question, I created a file /etc/fonts/conf.avail/76-texlive-fonts.conf with the following ...
2
votes
2answers
71 views

Contents of sidewaystable do not appear

For the shown MWE, upon using the sidewaystable", the page appears blank, yet upon using ordinary table environment, all works fine. However, I need to usesidewaystable` or landscape environment. \...
8
votes
1answer
181 views

Map all ASCII characters in document to Nemeth Braille

My goal is to type regular LaTeX input, and remap the fonts to produce Nemeth Braille. One answer to the question LaTeX to Braille was to download the font http://www.searchfreefonts.com/free/braille....
4
votes
2answers
277 views

Apostrophe comma not shown when use Holden font

In normal font e.g default computer modern font apostrophe comma is appeared in the output. But when I use Holden font by \setmainfont{Holden} apostrophe comma is not appeared in the output. My code ...
1
vote
0answers
144 views

XeLaTeX unable to find fonts after reinstall of MiKTeX

Dear problem solvers, After reinstalling Windows on my computer and subsequently reinstalling MiKTeX 2.9, I've been unable to compile with XeLaTeX (PDFLaTeX does work). I had no problems before. ...
36
votes
7answers
8k 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 ...
4
votes
1answer
98 views

Addfontfeatures not working after update

I have updated my LaTeX recently and I am getting error when using \addfontfeatures Here is my MWE (you can use any font) \documentclass{article} \usepackage{polyglossia} \setmainlanguage{english}...
1
vote
3answers
98 views

How can we change the font type for a line in latex?

Can someone help me how can I use different font just for one line in my LaTeX report in Acknowledgement? My settings are: documentclass[a4paper,fontsize=12.5pt,DIV15,BCOR20mm,oneside]{scrbook} \...
0
votes
1answer
77 views

Create a groupplot with specific total width, font family, and font size

I want to use pgfplots to plot a groupplot who's width (8 cm), font family (Arial), and font sizes (10pt for the axis labels, 8pt for the tick labels) are specific. I've tried tikzscale to get the ...
2
votes
1answer
47 views

fontspec: how to keep baselineskip stable

Compare these two images:      On the left you have correct baselineskip on all line. On the right you have larger baselineskip for line 5 because of the acute accent on É (in Études). Looking into ...
3
votes
1answer
36 views

How can I make spaces appear with guidelines with this penmanship font?

I'm using a special font family for penmanship called ZNuscript. Some of the versions of this font include ruled lines that help to guide children in forming their letters. It displays just fine for ...
5
votes
2answers
200 views

ucharclasses misbehaves with Spacing Modifier Letters and Combining Diacritical Marks

The ucharclasses package makes it possible to automatically switch fonts (or do other useful things) based on the Unicode block of characters. However, it seems to be having trouble resetting the ...
1
vote
1answer
49 views

Overleaf can't find upright font files in folders

Overleaf renders a pdf properly when the upright font file is in the root folder, but returns an error when the file is in a folder. Here's the source \documentclass{article} \usepackage{fontspec} \...
1
vote
1answer
26 views

Footnote mark in text is not superscript when using reledpar and reledmac with fbb font

Note: Thanks to Alan Munn, just removing the two lines solved this problem. Consider this question solved. I have modified the MWE to reflect this. How can I make footnote mark appear as superscript ...
1
vote
1answer
48 views

How to remove accents when using \MakeUppercase for Greek?

I would like to know if it is possible to not print accents in capital letters that have been produced using the \MakeUppercase command. I am using XeLaTeX, and the fontspec package in case this ...
3
votes
2answers
66 views

Temporarily turn off a global option

See this minimal example \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{marathi} \usepackage[no-math]{fontspec} \setmainfont[Script=Devanagari,Mapping=devanagarinumerals]{...
0
votes
1answer
57 views

Ligature font feature no longer works

For a few weeks, I've had a nice working font feature to automatically change "et" for "&" when it's in italic mode. But suddenly, It now longer works.... I suspect something to do with the ...
1
vote
1answer
111 views

Font issues with LuaLaTeX and polyglossia

After a recent TeX Live update, my documents, which used to compile properly, are now typeset with a wrong font. I then unsuccessfully tried to understand how I should do fonts "the right way". Since ...
2
votes
1answer
90 views

Compilation error when using colour in fontspec

In another thread [here][1] I couldn't compile a code and we found out, that it is because of 'colour'. When I use this code... \documentclass{standalone} \newcommand\fsname{Shobhika} \usepackage{...
2
votes
1answer
39 views

Font feature +frac not applied on EBGaramond italic

I'm running into a problem using the +frac feature in italic text, though it seems to me that it should work. The feature doesn't seem to be applied properly unless I force the text into \upshape. It ...
1
vote
2answers
63 views

Problem with \mathbf in xetex

I am using xelatex to typset mathematics documents in devanagari. I have problem with \mathbf. I am using velthuis font mapping. In \mathbf, I am getting devanagari characters. But, usual math font ...
2
votes
1answer
296 views

Errors with libttf (was Font metric data not found or bad)

I'm having trouble loading some right-to-left fonts in a document I'm working on. I chose one at random — Avestan. MWE requires that you download https://noto-website-2.storage.googleapis.com/pkgs/...
1
vote
1answer
74 views

babel: Mixing English and Chinese Using Google NotoFonts

Goal My goal is to have a document that contains two languages, English and (simplified) Chinese. Both languages will appear in an equal amount (one paragraph English and then one paragraph Chinese). ...
3
votes
1answer
211 views

Bangla breaks apart with lualatex!

I switched to lualatex for coloring part of Arabic words easily with arabluatex and xcolor. With xelatex I'd no problem with Bangla. Here's the latex script: \documentclass[12pt]{report} \usepackage{...
1
vote
1answer
52 views

CMU Concrete small caps

\documentclass{report} \usepackage{fontspec} \setmainfont{CMU Concrete}[ BoldFont = CMU Concrete Bold ] \begin{document} \textsc{Small Caps.} \textsc{\textbf{Bold Small Caps.} \end{document} How ...
1
vote
1answer
614 views

EB Garamond, and fontspec for “optical bold” with small caps?

This is somewhat a continuation of my EB Garamond (bold) small caps "suddenly" unavailable in lualatex? ; below, I had written some more details about this font for reference - but in brief, ...
1
vote
1answer
106 views

fontconfig.conf file with texlive on Microsoft Windows

I have the texlive 2019 distribution installed on Microsoft Windows 8.1. I have some Opentype fonts that I would like to use in my LaTeX documents with xelatex and lualatex. I have followed the recipe ...

1
2 3 4 5
33