You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pygame 2.5.2 (SDL 2.28.3, Python 3.11.2) on Raspberry Pi OS
When running get_metrics() on a font object, the resulting list of tuples contains the metrics values and the min_y value (which is the third value in the tuple) is sometimes a huge positive integer. Assuming from the similarity with pygame.font.Font.metrics() this value should be a small negative integer. It looks like the value is just wrongly interpreted as unsigned int instead of signed int.
pygame.font.Font.metrics() for a letter 'd' gives this tuple (3, 50, -3, 73, 56)
pygame.freetype.Font.get_metrics() for 'd' gives this tuple (3, 50, 4294967293, 73, 56.0, 0.0)
The number 4294967293 when interpreted as signed is -3.
pygame 2.5.2 (SDL 2.28.3, Python 3.11.2) on Raspberry Pi OS
When running get_metrics() on a font object, the resulting list of tuples contains the metrics values and the min_y value (which is the third value in the tuple) is sometimes a huge positive integer. Assuming from the similarity with pygame.font.Font.metrics() this value should be a small negative integer. It looks like the value is just wrongly interpreted as unsigned int instead of signed int.
pygame.font.Font.metrics() for a letter 'd' gives this tuple (3, 50, -3, 73, 56)
pygame.freetype.Font.get_metrics() for 'd' gives this tuple (3, 50, 4294967293, 73, 56.0, 0.0)
The number 4294967293 when interpreted as signed is -3.
The text was updated successfully, but these errors were encountered: