From ee9575c0015f06571d238a87e982595c9d996c54 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 27 May 2013 16:38:28 +0200 Subject: provide hook for custom font resolver --- luaotfload-features.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'luaotfload-features.lua') diff --git a/luaotfload-features.lua b/luaotfload-features.lua index cbdc36b..c405ae5 100644 --- a/luaotfload-features.lua +++ b/luaotfload-features.lua @@ -1003,9 +1003,11 @@ local prefixed = P"name:" * ws * Cg(fontname, "name") --- with paths already, so we’ll add a less strict rule here. anyways, --- we’ll emit a warning. + P"file:" * ws * Cg(unsupported, "path") - + P"file:" * ws * Cg(fontname, "file") + + P"file:" * ws * Cg(fontname, "file") --- EXPERIMENTAL: kpse lookup - + P"kpse:" * ws * Cg(fontname, "kpse") + + P"kpse:" * ws * Cg(fontname, "kpse") +--- EXPERIMENTAL: custom lookup + + P"my:" * ws * Cg(fontname, "my") local unprefixed = Cg(fontname, "anon") local path_lookup = lbrk * Cg(C((1-rbrk)^1), "path") * rbrk @@ -1071,7 +1073,7 @@ local import_values = { { "mode", true }, } -local lookup_types = { "anon", "file", "kpse", "name", "path" } +local lookup_types = { "anon", "file", "kpse", "my", "name", "path" } local select_lookup = function (request) for i=1, #lookup_types do -- cgit v1.2.3