diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2014-05-18 21:35:56 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2014-05-18 21:35:56 +0200 |
commit | 828a69efb1f899f8707270f4515db20d485ccc34 (patch) | |
tree | 3f384c8392c8864b53e7d6b4ec0322220f21a6cd | |
parent | bd307a8fe8047d322317037c1a832720c236fb48 (diff) | |
download | luaotfload-828a69efb1f899f8707270f4515db20d485ccc34.tar.gz |
[main] backport 0e06af55b50b2314c5d99db4843c1881dd89a88b (lowercase forced format)
-rw-r--r-- | luaotfload.dtx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx index 40b5df9..b8fd11d 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -1995,7 +1995,7 @@ local file_resolver = function (specification) local name = resolve_file (specification.name) local suffix = filesuffix(name) if formats[suffix] then - specification.forced = suffix + specification.forced = string.lower (suffix) specification.forcedname = file.removesuffix(name) else specification.name = name @@ -2080,7 +2080,7 @@ request_resolvers.path = function (specification) else local suffix = filesuffix (name) if formats[suffix] then - specification.forced = suffix + specification.forced = string.lower (suffix) specification.name = file.removesuffix(name) specification.forcedname = name else @@ -2102,7 +2102,7 @@ request_resolvers.kpse = function (specification) if suffix and formats[suffix] then name = file.removesuffix(name) if resolvers.findfile(name, suffix) then - specification.forced = suffix + specification.forced = string.lower (suffix) specification.forcedname = name return end @@ -2130,7 +2130,7 @@ request_resolvers.name = function (specification) if resolved then specification.resolved = resolved specification.sub = subfont - specification.forced = filesuffix (resolved) + specification.forced = string.lower (filesuffix (resolved) or "") specification.forcedname = resolved specification.name = fileremovesuffix (resolved) else |