Skip to main content

Questions tagged [luaotfload]

{luaotfload} is a package to load OpenType Fonts(OTF) in Plain TeX/ LaTeX and to select OTF font features.

Filter by
Sorted by
Tagged with
1 vote
2 answers
58 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
0 votes
0 answers
48 views

Compiling multi-script unicode LaTeX documents

I'm trying to write a latex document that supports arbitrary utf-8 encoded scripts. This is turning out to be surprisingly difficult. A key point is that I want to get this working without specifying ...
ketil's user avatar
  • 101
1 vote
0 answers
56 views

error when using textls with fonts with spaces in the name with lualatex/texlive2024

Up until now, using the full name for fonts with lualatex worked fine in all cases. However since the update to TeXLive 2024, it produces an error when using \textls[]{}. The following code produces ...
ArTourter's user avatar
  • 17.5k
1 vote
1 answer
41 views

Use Lua to flag font warnings

Using lualatex, TeXlive2024, Linux. In an earlier question, Marcel Krüger showed how to use Lua for keeping track of errors. In essence, that code sets a flag, if any error was reported. At the end, I ...
user avatar
5 votes
0 answers
120 views

luaotfload-tool: This version of luaotfload may have been tampered with. Is this a software bug, packaging bug or user malfunction?

Bug reports See also Max Chernoff's comment. Thanks to Max for directions to the first and prompting the second and third. https://github.com/latex3/luaotfload/issues/277 https://github.com/latex3/...
cfr's user avatar
  • 208k
5 votes
1 answer
137 views

Misplaced diacritics with Graphite renderer and LuaLaTeX. Any

