summaryrefslogtreecommitdiff
path: root/src/luaotfload-loaders.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/luaotfload-loaders.lua')
-rw-r--r--src/luaotfload-loaders.lua12
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