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 {
 | 
			
		||||
    return switch (s) {
 | 
			
		||||
        .Spades => "",
 | 
			
		||||
        .Hearts => "",
 | 
			
		||||
        .Clubs => "",
 | 
			
		||||
        .Diamonds => "",
 | 
			
		||||
        .Spades => "♠",
 | 
			
		||||
        .Hearts => "❤",
 | 
			
		||||
        .Clubs => "♣",
 | 
			
		||||
        .Diamonds => "♦",
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user