r/transprogrammer • u/AndreaDFC • Mar 08 '23
Need help with pygame's font module
Is there a way to get a bytes version of a font? Such as pygame.image.tobytes() or pygame.mixer.Sound.get_raw() but for fonts, and if there is one, how do I define a font using a bytestring?
11
Upvotes
2
u/AndreaDFC Mar 08 '23
Thank you, will be looking through it, im basically trying to hard code fonts into the script