You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating board SVGs with a border around the board, then the border displaces the squares but not the pieces. That results in the pieces being drawn of center from their squares.
A lichess puzzle rendered with border, the pieces are of center to the top left:
The same position without border, the pieces are centered:
The text was updated successfully, but these errors were encountered:
Lukasel
pushed a commit
to Lukasel/python-chess
that referenced
this issue
Sep 5, 2024
When generating board SVGs with a border around the board, then the border displaces the squares but not the pieces. That results in the pieces being drawn of center from their squares.
A lichess puzzle rendered with border, the pieces are of center to the top left:
![3r3k_p5pp_2r2q2_2p4Q_8_8_P5PP_3R1R1K b - - 5 29_border](https://private-user-images.githubusercontent.com/25851381/364700253-217a85f3-a2e6-4a70-83ce-1447f10b93c0.svg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzgyMzYsIm5iZiI6MTczOTMzNzkzNiwicGF0aCI6Ii8yNTg1MTM4MS8zNjQ3MDAyNTMtMjE3YTg1ZjMtYTJlNi00YTcwLTgzY2UtMTQ0N2YxMGI5M2MwLnN2Zz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA1MjUzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNiNjdjYzZkMzY0YzJiYzRiMDliOTlkMGZhYjZjMjFlNDg3ZmQ5MGYzMzFlZDQ0NzBjNzQ3MzM5ZjhlZjZjZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Cav-EwwFPXfDfPhCkGJ2csob1rORAZRfWuI2YTaTr1Y)
The same position without border, the pieces are centered:
![3r3k_p5pp_2r2q2_2p4Q_8_8_P5PP_3R1R1K b - - 5 29_no-border](https://private-user-images.githubusercontent.com/25851381/364700260-f26d34e7-b3f8-4de4-b2df-7803bd307821.svg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzgyMzYsIm5iZiI6MTczOTMzNzkzNiwicGF0aCI6Ii8yNTg1MTM4MS8zNjQ3MDAyNjAtZjI2ZDM0ZTctYjNmOC00ZGU0LWIyZGYtNzgwM2JkMzA3ODIxLnN2Zz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA1MjUzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVlYzVlODBlZTY4YmYwNDFmZDllNzA4ZTczMTAxOTUyOTBjNjU0OGMyMTFjMjBjYWFhMDNhZmE1MjY1MzhhMmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.FPQS17W-sPJcz3c4O2SraT141eSiUGBjkg1Hv0D5mvc)
The text was updated successfully, but these errors were encountered: