summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-05-18 21:45:53 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2014-05-18 21:45:53 +0200
commit00c27a4cf0a426a7d0e3850837edac624591e21f (patch)
tree3f384c8392c8864b53e7d6b4ec0322220f21a6cd /luaotfload.dtx
parent41de61134114c1626b9afae83ec801725e1b0423 (diff)
parent828a69efb1f899f8707270f4515db20d485ccc34 (diff)
downloadluaotfload-00c27a4cf0a426a7d0e3850837edac624591e21f.tar.gz
Merge pull request #216 from phi-gamma/master
[main] backport 0e06af55b50b2314c5d99db4843c1881dd89a88b (lowercase forc...
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx8
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