summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-04-20 07:25:25 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-04-20 07:25:29 +0200
commit345da7fddda9f8a62070e3430458192b064838cb (patch)
treedd2adf9f7939645157ccc83636da018aad7e5be9 /src
parent38c84cadb36d10afd999158cd065d871308ce45d (diff)
downloadluaotfload-345da7fddda9f8a62070e3430458192b064838cb.tar.gz
[loaders] remove support for PF{A,B}
The Lua fontloader doesn’t support these formats and they’re very low priority. There is no “shortcut” like with the FF loader anymore which would parse such files into the same data structures as {O,T}TF. Support for postscript formats may come back at some point in the future if there is demand.
Diffstat (limited to 'src')
-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