Skip to content

Commit 5190942

Browse files
author
Yatao Li
committed
use iosevka-nf for braille
1 parent d7edd32 commit 5190942

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

ui.fs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,19 +142,11 @@ let DefaultFontEmoji =
142142
elif RuntimeInformation.IsOSPlatform(OSPlatform.OSX) then "Apple Color Emoji"
143143
else "Noto Color Emoji"
144144

145-
let DefaultFontBraille =
146-
if RuntimeInformation.IsOSPlatform(OSPlatform.Windows) then "Segoe UI Symbol"
147-
elif RuntimeInformation.IsOSPlatform(OSPlatform.Linux) then "Monospace" // ?
148-
elif RuntimeInformation.IsOSPlatform(OSPlatform.OSX) then "Menlo" // ?
149-
else "Monospace"
150-
151-
152145
let private nerd_typeface =
153146
let name = if RuntimeInformation.IsOSPlatform(OSPlatform.OSX) then "Iosevka NF"
154147
else "Iosevka"
155148
Typeface($"resm:fvim.Fonts.nerd.ttf?assembly=FVim#{name}")
156149
let private emoji_typeface = Typeface(DefaultFontEmoji)
157-
let private braille_typeface = Typeface(DefaultFontBraille)
158150
let private fontcache = System.Collections.Generic.Dictionary<string*bool*bool, Typeface>()
159151

160152
let InvalidateFontCache () =
@@ -190,7 +182,7 @@ let GetTypeface(txt, italic, bold, font, wfont) =
190182
| CharType.Powerline
191183
| CharType.Nerd when not states.font_nonerd -> nerd_typeface
192184
| CharType.Emoji -> emoji_typeface
193-
| CharType.Braille -> braille_typeface
185+
| CharType.Braille -> nerd_typeface
194186
| _ -> _get font
195187

196188
let MeasureText (rune: Rune, font: string, wfont: string, fontSize: float, scaling: float) =

0 commit comments

Comments
 (0)