hide Nimbus fonts in font selecting dialog

This commit is contained in:
chrox
2014-05-02 12:44:36 +08:00
parent ae3b84138e
commit 30e6b3529b

View File

@@ -59,7 +59,8 @@ function CreDocument:engineInit()
-- we need to initialize the CRE font list
local fonts = Font:getFontList()
for _k, _v in ipairs(fonts) do
if _v ~= "Dingbats.cff" and _v ~= "StandardSymL.cff" then
if _v ~= "Dingbats.cff" and _v ~= "StandardSymL.cff"
and _v:sub(1, 6) ~= "Nimbus" then
local ok, err = pcall(cre.registerFont, Font.fontdir..'/'.._v)
if not ok then
DEBUG(err)