The text boundary rectangle returned by freetype.Font.get_rect() should match the boundary of the same text rendered directly to a surface. This permits accurate text positioning. To work properly, get_rect() should calculate the text boundary to reflect text style, such as underline. Instead, it ignores the style settings for the Font object when the style argument is omitted.
In the get_rect() C function _ftfont_getrect() of _freetype.c, the style variable defaults to 0 instead of FT_STYLE_DEFAULT. Consequently, by default, no styles are used.
A unit test which reproduces the bug will be added to freetype_test.py