From 84d28dc5d9eb0e5501efe4f3e57441378d58c7c9 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Sat, 1 Jun 2024 01:25:46 +0300 Subject: [PATCH] FontList: skip Kindle blacklisted fonts (#11932) Closes #11927. --- frontend/fontlist.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/fontlist.lua b/frontend/fontlist.lua index 0efa7942b..61564a6ff 100644 --- a/frontend/fontlist.lua +++ b/frontend/fontlist.lua @@ -142,12 +142,10 @@ function FontList:_readList(dir, mark) -- See if we're interested if file:sub(1, 1) == "." then return end local file_type = file:lower():match(".+%.([^.]+)") or "" - if not font_exts[file_type] then return end + if not font_exts[file_type] or isInFontsBlacklist(file) then return end -- Add it to the list - if not isInFontsBlacklist(file) then - table.insert(self.fontlist, path) - end + table.insert(self.fontlist, path) -- And into cached info table mark[path] = true