From 30e6b3529b14acbded7a5b9807afd0fef8e98504 Mon Sep 17 00:00:00 2001 From: chrox Date: Fri, 2 May 2014 12:44:36 +0800 Subject: [PATCH] hide Nimbus fonts in font selecting dialog --- frontend/document/credocument.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/document/credocument.lua b/frontend/document/credocument.lua index 8ec52d0d0..7501be049 100644 --- a/frontend/document/credocument.lua +++ b/frontend/document/credocument.lua @@ -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)