From 2683d42fe95c59c52a9d7c334292d0a5a15c030a Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Thu, 12 Dec 2019 20:13:50 +0100 Subject: 2019-12-12 19:34:00 --- doc/context/sources/general/manuals/luatex/luatex-fonts.tex | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'doc/context/sources/general/manuals') diff --git a/doc/context/sources/general/manuals/luatex/luatex-fonts.tex b/doc/context/sources/general/manuals/luatex/luatex-fonts.tex index e5b6e1cb2..400550a96 100644 --- a/doc/context/sources/general/manuals/luatex/luatex-fonts.tex +++ b/doc/context/sources/general/manuals/luatex/luatex-fonts.tex @@ -728,14 +728,18 @@ font.setfont( n, 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. -This process can be quite slow. +If you want a copy of the internal data you can use \type {font.copyfont}: \startfunctioncall -
p = font.getparameters( n) +
f = font.copyfont( n) \stopfunctioncall This one will return a table of the parameters as known to \TEX. These can be -different from the ones in the cached table. +different from the ones in the cached table: + +\startfunctioncall +
p = font.getparameters( n) +\stopfunctioncall Also note the following: assignments can only be made to fonts that have already been defined in \TEX, but have not been accessed {\it at all\/} since that -- cgit v1.2.3