summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/luatex/luatex-fonts.tex
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-12-12 20:13:50 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-12-12 20:13:50 +0100
commit2683d42fe95c59c52a9d7c334292d0a5a15c030a (patch)
tree5ada28813a58ae1acea3fddf5f6a2e185d739c17 /doc/context/sources/general/manuals/luatex/luatex-fonts.tex
parent989909187ebdac48c8cbc65a99840ed58d3f4f46 (diff)
downloadcontext-2683d42fe95c59c52a9d7c334292d0a5a15c030a.tar.gz
2019-12-12 19:34:00
Diffstat (limited to 'doc/context/sources/general/manuals/luatex/luatex-fonts.tex')
-rw-r--r--doc/context/sources/general/manuals/luatex/luatex-fonts.tex10
1 files changed, 7 insertions, 3 deletions
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(<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.
-This process can be quite slow.
+If you want a copy of the internal data you can use \type {font.copyfont}:
\startfunctioncall
-<table> p = font.getparameters(<number> n)
+<table> f = font.copyfont(<number> 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
+<table> p = font.getparameters(<number> 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