jfrech.com
jblog
table of contents

Moving Fonts

2016-01-23, post № 101

programming, Pygame, Python, #black, #entities, #entity, #font, #fonts, #get, #get fonts, #hello, #hello world, #moving, #red, #spawn, #world

Experimenting with Pygame’s font functions, I wanted to list every font Pygame could reach with its built-in font.get_fonts() function. This program does so by letting you spawn in the wonderful sentence ’Hello world.’ and assigns it a font based on the previously mentioned function.

Controls

  • Left click spawns in a new sentence at current mouse position,
  • ‘Space’ saves a screenshot.
moving-fonts-1.png
moving-fonts-5.png
moving-fonts-3.png
Source code: moving-fonts.py