Chess – How to Display Black Chess Pieces with Chessfss

chess

I'm using the package chessboard do display chess diagrams, and therefore chessfss is used for chess fonts if my understanding is correct.

To display the white chess pieces within normal text when writing explanations, I use the commands \pawn, \rook, \knight, \bishop, \queen and \king (see the example below).

\documentclass[varwidth,margin=0.5cm]{standalone}
\usepackage{chessfss}
\begin{document}
  White pieces : \pawn \rook \knight \bishop \queen \king\\


  Black pieces : \BlackPawnOnWhite \BlackRookOnWhite \BlackKnightOnWhite
  \BlackBishopOnWhite \BlackQueenOnWhite \BlackKingOnWhite
\end{document}

Chess pieces symbols within normal text

What are the corresponding commands to display the black pieces? I have tried commands like \BlackPawnOnWhite but as you can see it is not suited to in-text use.

Best Answer

There aren't many chessfonts which actually contain black figurine pieces. I only know the berlin family and there you need to change the font shape to access them:

\documentclass[varwidth,margin=0.5cm]{standalone}
\usepackage{chessfss}
\begin{document}
\pawn \rook \knight \bishop \queen \king

\setfigfontfamily{berlin}
\pawn \rook \knight \bishop \queen \king 

\fontshape{bl}\pawn \rook \knight \bishop \queen \king
\end{document}

enter image description here

If you want to use another chess font you will have to get suitable glyphs first. You could e.g. ask the author of skaknew to add them. I could then create support files.

Edit

You could get glyphs by taking the font with the board pieces and then create a virtual font which changes the bounding boxes so that they sit better on the line.

Related Question