title: How to add a TrueType font file to a pyinstaller executable for use with Pygame?
body: <p>I have created a python file named breakout.py and want to create an exe with pyinstaller. The python file requires the file ARCADECLASSIC.TTF in the same directory as the python script in order to run. Also I want to be able to run the exe file without having to have the font file aswell. I have tried multiple pyinstaller commands to try to do this.</p>
  <p>I tried this command <code>pyinstaller --add-binary &quot;ARCADECLASSIC.TTF;.&quot; --onefile breakout.py</code> and recieved a permission denied error number 13.</p>
  <p>Then I tryed editing my code so that the font file would be inside a directory called fonts and tried this command <code>pyinstaller --add-binary &quot;fonts/ARCADECLASSIC.TTF;fonts&quot; --onefile breakout.py</code> which ran with no errors but when I ran the exe file an error came saying there is no file named fonts/ARCADECLASSIC.TTF so crashed.</p>
  <p>I have now also tried specifying the full directory of the font file and it still doesn't work.</p>
  <p>In case this helps my OS is Windows and I am using python 3.8.5 64 bit with pyinstaller 4.0.</p>
  <p>Firstly is what I am trying to do possible and secondly if it is possible how do I do it and what am I doing wrong.</p>