add comment for system font loading

This commit is contained in:
Jeremy Wu 2021-08-10 20:24:27 +10:00 committed by GitHub
parent db117b9418
commit 317ce59ee7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,7 @@ namespace Flow.Launcher.ViewModel
if (Result.Glyph is { FontFamily: not null } glyph)
{
// Checks if it's a system installed font, which does not require path to be provided.
if (glyph.FontFamily.EndsWith(".ttf") || glyph.FontFamily.EndsWith(".otf"))
{
var fontPath = Result.Glyph.FontFamily;
@ -127,4 +128,4 @@ namespace Flow.Launcher.ViewModel
return Result.ToString();
}
}
}
}