#Fonts and text import pygame, sys, random from pygame.locals import * pygame.init() DISPLAYWINDOWSIZE = pygame.display.set_mode((400,400)) pygame.display.set_caption("Font Test") dialogue_font = pygame.font.SysFont('arial', 40) dialogue = dialogue_font.render("Hello world", True, (255, 255, 255)) while True : for event in pygame.event.get(): if event.type == QUIT: pygame.quit() sys.exit() #Where text is displayed DISPLAYWINDOWSIZE.blit(dialogue, (10,0)) pygame.display.update()