TransWikia.com

Change fonts with `chessfss`

TeX - LaTeX Asked by Logos on December 15, 2020

I would like to change font for the chess symbols, but it doesn’t work.
I have tried to copy the code on the documentation of chessfss but with doesn’t work.
Can you help me, please? Herewith, my minimal example. (In the document where this is going to be used I use XeLaTeX).

% !TEX TS-program = XeLaTeX
documentclass{article}

usepackage{chessfss}

begin{document}

setfigfontfamily{maya}
setboardfontsize{20pt}
boardfont
KkQkRrBbNnPp

end{document}

One Answer

If you want to select a figurine font you should use figfont not boardfont. But the pfb-files for maya are not in the enpassant package on CTAN (due to licensing reasons), you would have to create them manually. With e.g. pirat you can do this:

documentclass{article}

usepackage{chessfss}
pdfmapfile{=chess-enpassant.map} %perhaps needed ...
begin{document}
{setfigfontfamily{pirat}
 figfont
 KQRBNP}

{setboardfontfamily{pirat}
 boardfont
 KkQkRrBbNnPp}

end{document}

enter image description here

Correct answer by Ulrike Fischer on December 15, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP