I am trying to draw some text using pygame.freetype.Font however for this font to look good in the context it's in, I want it to have a custom letter-spacing/kerning. By this I mean the ability to change the size of the space between individual letters.
This is the current code I'm using to generate and render the code
d_la_cruz = pygame.freetype.Font(file= _font_dir+"/d-la-cruz-font.ttf")
text_image, text_rect = d_la_cruz.render(text="SQUARES", size=190, fgcolor=Settings.color_menu_title_outline.to_tuple())
text_rect.center = (816, 171)
screen.blit(text_image, text_rect)
Current This is what it currently looks like with that code but the reference I made in gimp looks like this Gimp version.
From what I've found so far, I can't find any easy way to change this and the only other way I can think is individually drawing each letter and manually setting their positions slightly spaced apart. I'd rather not do this for readability and performance so I'd prefer an alternative solution.
Note: I am also using PIL at points in this project so I wouldn't entirely be opposed to solutions using that but I'd rather keep it in pygame if possible
Full Source Code: code