summaryrefslogtreecommitdiff
path: root/otfl-font-otf.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2009-06-10 23:24:34 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2009-06-11 01:10:16 +0300
commitf9a875c39c19e25a6744db40c39935c880a95cc0 (patch)
tree6b55a6b48750103fde80ee6091e3423112177c1f /otfl-font-otf.lua
parent1ef10e57241a65e8ce2aeefdd83874e8999b7b44 (diff)
downloadluaotfload-f9a875c39c19e25a6744db40c39935c880a95cc0.tar.gz
Sync with ConTeXt 2009.06.10 20:06, fixes bug with undefined fonts.register_message function that would crash luatex with certain fonts, pluse more.
Diffstat (limited to 'otfl-font-otf.lua')
-rw-r--r--otfl-font-otf.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/otfl-font-otf.lua b/otfl-font-otf.lua
index 20273f8..00ac596 100644
--- a/otfl-font-otf.lua
+++ b/otfl-font-otf.lua
@@ -1524,7 +1524,7 @@ function tfm.read_from_open_type(specification)
if filename then
tfmtable.encodingbytes = 2
tfmtable.filename = resolvers.findbinfile(filename,"") or filename
- tfmtable.fullname = otfdata.metadata.fontname or otfdata.metadata.fullname
+ tfmtable.fullname = tfmtable.fullname or otfdata.metadata.fontname or otfdata.metadata.fullname
local order = otfdata and otfdata.metadata.order2
if order == 0 then
tfmtable.format = 'opentype'
@@ -1537,5 +1537,6 @@ function tfm.read_from_open_type(specification)
end
fonts.logger.save(tfmtable,file.extname(specification.filename),specification)
end
+--~ print(tfmtable.fullname)
return tfmtable
end