Skip to content

Commit 317ce59

Browse files
authored
add comment for system font loading
1 parent db117b9 commit 317ce59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher/ViewModel/ResultViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public ResultViewModel(Result result, Settings settings)
2020

2121
if (Result.Glyph is { FontFamily: not null } glyph)
2222
{
23+
// Checks if it's a system installed font, which does not require path to be provided.
2324
if (glyph.FontFamily.EndsWith(".ttf") || glyph.FontFamily.EndsWith(".otf"))
2425
{
2526
var fontPath = Result.Glyph.FontFamily;
@@ -127,4 +128,4 @@ public override string ToString()
127128
return Result.ToString();
128129
}
129130
}
130-
}
131+
}

0 commit comments

Comments
 (0)