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:
poire-z
2019-11-16 17:42:04 +01:00
parent dc8696bd34
commit 558bd1ebeb

View File

@@ -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)