Skip to content

Commit

Permalink
osx requires nerd font full name
Browse files Browse the repository at this point in the history
  • Loading branch information
yatli committed Oct 30, 2020
1 parent 03f1cd7 commit b52ad1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui.fs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ let DefaultFontEmoji =
elif RuntimeInformation.IsOSPlatform(OSPlatform.OSX) then "Apple Color Emoji"
else "Noto Color Emoji"

let private nerd_typeface = Typeface("resm:fvim.Fonts.nerd.ttf?assembly=FVim#Iosevka")
let private nerd_typeface =
let name = if RuntimeInformation.IsOSPlatform(OSPlatform.OSX) then "Iosevka Nerd Font"
else "Iosevka"
Typeface(sprintf "resm:fvim.Fonts.nerd.ttf?assembly=FVim#%s" name)
let private emoji_typeface = Typeface(DefaultFontEmoji)
let private fontcache = System.Collections.Generic.Dictionary<string*bool*bool, Typeface>()

Expand Down

0 comments on commit b52ad1d

Please sign in to comment.