Questions tagged [fontspec]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
31 views

How do I use light, normal, semibold, and bold font types in one document using sourcesanspro font?

How do I use light, normal, semibold, and bold font types in one document using sourcesanspro font? If I specify the default options, I can get normal and bold, but not light or semibold. If I use the ...
1
vote
1answer
18 views

Incorrect bracket using MnSymbol with fontspec

I am having issues with MnSymbol and fontspec, compiling math with large brackets is incorrect. I am currently compiling with xelatex. I have searched around and found another post (Link) but the ...
0
votes
1answer
16 views

mathspec option clash with fontspec

I am trying to use mathspec firamath-otf package. I am getting an option clash error with fontspec. \documentclass{article} \usepackage{firamath-otf} %\usepackage[no-math]{mathspec} %\usepackage[...
2
votes
0answers
41 views

How to get smallcaps for a font that doesn't support it? [duplicate]

I have a few artistic fonts that I use in XeLaTeX with the fontspec package. However, they don't support smallcaps out of the box. Is there a way to tell LaTeX to "fake" smallcaps by capitalizing ...
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
75 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} ...
3
votes
1answer
77 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
29 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
42 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 ...
1
vote
1answer
79 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"...
6
votes
4answers
99 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
56 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} \...
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 ...
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
312 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{...
2
votes
1answer
111 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=...
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
32 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 ...
6
votes
1answer
136 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}[ ...
4
votes
2answers
279 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 ...
2
votes
1answer
184 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 ...
1
vote
0answers
148 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. ...
4
votes
1answer
100 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
99 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} \...
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 ...
0
votes
1answer
72 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]{...
0
votes
1answer
83 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 ...
1
vote
1answer
53 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 ...
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 ...
1
vote
1answer
49 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 ...
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
112 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 ...
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]{...
2
votes
1answer
42 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 ...
2
votes
1answer
91 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{...
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 ...
1
vote
1answer
75 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). ...
2
votes
2answers
72 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. \...
1
vote
1answer
55 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 ...
4
votes
0answers
57 views

Fontspec shifts some diacritics marks when LetterSpacing

The fontspec feature LetterSpacing does not give the same result with a letter typed in ASCII form (e.g. \^E ) that when it is typed in UTF-8 form (e.g. Ê). The log file of the joined ECM shows that ...
5
votes
3answers
192 views

Underbrace using STIX2 math font

The problem speaks for itself, here is the sample: \documentclass[12pt]{article} %% Language of the document \usepackage{polyglossia} \setmainlanguage{spanish} \usepackage{unicode-math} %% Text ...
1
vote
0answers
58 views

Using Windows font in XeLaTex

I am currently having issues trying to use different fonts in my documents. I read that if I want to use fonts directly installed in the Windows/Fonts directory I should compile the document using ...
2
votes
3answers
81 views

Slanted font with TIPA in XeLaTeX

I am writing a linguistics paper relying heavily on tipa for phonetic transcription. Sometimes the transcriptions are upright for transcriptions, and sometimes slanted for examples. This is no problem ...
6
votes
0answers
128 views

How to set font for emoji

As discussed in How to use Noto Color Emoji with lualatex, in the dev version of lualatex one can use color emoji directly: \documentclass{article} \usepackage{fontspec} \setmainfont{Apple Color ...
0
votes
1answer
46 views

Replace Fira Math calligraphics by hfbrsy10?

I'm using Fira Math in a xelatex-compiled document. Unfortunately, Fira Math does not have calligraphic letters (\mathcal). I would therefore like to replace them by these which I found in hfbrsy10....
1
vote
1answer
59 views

Fontspec redefines Siunitx symbols

I'm trying to find a solution to an already described problem here. The \Omega symbol does not display when loading fontspec (in this case implicitly from the package polyglossia). I've found this ...
1
vote
0answers
54 views

Fontspec package creates composite character that consists of a separate symbol and accent

I have simple code, which have strange behavior. When I compile this code by command lualatex test.tex or xelatex test.tex and look into the generated pdf file, the glyphs with accents are two symbols ...

1
2 3 4 5
33