From 317ce59ee769df71bbc7a6d6f87f62b04d56afb7 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Tue, 10 Aug 2021 20:24:27 +1000 Subject: [PATCH] add comment for system font loading --- Flow.Launcher/ViewModel/ResultViewModel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/ViewModel/ResultViewModel.cs b/Flow.Launcher/ViewModel/ResultViewModel.cs index 176943e4c..328dbcba5 100644 --- a/Flow.Launcher/ViewModel/ResultViewModel.cs +++ b/Flow.Launcher/ViewModel/ResultViewModel.cs @@ -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(); } } -} \ No newline at end of file +}