summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-con.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-04-26 00:56:11 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-04-26 00:56:11 +0200
commit0189223a1a40debb4cb3b146ce182eb806cd28f2 (patch)
treeef50df44125284834b25f5eb59a58afadfe5a4d3 /tex/context/base/mkiv/font-con.lua
parent32e6c720c4f84f112596c6b4a75193f99e9be158 (diff)
downloadcontext-0189223a1a40debb4cb3b146ce182eb806cd28f2.tar.gz
2019-04-25 10:44:00
Diffstat (limited to 'tex/context/base/mkiv/font-con.lua')
-rw-r--r--tex/context/base/mkiv/font-con.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/tex/context/base/mkiv/font-con.lua b/tex/context/base/mkiv/font-con.lua
index 93ce9f5da..9def52ef0 100644
--- a/tex/context/base/mkiv/font-con.lua
+++ b/tex/context/base/mkiv/font-con.lua
@@ -595,7 +595,6 @@ function constructors.scale(tfmdata,specification)
targetparameters.descender = delta * descender
end
--
--- inspect(targetparameters)
constructors.enhanceparameters(targetparameters) -- official copies for us, now virtual
--
local protrusionfactor = (targetquad ~= 0 and 1000/targetquad) or 0
@@ -1027,11 +1026,11 @@ function constructors.finalize(tfmdata)
properties.virtualized = tfmdata.type == "virtual"
end
--
- properties.fontname = tfmdata.fontname
- properties.filename = tfmdata.filename
- properties.fullname = tfmdata.fullname
- properties.name = tfmdata.name
- properties.psname = tfmdata.psname
+ properties.fontname = properties.fontname or tfmdata.fontname
+ properties.filename = properties.filename or tfmdata.filename
+ properties.fullname = properties.fullname or tfmdata.fullname
+ properties.name = properties.name or tfmdata.name
+ properties.psname = properties.psname or tfmdata.psname
--
properties.encodingbytes = tfmdata.encodingbytes or 1
properties.embedding = tfmdata.embedding or "subset"