Function name mismatch between manual and C code: font.copyfont <-> font.getcopy ?
I think that there is a wrong function name documented in the manual. The lfontlib.c C file exports a getcopy function: https://gitlab.lisn.upsaclay.fr/texlive/luatex/-/blob/master/source/texk/web... diff --git a/manual/luatex-fonts.tex b/manual/luatex-fonts.tex index 136d20dd3..037d252ff 100644 --- a/manual/luatex-fonts.tex +++ b/manual/luatex-fonts.tex @@ -728,10 +728,10 @@ font.setfont(<number> n, <table> f) Note that at the moment, each access to the \type {font.fonts} or call to \type {font.getfont} creates a \LUA\ table for the whole font unless you cached it. -If you want a copy of the internal data you can use \type {font.copyfont}: +If you want a copy of the internal data you can use \type {font.getcopy}: \startfunctioncall -<table> f = font.copyfont(<number> n) +<table> f = font.getcopy(<number> n) \stopfunctioncall This one will return a table of the parameters as known to \TEX. These can be
On Tue, 17 Jan 2023 at 16:28, Josef Friedrich
I think that there is a wrong function name documented in the manual.
done
commit 86f5381cbcbd380a4e011555c5b77cfddb7c39b9 (HEAD -> master,
origin/master)
Author: Luigi Scarso
participants (2)
-
Josef Friedrich
-
luigi scarso