Convert nerdfont icon to unicode
This commit is contained in:
+4
-4
@@ -74,10 +74,10 @@ pub fn bufPrintCard(card: Card, buffer: []u8, options: bufPrintCardOptions) []co
|
||||
|
||||
pub fn suitToIcon(s: Suit) []const u8 {
|
||||
return switch (s) {
|
||||
.Spades => "",
|
||||
.Hearts => "",
|
||||
.Clubs => "",
|
||||
.Diamonds => "",
|
||||
.Spades => "♠",
|
||||
.Hearts => "❤",
|
||||
.Clubs => "♣",
|
||||
.Diamonds => "♦",
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user