summaryrefslogtreecommitdiff
path: root/otfl-font-pfb.lua
diff options
context:
space:
mode:
Diffstat (limited to 'otfl-font-pfb.lua')
-rw-r--r--otfl-font-pfb.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/otfl-font-pfb.lua b/otfl-font-pfb.lua
new file mode 100644
index 0000000..66abf23
--- /dev/null
+++ b/otfl-font-pfb.lua
@@ -0,0 +1,8 @@
+local fonts = fonts
+local readers = fonts.readers
+
+fonts.formats.pfb = "pfb"
+fonts.formats.pfa = "pfa"
+
+function readers.pfb(specification) return readers.opentype(specification,"pfb","type1") end
+function readers.pfa(specification) return readers.opentype(specification,"pfa","type1") end