TransWikia.com

Use symbols from **bartel-chess-fonts** in Overleaf

TeX - LaTeX Asked by Joost Kruis on August 30, 2020

I want to use a few symbols from the bartel-chess-fonts font in two projects in Overleaf (one is pdfLaTeX, other is XeLaTex). I downloaded the contents, which are all .mf or .tfm files, and added these to a bartel-chess-fonts folder in Overleaf.

At this point I am however stuck on how I can load and use some of these symbols within the text of the document.

I looked to several questions in the Stack, however most are either not for Overleaf or only deal with .ttf files.

I appreciate your help!!

One Answer

You can use the fonts only with low-level commands, or through the diagram package https://www.ctan.org/pkg/chess-problem-diagrams. There is no nfss-support for LaTeX.

So normally something like fontchessfont=pkelch12 {chessfont char99} is needed, you can find out the char number by looking at the font table below. I had to tweak an internal command as the fonts have a bit curious design size.

The fonts are bitmaps.

documentclass{article}
usepackage{fonttable}
begin{document}

fontchessfont=pkelch12 {chessfont char99} 

makeatletter

% to get around the curious design size in the fonts:
renewcommand*{f@tstartfont}{%
  @tempdima=f@size pt
  fontf@ttestfont=f@tfontnamespace at 100ptrelax %force size ...
  f@ttestfont f@tsetbaselineskip
  ifdimfontdimen6f@ttestfont<10ptrelax
    rightskip=0pt plus 20ptrelax
  else
    rightskip=0pt plus 2emrelax
  fi
  spaceskip=fontdimen2f@ttestfont % 
  xspaceskip=fontdimen2f@ttestfont
  advancexspaceskip byfontdimen7f@ttestfont
}




fonttable{pkelch12}
%fonttable{fselch12}


end{document}

enter image description here

Correct answer by Ulrike Fischer on August 30, 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