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
0 votes
0 answers
22 views

luaotfload fails during compilation but luaotfload-tool doesn't

Goal: compile a document with Arabic symbols in MLA style document. There is a known issue with luaotfload-tool --find. I applied the fix to the directory indicated by kpsewhich luaotfload.sty and ...
AvidSeeker's user avatar
3 votes
1 answer
41 views

Fontspec and \readline produce trailing blank symbol

I am using \readline to paste the contents of a plain text file to a LaTeX document, which works fine. This is what the plain text file looks like: This is the first line. This is the second line. ...
mto_19's user avatar
  • 133
1 vote
1 answer
57 views

LuaLaTeX font fallback configuration

I am currently creating a LaTeX class that my students can use for their theses. For this, I would like to use fonts that I personally find very appealing. Unfortunately, I have installed several ...
taocp's user avatar
  • 365
4 votes
3 answers
241 views

Font shape warnings in LuaLaTeX but not XeLaTeX

I am trying to understand how to use fontspec to access system fonts on a Windows machine. Nothing fancy, I'm just starting. My simple example below works in XeLaTeX but not in LuaLaTeX. Can anyone ...
Blair's user avatar
  • 407
2 votes
2 answers
45 views

How can I fix the rendering of these glyphs in stix2?

I have the MWE below, where I'm trying to get stix2 fonts to work with the other packages, but there seems to be a conflict. How can I resolve this and why is it happening? Using lualatex compiler in ...
aleks's user avatar
  • 33
0 votes
0 answers
28 views

applying stylistic sets on parts of an arabic word (in xelatex/lualatex) causes words to split in the middle

I bought the beautiful Arabic font that supports many stylistic sets. One of these has to do with the two forms for the kaaf: When I apply the relevant stylistic set to an entire word, it renders all ...
Mayer Goldberg's user avatar
-1 votes
1 answer
51 views

Setting main font, uncontrolled sequence error

I've been a LaTeX user for about 2 hours now and am completely lost on many things, but coming around. I'm using MikTeX on Windows, and writing the document through VSCode. Specifically, I am trying ...
ohshitgorillas's user avatar
4 votes
4 answers
227 views

How to display playing card symbols ♠ ♥ ♦ ♣ of all fonts

I would like to compare the playing card symbols ♠ ♥ ♦ ♣ of different fonts. In the following MWE I display the 4 symbols for an example font. How could I display this (if available) in a loop for ...
cis's user avatar
  • 8,912
1 vote
1 answer
63 views

On the Display of Quotation Marks When Using the EB Garamond Font

Consider the code: \documentclass[12pt]{article} \usepackage{fontspec} \begin{document} \fontspec{EB Garamond} ``This is a quote.'' {\scshape{``This is a quote.''}} \end{document} which produces ...
DDS's user avatar
  • 9,776
1 vote
1 answer
61 views

Package fontspec not working when using Overleaf via Sciebo

My university decided to provide us with student accounts for Overleaf, via Sciebo. It seems though, that when using Overleaf via Sciebo, it breaks something. While I was formerly able to simply load ...
LHDStack's user avatar
0 votes
0 answers
34 views

Custom font doesn't seem to work

i need to use the font monotype corsiva which I have installed and uploaded to my project but I keep getting font cant be found. what am I doing wrong? here's what I did \documentclass{report} \...
sanarazakhan's user avatar
1 vote
1 answer
47 views

Path problem with subfiles, and fontspec

I have the project with the following structure: fonts/ times.ttf timesbd.ttf timesbi.ttf timesi.ttf sections/ section1.tex main.tex My main.tex contains: \documentclass{article} \...
Enevevet's user avatar
  • 796
3 votes
1 answer
73 views

Why latexmk doesn't ignore certain input files as dependencies (again)

