Questions tagged [luaotfload]
{luaotfload} is a package to load OpenType Fonts(OTF) in Plain TeX/ LaTeX and to select OTF font features.
128
questions
3
votes
2
answers
60
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{...
4
votes
1
answer
121
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{...
2
votes
1
answer
49
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}{\...
2
votes
2
answers
127
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 ...
1
vote
0
answers
136
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&...
0
votes
0
answers
48
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(&...
5
votes
0
answers
52
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 ...
2
votes
0
answers
83
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 ...
0
votes
0
answers
29
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 ...
3
votes
1
answer
132
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 ...
1
vote
0
answers
44
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 ...
5
votes
1
answer
173
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 ...
1
vote
2
answers
290
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 ...
4
votes
0
answers
86
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 ...
0
votes
1
answer
49
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 ...
0
votes
0
answers
76
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: ...
5
votes
1
answer
293
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 ...
3
votes
1
answer
134
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 ...
2
votes
0
answers
96
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 ...
1
vote
1
answer
127
views
Less space (glue) inserted when using ~
\input luaotfload.sty
\font\bsk=[BaskervilleMTPro-Regular]:script=latn;
\bsk
If the dimension $M$ were less than the number $N$ of data sites, then the columns of $A$ couldn’t span the whole of~$R^N$...
11
votes
1
answer
551
views
Substituting fonts for emojis in LuaLaTeX
Inspired by this question, I try to use a different font for all emoji characters in the document. In the code sample below, I build the is_emoji function according to unicode standards.
\...
3
votes
1
answer
1k
views
Use pandoc/latex on Docker with LuaLaTeX PDF engine and TeX Gyre Fonts
Motivation
Original question from pandoc discuss.
To build an Docker image allowing pandoc --pdf-engine=lualatex test.md -o test.pdf with the source file test.md as follow:
---
mainfont: TeX Gyre ...
2
votes
0
answers
111
views
LuaTeX: Microtype/fontspec/luaotfload buggy interaction canceling each other's settings
Microtype and fontspec/luaotfload seem to interact, and cancel each other's settings. In the following code, fontspec option Color=FF0000 and \lsstyle interact to cancel each others effect (coloring &...
1
vote
1
answer
122
views
Using chain substitution to add alternative characters contextually in LuaLaTeX
I'm trying to add some contextual alternatives to Linux Libertine using fonts.handlers.otf.addfeature. I can add these characters correctly using an ordinary substitution, but they are not recognized ...
1
vote
1
answer
169
views
Issue selecting font from TrueType Collection with LuaTeX
I'd like to use the Gill Sans font, which is installed in /Library/Fonts/GillSans.ttc on my Mac. According to the fontspec documentation, I should be able to use TrueType Collections by specifying the ...
1
vote
1
answer
426
views
LuaLaTeX produces no output in Flatpak TeXLive
I'm currently working on getting TeXLive usable in Linux Flatpaks, however LuaLaTeX "silently" fails and I have no idea what might be wrong or where to start. The output and symptoms are ...
0
votes
0
answers
63
views
Why can't lualatex in MiKTeX find stmaryrd fonts unless pdflatex is run first? [duplicate]
MNWE:
\documentclass{acmart}
\usepackage{stmaryrd}
\begin{document}
$\Mapsto$
\end{document}
Running lualatex on this file gives a log containing
luaotfload | cache : Lookup cache loaded from C:/...
2
votes
1
answer
157
views
LuaHBTeX Renderer=OpenType + BibLaTeX adventures part 2
(Continued from Freeze with fontspec's Renderer=OpenType + ItalicFont, biblatex, and polyglossia (Greek))
News:
Author names and order matter (I wish I was joking: “Jane McGo” works but “Jane McGoop”...
1
vote
0
answers
232
views
luaotfload: bug in newest version (26.04.2020)? [closed]
I compiled this MWE on two different PCs running MikTeX version 2.9.7400:
\documentclass{scrreprt}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\begin{document}
Some text.
\end{document}
...
0
votes
0
answers
135
views
Some bugs in LuaHBTeX or LuaOTFload with mode=harf?
Please try the following MWEs with LuaHBTeX:
% Plain LuaHBTeX
\input luaotfload.sty
\font\twentyfiverm="MinionPro-Regular.otf:%
mode=harf;script=latn;language=DFLT;+tlig" at%
\directlua{tex....
0
votes
0
answers
65
views
Luaotfload package
I need a simple example regarding the use of the Luaotfload package, what are its uses how can it be used regarding Unicode fonts in latex (lualatex + Babel). Can it be used to color fonts, what ...
2
votes
1
answer
164
views
LuaLaTeX glyph dimension correctness depends on font extension
I am writing a package that requires extracting dimensions of certain glyphs. The package would support both xelatex & lualatex. In my testing, xelatex always returns accurate glyph dimensions ...
3
votes
1
answer
607
views
Lualatex produces no output (MiKTeX)
My lualatex on MiKTeX seems to be somehow broken:
If I compile any document, like the following, LuaLaTeX produces no output at all (no .pdf, .aux, .log, ...).
\documentclass{article}
\begin{...
2
votes
0
answers
151
views
Moving luacode to Lua file, accessing glyphs by name
I have a package that includes (basically) the following code (provided by a contributor after asking this question on tex.stackoverflow).
\begin{luacode}
documentdata = documentdata or { }
...
1
vote
0
answers
157
views
LuaLaTeX not outputting ligatures in Helvetica Neue TrueType Collection
Consider the following MWE:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{HelveticaNeue.ttc}[
UprightFeatures = {FontIndex=0}
]
\begin{document}
ff fi fl ffi ffl
\end{document}
...
7
votes
1
answer
301
views
Fandol with LuaTeX
The next release of babel will provide basic line breaking for CJK with luatex. When I was making some experiments I discovered an odd and puzzling behaviour in the Fandol family. The file is:
\...
12
votes
1
answer
296
views
What is the least resource intensive way to generate the luatex font cache for a new font?
When a font is first used with lualatex, luaotfload does some magic to produce font cache files.
For large fonts (e.g., Noto Sans CJK) this can take a lot of time and a lot of memory.
I have an old ...
1
vote
1
answer
291
views
microtype: \texls has no effect
I use microtype's \textls in combination with fontspec to change the tracking of text, and until recently, this worked as it should. Recently, it seems to have stopped to work with fonts other than ...
6
votes
0
answers
307
views
Is luaotfload package broken?
Today's (2019-02-09) tlmgr update of TeXLive 2018 (on Linux) broke my project (around twelve hundred pages in several books typeset with LuaLaTeX using Adobe Garamond Pro) severely — almost all the ...
0
votes
0
answers
127
views
luaotfload: can't find font after updating font database
I have installed a new font "MCS Diwany1 S_U adorned." with xelatex there is no problem but with lualatex a file like this
\documentclass[11pt]{report}
\usepackage{fontspec}
\setmainfont[Script=...
1
vote
0
answers
154
views
Custom Lua feature for CID-keyed font
fonts.handlers.otf.addfeature in luaotfload can be used to create custom features for fonts.
The unicode values of glyphs can be used for CID fonts in the same way as for GID fonts, but some fonts ...
9
votes
3
answers
522
views
examples for broken rendering of scripts in lualatex
The code of luaotfload mentions a number of scripts for which the support is incomplete. I would like to check if this is true and what perhaps could be done.
As I know nothing about these scripts, ...
7
votes
1
answer
243
views
using glyphs in the Corporate Use or Microsoft Symbol Areas
Since updating TeX Live yesterday (luaotfload was among the packages updated, to version 2.9, dated 2018/09/24), I’m having difficulty with glyphs in the Corporate Use Area and the MicroSoft Symbol ...
10
votes
1
answer
571
views
Problems with LuaTeX 1.08 even on a very simple document
I just installed luatex 1.08 released yesterday (the installation is a manual process and replaces the original luatex v1.07 that ships with Texlive 2018) on my on GNU/Linux x86_64 machine and re-...
2
votes
1
answer
379
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/...
6
votes
1
answer
388
views
fontspec/luaotfload: defining custom features without OTF feature file support
Since 2016, fontspec no longer supports standard OTF feature files. These files made it possible to define sophisticated custom changes to the way an OpenType font is processed. That feature file ...
5
votes
1
answer
543
views
Filling an empty slot in a font with another glyph from the same font
I am trying to use an existing glyph from an OpenType font to fill an empty slot in the same font using LuaLaTeX. fontspec.pdf (v2.6g, part VI) shows a hack that can substitute already existing glyphs ...
2
votes
0
answers
305
views
lualatex (with fontspec) finds fonts only by font file name
I cannot get lualatex (MacTeX2017, updated this morning) to use font names. It seems only to want to use font file names.
% !TEX encoding = UTF-8 Unicode
% !TEX TS-program = LuaLaTeX
\documentclass{...
4
votes
3
answers
6k
views
! LaTeX Error: File `luaotfload.sty' not found
On Ubuntu 16.04 I noticed that none of the Latex tools will supported other fonts than default. E.g. code like
\usepackage{fontspec}
\setmainfont{Ubuntu Mono}
All tools fail with the same / similar ...
1
vote
1
answer
545
views
luaotfload-tool can find fonts, but LuaLaTeX cannot find them to compile
I have otf Alegreya Sans Small Caps installed system wide:
luaotfload-tool --find="AlegreyaSansSC" --fuzzy luaotfload | resolve :
Font "AlegreyaSansSC" found! luaotfload | resolve : Resolved file ...