I've downloaded a font called redline.ttf and I want to use it in pygame. I just want to print text on my screen. I've found a basic font called 'freesansbold.ttf' in folder pygame -> lib. I've put my downloaded font in the same folder but when I use
fontObj = pygame.font.Font('redline.ttf', 16)
textSurfaceObj = fontObj.render('some text', True, (240,240,240), (115,117,117))
textRectObj = textSurfaceObj.get_rect()
textRectObj.center = (350, 30)
DISPLAYSURF.blit(textSurfaceObj, textRectObj)
pygame.display.update()
i get this error:
OSError: unable to read font file 'redline.ttf'
Is it possible to use the redline font?