diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2016-04-20 07:40:31 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2016-04-20 07:40:31 +0200 |
commit | 1c93f97f4bce1b399e90f65657e95ef13434128c (patch) | |
tree | c0bb9705e1276e548a19ef656749d890d78860f6 /src/luaotfload-loaders.lua | |
parent | c35210aaaf992793bd111a0bd90e28630c7d2101 (diff) | |
parent | e14f3c50eedcd2652125177db0deacd8079cc048 (diff) | |
download | luaotfload-1c93f97f4bce1b399e90f65657e95ef13434128c.tar.gz |
Merge pull request #335 from phi-gamma/master
format and feature handling, fixes for 2.7
Diffstat (limited to 'src/luaotfload-loaders.lua')
-rw-r--r-- | src/luaotfload-loaders.lua | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/luaotfload-loaders.lua b/src/luaotfload-loaders.lua index fb01821..d3828aa 100644 --- a/src/luaotfload-loaders.lua +++ b/src/luaotfload-loaders.lua @@ -41,6 +41,14 @@ local eval_reader = function (specification) return eval () end +local unsupported_reader = function (format) + return function (specification) + logreport ("both", 0, "loaders", + "font format ā%sā unsupported; cannot load %s.", + format, tostring (specification.name)) + end +end + local install_formats = function () local fonts = fonts if not fonts then return false end @@ -72,8 +80,8 @@ local install_formats = function () return aux ("evl", eval_reader) and aux ("lua", lua_reader) - and aux ("pfa", function (spec) return readers.opentype (spec, "pfa", "type1") end) - and aux ("pfb", function (spec) return readers.opentype (spec, "pfb", "type1") end) + and aux ("pfa", unsupported_reader "pfa") + and aux ("pfb", unsupported_reader "pfb") and aux ("ofm", readers.tfm) end |