Source

pygame / lib / freetype.py

Diff from to

File lib/freetype.py

-"""Enhanced Pygame module for loading and rendering font faces"""
+"""Enhanced Pygame module for loading and rendering computer fonts"""
 
 from pygame._freetype import *
 from pygame.sysfont import match_font, get_fonts, SysFont as _SysFont
 
        if optional contructor is provided, it must be a function with
        signature constructor(fontpath, size, bold, italic) which returns
-       a Font instance. If None, a pygame.freetype.Face object is created.
+       a Font instance. If None, a pygame.freetype.Font object is created.
     """
     if constructor is None:
         def constructor(fontpath, size, bold, italic):
-            return Face(fontpath, size)
+            font = Font(fontpath, size)
+            font.strong = bold
+            font.oblique = italic
+            return font
 
     return _SysFont(name, size, bold, italic, constructor)