Comment 10 for bug 1001033

Revision history for this message
Sam Bull (dreamsorcerer) wrote :

Yes, it's looking more likely to be a problem with the rendering software, but we're still unsure if this is in Pygame, SDL or something else. We also don't know what is different about this font to cause the bug.

You can test some code with the little script below. You need to 'apt-get install python-pygame' first. It's also interesting to look at the metrics stuff, which is even more confusing (http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html#SEC38). You can also look at the input box in my project at https://launchpad.net/simplegc.

import pygame
import string

pygame.font.init()

m = pygame.font.SysFont("FreeMono", 16)
#m = pygame.font.Font("/path/to/file.ttf", 16)
#print zip(m.metrics(string.letters), string.letters)
for c in string.letters:
    print "%s:%s, " % (c, m.render(c, False, (0,0,0)).get_size()[0]),