import pygame
pygame.init()
# creating a new font using a ttf file
font = pygame.font.Font('font_path', 69)
text_surf = font.render('Hello world!', True, 'Black')
text_rect = text_surf.get_rect(center=(420, 150))
screen.blit(text_surf, text_rect)
font = pygame.font.SysFont(None, 24)
img = font.render('hello', True, BLUE)
screen.blit(img, (20, 20))