(This is a follow up of How to make latexmk ignore certain input files as dependencies, and Avoid latexmk rerun forced by new timestamp of lualatex cache where @JohnCollins asked for the work flow ...
Denis Bitouzé's user avatar
1 vote
1 answer
44 views

Font ebgaramond-maths cannot be found with lualatex and fontspec

For processing pdf printable files with my projects I just switched from pdflatex to now lualatex and need to use the following font ebgaramond-maths with the following MWE getting an error for not ...
Thomkrates's user avatar
1 vote
1 answer
111 views

qualitype font for a cover

my texlive installation on Linux is new. I installed the qualitype font package to make a cover for my notes and run with 'xelatex' a simple 'test.tex' file with the content: \documentclass{article} \...
Marcel Cardoso Tavelin's user avatar
0 votes
0 answers
35 views

Using `\babelfont` with `newtx` for multilingual typesetting

I'm writing my thesis in English (american) and use, amongst others, babel. For the font, it seems that the best/easiest way to use "Times New Roman" for both text and maths is the newtx ...
Jonas Zaugg's user avatar
0 votes
0 answers
23 views

Bolditalic numbers rendering larger

I'm running into an issue with fontspec, where numbers in the bold-italic style are rendered slightly larger than regular, bold, and italic. I want to fix this, because it makes my headers and numbers ...
Vincent Mariani's user avatar
1 vote
2 answers
74 views

Japanese font in table overlaps with adjacent column when compiled with XeLaTeX in Overleaf

I'm working on a LaTeX document in Overleaf where I have a table containing text in multiple languages, including Japanese. I'm using XeLaTeX as the compiler. However, when I compile the document, the ...
heavendew's user avatar
1 vote
2 answers
45 views

Why do XeLaTeX and ucharclasses falsely claim my characters are in italics?

I am using ucharclasses to automatically switch fonts for Latin (using Noto Serif) and for Anatolian Hieroglyphs (using Noto Sans Anatolian Hieroglyphs). The Anatolian Hieroglyphs font is available ...
Psychonaut's user avatar
  • 3,174
0 votes
1 answer
60 views

Weird error when redefining \msg_info_text:n and using fontspec package

I am still experimenting with LaTeX3 to get a better understanding. I follow the L3 manual for this. Now to my problem: I want to redefine \msg_X_text:n like explained in 11.3. Everything works ...
Dave's user avatar
  • 327
1 vote
0 answers
66 views

fontspec 2.9b issue?

LuaHBTeX, Version 1.18.0 compiles the following file as expected with fontspec 2.9a. \documentclass{article} \usepackage{fontspec} \begin{filecontents}[overwrite]{MyLato.fontspec} \defaultfontfeatures[...
Daniel Flipo's user avatar
  • 2,204
0 votes
0 answers
31 views

Harano Aji Gothic font not working in this MWE

Here is my MWE: \documentclass[10pt]{book} \usepackage[paperwidth=6in, paperheight=9in, twoside, margin=1in, top=0.9in, bottom=1in, left=0.9in, right=0.7in]{geometry} % Japanese Language Support \...
necromancer's user avatar
3 votes
1 answer
99 views

Get a colored char from a font

At Playing Cards (Unicode block) I found The Chrome Browser says this should be the font TwemojiMozilla.ttf. This font, I can find in my TeXLive under c:/texlive/2022/texmf-dist/fonts/truetype/...
cis's user avatar
  • 8,912
1 vote
2 answers
147 views

Setting small caps fallback fonts in fontspec

Note: This question is only for the macOS operating system The Times New Roman font in my mac doesn't have small caps shapes. So I want to set TeX Gyre Termes as the small caps fallback font. Using ...
Stephen's user avatar
  • 4,424
0 votes
1 answer
47 views

When using the bookmark package, is there a way to replace chapter and section numbers with other unicode characters?

I would like to change bookmark numbers to Burmese numbers (i.e (1) to (၁), (2.1) to (၂.၁), etc.). I use fontspec and I can map all Arabic numbers to corresponding Burmese ones so that I have chapter, ...
Pyi Soe's user avatar
  • 330
2 votes
1 answer
90 views

Font problems in lualatex while using fontspec and polyglossia

I am trying to use lualatex to typeset a document which has a mixture of Hindi and English languages. The following MWE works: \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{...
S. Venkataraman's user avatar
2 votes
1 answer
128 views

Summation Sign Font [duplicate]

I noticed that the lecturer used a different sum sign in his notes but the general font seems to be the standard font to me. How can I use such a summation sign?
sirjulzz's user avatar
2 votes
1 answer
55 views

Problem with delimiter using the chemfig package

This is my first post here, so please excuse me if I do anything wrong. I have a problem using the \chemleft and \chemright commands. I use LuaLaTeX to compile. Whenever I try to compile the MWE given ...
Florian R.'s user avatar
0 votes
0 answers
47 views

Is it possible to use Type 1 fonts and TrueType fonts in the same LaTeX document?

I have a Type 1 font of which I do not have a TrueType version, and a TrueType font of which I do not have a Type 1 version. Is there a straightforward way to use these two fonts in the same LaTeX ...
user227621's user avatar
1 vote
1 answer
70 views

colorbox: how to fill only the inner area of a rectangle (square) with rounded corners

If I have a letter of type "(vertical) rectangle with rounded corners" and put it in a \colorbox{<fillcolor>}{text}, is there a way to set the colorbox-parameters so that exactly the ...
cis's user avatar
  • 8,912
2 votes
1 answer
65 views

Error loading Noto Sans Imperial Aramaic: does not contain Imperial Aramaic

I am trying to load the Imperial Aramaic font (https://cdn.jsdelivr.net/gh/notofonts/notofonts.github.io/fonts/NotoSansImperialAramaic/unhinted/otf/NotoSansImperialAramaic-Regular.otf) into my fonts ...
Squinky86's user avatar
2 votes
2 answers
99 views

Italic small caps with fontspec?

I've seen various questions about how to get italic small-caps, which suggest e.g. using lmodern and slantsc together. However, I'm currently using beamer, and want to keep the sans-serif typeface (...
Draconis's user avatar
  • 922
0 votes
0 answers
33 views

Is the package xunicode still needed with XeLaTeX? [duplicate]

I searched all over and could not find a proper answer for this. If my document only uses OpenType fonts (e.g., NewCM10-Book, NewCMMono10-Book, NewCMMath-Book and Roboto), with fontspec and unicode-...
Roadbug's user avatar
  • 51
0 votes
1 answer
79 views

Font STIX-Regular cannot be found using WileyNJDv5

I am trying to use the official Latex template WileyNJDv5 (https://authorservices.wiley.com/asset/WileyNJDv5_Template.zip). Everything seems to work fine as long as I use \documentclass[AMA,Times1COL]{...
umby's user avatar
  • 144
0 votes
0 answers
30 views

Howto enable font embedding with tikzfadingfrompicture? (Use case: Text color gradient)

I want to display a (very big) partially transparent emoji in the background of a document with a color gradient on the emoji). So far, the only successful way for doing so seemed the following tikz ...
branleb's user avatar
1 vote
3 answers
110 views

Unicode active text character, to macro

This works, but it is frightening... Is it reliable, or am I exploiting something that will not be there in the future? Using TeXlive 2024, LuaLaTeX, any platform (mine is Linux). Tex mode only, no ...
user avatar
0 votes
1 answer
916 views

Font Aptos how to use in Latex/Texstudio

The people in my department have decided to use the font Aptos which is a MS Word font. They use MS Word for writing mathematical documents. Yes, that's correct. I now need to use the font Aptos in ...
Jon's user avatar
  • 539
1 vote
1 answer
45 views

place of *.fontspec files in TDS?

I am looking to install my custom working .fontspec file into a local texmf tree under debian. I have found this answer https://tex.stackexchange.com/a/573586/53868 hinting that it is possible, ...
marc's user avatar
  • 701
1 vote
0 answers
62 views

Small caps for CM Sans with fontspec and sansmathfonts

I wand to use NewCMSans from the newcomputermodern package because it provides a true bold sans (instead of a stroke-extension like lm or cmu, see the documentation of newcomputermodern). The NewCM ...
Xorios's user avatar
  • 317
4 votes
2 answers
127 views

xelatex: set mono font after loading unicode-math and modify \parfillskip leads to big whitespace in texttt

Consider the following example: \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} \setmonofont{NewCMMono10-Regular} % any other typewriter font would do \begin{document} \...
Jinwen's user avatar
  • 8,608
1 vote
2 answers
72 views

Fonspec desn't allow me to change the footnote font size

The title says it all. I'm using preamble.tex in R bookdown, and i changed the mainfont using fonspec like this: \usepackage{fontspec} \setmainfont{Calibri Light}[SizeFeatures={Size=14}] Now ...
Jimmy's user avatar
  • 11
0 votes
0 answers
149 views

Bug in fontspec 2.9a or luaotfload (which one?) while use LuaLaTeX

LuaLaTeX does not find the CMU font. Package fontspec Error: The font "CMUSansSerif" cannot be found. \setmainfont At the same time, XeLaTeX compiles normally. I am using TeXLive2023 (Win ...
sergiokapone's user avatar
  • 5,598
0 votes
2 answers
55 views

fontspec breaks capital greek letters redefinition

I am unable to redefine uppercase math symbols when using the fontspec package. Here is a minimal working example: \documentclass[ngerman]{standalone} \usepackage{fontspec} \let\psi\alpha %...
Richard's user avatar
3 votes
3 answers
85 views

Get path to font file, AtBeginDocument

Using lualatex, TeXlive 2023. I am on Linux, but this question must apply to any platform, not just Linux. OpenType fonts, not necessarily provided by TeXlive. Pseudo-code: \documentclass{article} % ...
user avatar
1 vote
1 answer
35 views

Iconsolata Bold Italics FakeSlant Not Working (Xe/LuaLaTeX)

This is a follow-up question of this answer, which provides a FakeSlant-based method for providing bold italics for Iconsolata using XeLaTeX or LuaLaTeX (with fontspec). The original method works, but ...
Teddy van Jerry's user avatar
3 votes
2 answers
307 views

Want to darken a font just a little

I see where my description may have been misleading, so here is a revised question. I want to make "dog" just a little darkder than the normal text. I do not want it to be anywhere near as ...
dedded's user avatar
  • 2,308
1 vote
1 answer
83 views

Setting mainfont and sansfont unsets CMU Bright as math font; how to fix?

I would like to be able to use a custom TTF (News Gothic) as the main font throughout my document wherever text occurs, and CMU Bright for math. But \text inside math mode should use New Gothic. ...
BallpointBen's user avatar
1 vote
2 answers
125 views

Create a new font from FakeBold

The fontspec package proposes a nice FakeBold=1.5 to create a fake bold with various weight. It works nicely, except that I feel like anti-aliasing is not working as nicely in Okular (my understanding ...
tobiasBora's user avatar
  • 8,944
2 votes
1 answer
246 views

Equivalent of font-weight?

What is the lualatex (via fontspec) equivalent of the css font-weight: 541; that allows us to choose continuously a font weight (bold/semi bold…) in a continuous fashion, when a font uses the "...
tobiasBora's user avatar
  • 8,944
3 votes
2 answers
667 views

(Overleaf/LuaLaTeX/Times New Roman) Why does ы have the acute accent being in the wrong position, as opposed to Google Docs, that places it right?

When Using Times New Roman in both LuaLaTeX and Google Docs, the acute accent in each isin a different position, with Google Docs having the right one. Why does LuaLaTeX have the wrong position? I ...
Felix Maldonado's user avatar

1
2 3 4 5
47