add comment for system font loading

This commit is contained in:
Jeremy Wu 2021-08-09 20:06:18 +10:00 committed by GitHub
parent 9eeb04ec13
commit 0f66baf64d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,6 +70,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.Contains('/'))
{
var fontPath = Result.Glyph.FontFamily;
@ -155,4 +156,4 @@ namespace Flow.Launcher.ViewModel
return Result.ToString();
}
}
}
}