1 import("piece_theme.lua")
2 function fromGlyph(glyph
)
3 return fromFontGlyph("XBoard.ttf", glyph
, "black", "#ffffce")
6 theme
.black_bishop
= fromGlyph("0x0042")
7 theme
.black_king
= fromGlyph("0x004B")
8 theme
.black_knight
= fromGlyph("0x004E")
9 theme
.black_pawn
= fromGlyph("0x0050")
10 theme
.black_queen
= fromGlyph("0x0051")
11 theme
.black_rook
= fromGlyph("0x0052")
13 theme
.white_bishop
= fromGlyph("0x0062")
14 theme
.white_king
= fromGlyph("0x006B")
15 theme
.white_knight
= fromGlyph("0x006E")
16 theme
.white_pawn
= fromGlyph("0x0070")
17 theme
.white_queen
= fromGlyph("0x0071")
18 theme
.white_rook
= fromGlyph("0x0072")