Skip to content

Commit

Permalink
fix font no bold
Browse files Browse the repository at this point in the history
  • Loading branch information
iFwu committed Oct 8, 2024
1 parent bd1655b commit 3f5d015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ChessboardDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export function ChessboardDisplay({ fen, bestMove }: ChessboardDisplayProps) {

// 绘制棋子文字
ctx.fillStyle = piece.color === 'red' ? '#c00000' : '#000000';
ctx.font = 'bold 22px "LiSu", sans-serif';
ctx.font = '22px "LiSu", sans-serif';
const pieceChar = piece.type.toUpperCase();
const pieceSymbol =
piece.color === 'red'
Expand Down

0 comments on commit 3f5d015

Please sign in to comment.