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