Check for Noto Emoji font in UI fallback fonts (#10908)

reviewable/pr10909/r1
Wim de With 8 months ago committed by GitHub
parent be125af949
commit 1773b62ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -39,7 +39,8 @@ local genFallbackCandidates = function()
local fontinfo = FontList.fontinfo[font_path] -- (NotoColorEmoji.tff happens to get no fontinfo)
if fontinfo and #fontinfo == 1 then -- Ignore font files with multiple faces
fontinfo = fontinfo[1]
if util.stringStartsWith(fontinfo.name, "Noto Sans ") and
if (util.stringStartsWith(fontinfo.name, "Noto Sans ") or
fontinfo.name == "Noto Emoji") and
not fontinfo.bold and not fontinfo.italic and
not fontinfo.serif and not fontinfo.mono then
fallback_candidates[fontinfo.name] = fontinfo

Loading…
Cancel
Save