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
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{...
user avatar
  • 5,636
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{...
user avatar
  • 1,986
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}{\...
user avatar
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 ...
user avatar
  • 92
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&...
user avatar
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(&...
user avatar
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 ...
user avatar
  • 38.2k
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 ...
user avatar
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 ...
user avatar
  • 96
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 ...
user avatar
  • 4,003
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 ...
user avatar
  • 27
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 ...
user avatar
  • 45
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 ...
user avatar
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 ...
user avatar
  • 2,136
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 ...
user avatar
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: ...
user avatar
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 ...
user avatar
  • 1,248
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 ...
user avatar
  • 2,999
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 ...
user avatar
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$...
user avatar
  • 2,519
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. \...
user avatar
  • 4,685
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 ...
user avatar
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 &...
user avatar
  • 1,248
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 ...
user avatar
  • 2,136
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 ...
user avatar
  • 12.1k
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 ...
user avatar
  • 253
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:/...
user avatar
  • 2,023
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”...
user avatar
  • 916
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} ...
user avatar
  • 669
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....
user avatar
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 ...
user avatar
  • 733
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 ...
user avatar
  • 1,248
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{...
user avatar
  • 304
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 { } ...
user avatar
  • 1,870
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} ...
user avatar
  • 600
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: \...
user avatar
  • 7,434
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 ...
user avatar
  • 23.7k
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 ...
user avatar
  • 3,018
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 ...
user avatar
  • 1,273
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=...
user avatar
  • 16k
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 ...
user avatar
  • 916
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 ...
user avatar
  • 12.3k
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-...
user avatar
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/...
user avatar
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 ...
user avatar
  • 9,563
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 ...
user avatar
  • 916
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{...
user avatar
  • 7,778
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 ...
user avatar
  • 141
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 ...
user avatar
  • 3,930