summaryrefslogtreecommitdiff
path: root/luaotfload-loaders.lua
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2013-04-23 02:26:27 -0700
committerElie Roux <elie.roux@telecom-bretagne.eu>2013-04-23 02:26:27 -0700
commitf3776cb0941e417f8aa2efe46773cc7330506387 (patch)
tree7c3dc50f78edba439b5b02db321e0e9855b6199e /luaotfload-loaders.lua
parentf4fa20a933db69aad3b0823e1b53115078f095e0 (diff)
parentbd1c0d02304969137f74a70f5d2a435553c90944 (diff)
downloadluaotfload-f3776cb0941e417f8aa2efe46773cc7330506387.tar.gz
Merge pull request #10 from phi-gamma/master
great file bundle restructuring, part I
Diffstat (limited to 'luaotfload-loaders.lua')
-rw-r--r--luaotfload-loaders.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/luaotfload-loaders.lua b/luaotfload-loaders.lua
new file mode 100644
index 0000000..8ab6b29
--- /dev/null
+++ b/luaotfload-loaders.lua
@@ -0,0 +1,24 @@
+local fonts = fonts
+
+---
+--- opentype reader (from font-otf.lua):
+--- (spec : table) -> (suffix : string) -> (format : string) -> (font : table)
+---
+
+local pfb_reader = function (specification)
+ return readers.opentype(specification,"pfb","type1")
+end
+
+local pfa_reader = function (specification)
+ return readers.opentype(specification,"pfa","type1")
+end
+
+fonts.formats.pfb = "type1"
+fonts.readers.pfb = pfb_reader
+fonts.handlers.pfb = { } --- empty, as with tfm
+
+fonts.formats.pfa = "type1"
+fonts.readers.pfa = pfa_reader
+fonts.handlers.pfa = { }
+
+-- vim:tw=71:sw=2:ts=2:expandtab