I am trying to typeset some Kashur (Kashmiri) text with a Graphite font, i.e., Awami Nastaliq. Here is an MWE: \documentclass[border=1cm]{standalone} \usepackage[% english,% bidi = {...
Niranjan's user avatar
  • 3,415
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
3 votes
3 answers
86 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
0 votes
0 answers
50 views

luatex cache path not created during texlive 2023 installation

I have installed texlive 2023 on my manjaro machine. When I compile my tex files with luathex I can see the following lines in the output log: luaotfload | db : Font names database not found, ...
Hafid Boukhoulda's user avatar
10 votes
1 answer
326 views

What algorithm does LuaLaTeX use for fallback fonts?

Background I have been busy with a book about the worlds scripts and languages on and off for a couple of years. It covers all the listed scripts in unicode, as well as a dozen or so, where there is ...
yannisl's user avatar
  • 118k
2 votes
0 answers
106 views

Using an entire font family as fallback font

I currently have Adobe Garamond Pro as my main font. I would like to use Linux Libertine as a fallback font for missing glyphs. \usepackage{fontspec} \directlua{luaotfload.add_fallback ("...
Einreinfall's user avatar
2 votes
2 answers
152 views

How to define a new font family without specifying a font in advance (using the default one instead)?

I want to setup a semantic font family for my class with \newfontfamily\COMPONENTFont{XXX}. Users of the class are free to use their font of choice for COMPONENT, for instance font YYY: \...
Polizi8's user avatar
  • 311
8 votes
1 answer
408 views

How to access non-Unicode glyphs from OTFs with Lua(La)TeX?

I opened Shobhika font in FontForge and it has certain glyphs which I am guessing aren't encoded in Unicode (if I understand this business correctly). E.g., have a look at the following slot. What I ...
Niranjan's user avatar
  • 3,415
5 votes
0 answers
68 views

Process \hbox with luaotfload

I have a ‘plain’ \hbox with a series of glyphs which haven’t been processed with luaoftload (at least, not fully processed, although ideally and for for what I want they shouldn’t be processed at all),...
Javier Bezos's user avatar
  • 10.5k
2 votes
1 answer
150 views

Some code ligatures work in xelatex but not lualatex

While looking at this question I noticed that some of the code ligatures from the JetBrains Mono font (freely available from their website) worked in xelatex, but not in lualatex. Compare: Xelatex ...
mbert's user avatar
  • 4,541
5 votes
1 answer
127 views

LuaLaTeX, raise or lower an unboxed glyph, preserve kerning

LuaLaTeX (via luaotfload and fontspec) knows many properties of font glyphs, and many of them can be shown to the user. So it seems to me that what I am about to ask is "possible". EDIT: As ...
user avatar
3 votes
1 answer
76 views

Luaotfload get font grid units

The following code writes the character width (cursor advance width), and the x and y coordinates of the glyph bounding box, to the log file. Here it is for letter "a" : \documentclass[12pt]{...
user avatar
3 votes
1 answer
112 views

Luaotfload for emdash hyphen

Using lualatex, TeXlive 2023. I have discovered something that works using "brute force". Now, I would like to make it work "according to the rules". Situation: In a word processor,...
user avatar
2 votes
0 answers
57 views

luaotfload creates corrupt gzip files

In our team we are investigating performance issues (much longer compile time and huge memory usage) when compiling big documents with LuaLaTeX. When looking into the font loading mechanism, we ...
suricata78's user avatar
1 vote
0 answers
40 views

The accents are not aligned properly when using the libertinus otf with LuaLaTeX engine

The fonts I am using are ``libertinus otf - (math font)'', SourceSansPro - (Text Font). The math alphabet should follow "Source Sans Pro" font. So, I use the below code to change the math ...
CS Kumar's user avatar
  • 1,253
3 votes
1 answer
152 views

Test for font character, LuaLaTeX

This question "has been answered before", but not directly to the question. My question pertains only to LuaLaTeX, only to OpenType fonts using UTF-8 encoding, only to text mode (not math), ...
user avatar
0 votes
1 answer
84 views

luaotfload: list available axes of variable font

Suppose I load a font via luaotftool like this \font\MyFont="OpenSans:mode=node;" at 10pt Now, I could find out whether this is a variable-weight font as follows: \directlua{ local ...
steve's user avatar
  • 2,256
2 votes
0 answers
153 views

Making vector fonts from metafont sources in LuaTeX?

According to the presentation "TUG 2020 — Marcel Krüger — MetaPost-based, dynamic extensible delimiters for LuaTeX" it is possible to generate "fully hinted, vector glyphs" from (...
Weißer Kater's user avatar
3 votes
1 answer
165 views

How to add (fake) bold feature to fallback font using luaotfload luatex

I have this in my preamble: \usepackage{luacode} \begin{luacode*} luaotfload.add_fallback("FallbackFonts", { "Noto Color Emoji:mode=harf", "Noto Sans CJK JP:" }) \end{...
Andrew15_5's user avatar
2 votes
1 answer
137 views

LuaTeX: Print glyphs with codepoint value -1 by name

Context I would like to print a full glyph table for a given font. Glyphs in an open type font can be identified by an optional code point value by a glyph name Some fonts like cambriai.ttf have ...
Guest's user avatar
  • 131
0 votes
2 answers
97 views

adding letterspacing using luaotfload

The letterspace feature of luaotfload does not work in math mode. I tried to implement my own feature as follows: \documentclass{minimal} \directlua{ do local function mathletterspace(tfmdata, ...
Achim's user avatar
  • 1
2 votes
1 answer
166 views

LuaTeX: How to slant, extend or embolden only some characters of a font, NOT the whole font?

In luaotfload we can slant, extend or embolden a whole font by writing something like \font\x="xxx.otf:+slant=a;+extend=b;+embolden=c" at d pt. But what can I do when I would like to apply ...
Weißer Kater's user avatar
5 votes
1 answer
238 views

How to manipulate selected letters in LuaTeX?

Please look at the following MWE: \documentclass[20pt]{extarticle} \usepackage{unicode-math} \usepackage{luacode} %% Works: change width of 𝑓 \begin{luacode} local function newwidth(tfmdata) tfmdata....
Weißer Kater's user avatar
2 votes
0 answers
81 views

What is the difference between file font.lua and the font itself?

When LuaLaTeX/fontspec uses a font, say Erewhon-Regular.otf, it creates a file erewhon-regular.lua that is put in (user's)Library/texlive/2022/texmf-var/luatex-cache/generic/fonts/otl/. Actually it is ...
Jacques André's user avatar
0 votes
0 answers
81 views

LuaTeX compilation completed and no errors, yet font doesn't show up

I decided to try using some new fonts and LuaLaTeX, and so I downloaded some fonts and installed them using the instructions from the first answer in this post. I put the setup into my preamble and ...
Revise's user avatar
  • 365
0 votes
1 answer
65 views

luaotfload-tool error on Solaris Intel

Fully updated TexLive 2022 on Solaris x86_64 Intel which is preventing any docs compiling under lualatex: $ luaotfload-tool -u luaotfload | db : Font names database not found, generating new one. ...
PLK's user avatar
  • 22.8k
3 votes
2 answers
180 views

How to combine fonts with luaotfload?

Consider this MWE: \documentclass{article} \usepackage{fontspec} \directlua{luaotfload.add_fallback("noto_fallback", { "NotoSerif:mode=base;color=FF8800;", })} \setmainfont{...
Ingmar's user avatar
  • 6,700
4 votes
1 answer
807 views

fontspec can't find font, but luaotfload-tool can

I've installed a font (in this case "Rubik") that's not in the LaTeX Font Catalogue (those seem to all work fine), and tried to use it in a simple MWE: \documentclass{article} \usepackage{...
steve's user avatar
  • 2,256
3 votes
1 answer
253 views

\addfontfeatures combining issues

I am trying to set up additional weights and widths for a variable font: \DeclareRobustCommand{\blackseries}{\addfontfeature{RawFeature={+axis={wght=900}}}} \DeclareRobustCommand{\cond}{\...
Michael Fraiman's user avatar
3 votes
2 answers
548 views

newpx makes fontspec fail

If I use the newpx package and then load fontspec and try to select a font it fails. See the minimal example below. The files (compiled with lualatex) for which fontspec font selection fails (by ...
Xorios's user avatar
  • 317
2 votes
1 answer
384 views

Lualatex don't work after updates

After updating texlive2021 all documents don't compile anymore and I get these error messages in the logfile: luaotfload | load : FATAL ERROR luaotfload | load : × Failed to load "luaotfload&...
Wolfgang's user avatar
  • 107
1 vote
0 answers
100 views

Luaotfload: change kerning for many characters at once

How can I iterate over many characters? And how can I iterate over hexadecimal values? Not working MWE: \documentclass{article} \usepackage{unicode-math} \directlua{function W(s) return string.gsub(&...
Weißer Kater's user avatar
5 votes
0 answers
79 views

LuaLaTeX font chainsubstitution works only for the first font loaded

Here is an extremely simplified version of my code from this answer, where I finally found a workaround to this problem: \documentclass{article} \tracinglostchars=3 % Panic if a font does not contain ...
Davislor's user avatar
  • 45.5k
3 votes
0 answers
322 views

Microtype warnings (~100) with fontsetup (NewComputerModern)

I have been using the microtype package together with the fontsetup package. The document seems to compile normally. Protrusion and expansion also seem to be working, but I usually get around 100 ...
Martin Dagleish's user avatar
0 votes
0 answers
42 views

Access glyph contours through luaotfload

Can I access the countours that make up a glyph through luaotfload? I can see that luaotfload contains (in fontloader-font-ttf.lua) code for parsing the glyf table, which should store the outlines ...
renkema's user avatar
  • 421
3 votes
1 answer
225 views

why is latex's ltluatex.sty required for plain luaotfload?

I tried (successfully) to compile a sober Plain LuaTeX format and discovered, with some surprise, that loading the standard luaotfloader in Plain requires a piece of code, ltluatex.tex which requires ...
jarnosz's user avatar
  • 4,346
1 vote
0 answers
102 views

How to change math-font for pgfplot environments to sans, if necessary with luaotfload fallback?

I would like to change my fonts and especially my math fonts only for my graphs to my sans font Segoe UI. Unfortunately, it doesn't work. I tried already the following sugestions: Change math font ...
SvA's user avatar
  • 37
5 votes
1 answer
200 views

chainsubstitution: which rule can detect the last character?

In the following MWE, I want to replace all ſ by s if they are at the last position of a line or document or some place where there is no next character. I added two rules to show that it works for ...
Guest's user avatar
  • 131
1 vote
2 answers
499 views

Contextual alternates and lettrine - LuaLaTeX

I'm using a font with "calt" (contextual alternates) on LuaLaTeX - as a matter of fact, BemboBookMT. So, for example, Q has a "tail" when followed by a u: When I use lettrine, I ...
Iacobus1983's user avatar
4 votes
0 answers
170 views

Lua font handler can change some STIX Two Math kerns but not others

The STIX Two Math font leaves large gaps between some pairs of characters, such as 'dp' or 'df'. The Lua otf font handler is able to reduce these gaps for some pairs (e.g., 'ab' or 'ad'), but it ...
John's user avatar
  • 2,400
1 vote
1 answer
125 views

Top accent position of OTF math font in XeTeX and LuaTeX

MWE: % Xe-/LuaLaTeX \documentclass{article} \usepackage{unicode-math} \setmathfont[math-style=literal]{Latin Modern Math} \begin{document} $\dot b, \dot 𝑏, \dot{\rm b}$ \end{document} The accent ...
Weißer Kater's user avatar
0 votes
0 answers
109 views

Strange error when compiling document with Cambria font using lualatex in TeX Live 2021

The following LaTeX document results in this error when compiled with lualatex in TeX Live 2021. warning (node filter): error: ...exmf-dist/tex/luatex/luaotfload/luaotfload-ha rf-plug.lua:455: ...
Karl Ove Hufthammer's user avatar
5 votes
1 answer
637 views

LuaLaTeX: Smarter font selection macro for super-families

NOTE: This question is not answered yet. The only "answer" to this question from user Davislor does not answer this question, even though it has up-votes to make it look like. Please feel ...
codepoet's user avatar
  • 1,316
3 votes
1 answer
171 views

luatexja-preset 'yu-win10' not working under Win10

Since some update (see edit), I have not been able to compile files containing Japanese text using the yu-win10 preset provided by luatexja-preset under Windows 10. However, if I compile the same code ...
schoekling's user avatar
  • 3,152
2 votes
0 answers
161 views

luaoftload v3.17 with HarfBuzz does awful line breaking with Garamond

I have this long document which I've been maintaining for years now, which I use Adobe's Garamond Premier Pro font for typesetting, and the whole document is fine-tuned to avoid overfull boxes and ...
The Drunken Whaler's user avatar