Need help with pygame's font module

This page summarizes the projects mentioned and recommended in the original post on /r/transprogrammer

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Pygame

    🐍🎮 pygame (the library) is a Free and Open Source python programming language library for making multimedia applications like games built on top of the excellent SDL library. C, Python, Native, OpenGL.

  • Pygame uses SDL_ttf under the hood to work with fonts. If you’re just wanting to load your own font you can just use pygame.font.Font() and point it to a ttf file. If you’re wanting to mess with the font object or do something else with the raw font data, you might want to check out https://github.com/pygame/pygame/blob/main/src_c/font.c and https://github.com/libsdl-org/SDL_ttf/blob/main/SDL_ttf.c to get an idea of what pygame and SDL are doing under the surface.

  • SDL_ttf

    Support for TrueType (.ttf) font files with Simple Directmedia Layer.

  • Pygame uses SDL_ttf under the hood to work with fonts. If you’re just wanting to load your own font you can just use pygame.font.Font() and point it to a ttf file. If you’re wanting to mess with the font object or do something else with the raw font data, you might want to check out https://github.com/pygame/pygame/blob/main/src_c/font.c and https://github.com/libsdl-org/SDL_ttf/blob/main/SDL_ttf.c to get an idea of what pygame and SDL are doing under the surface.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts