mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
cre fonts list: ignore nerdfonts/symbol.ttf
It's rejected anyway by crengine, this just avoids an error from being logged.
This commit is contained in:
@@ -80,7 +80,7 @@ function CreDocument:engineInit()
|
||||
-- we need to initialize the CRE font list
|
||||
local fonts = FontList:getFontList()
|
||||
for _k, _v in ipairs(fonts) do
|
||||
if not _v:find("/urw/") then
|
||||
if not _v:find("/urw/") and not _v:find("/nerdfonts/symbols.ttf") then
|
||||
local ok, err = pcall(cre.registerFont, _v)
|
||||
if not ok then
|
||||
logger.err("failed to register crengine font:", err)
|
||||
|
||||
Reference in New Issue
Block a user