adam-mcdaniel / chess-engine

A dependency-free chess engine♟️ library built to run anywhere.
https://adam-mcdaniel.github.io/chess-engine/docs/book/index.html
MIT License
432 stars 31 forks source link

Chess Pieces Fail to Render on Desktop #4

Closed BornIncompetence closed 2 years ago

BornIncompetence commented 3 years ago

Tested on Windows 10, Rust Ver. 1.49.0

Expected: Pieces actually render as shown in the example images

Actual behavior: Pieces show up as thin white squares on the board image

adam-mcdaniel commented 3 years ago

Hmm, this is very strange, especially since the chess pieces aren't images. They're just the unicode text representations for each of the pieces :/ I'm not exactly sure how to go about fixing this other than using images

BornIncompetence commented 3 years ago

From what I could gather, the font that iced uses by default, Lato, doesn't have chess piece glyphs, but it's weird that you're able to render the pieces still. I loaded in DejaVuSansMono just to test and I'm able to get the pieces to render. (after fixing a weird Unicode typo that misaligns the pawns)

image