src_c/_freetype.c¶
This extension module defines Python type pygame.freetype.FontCreate a new Font instance from a supported font file..
Header file: src_c/include/pygame_freetype.h
- 
pgFontObject¶ The
pygame.freetype.Fontinstance C struct.
- 
pgFont_Type¶ The
pygame.freetype.FontPython type.
- 
PyObject* 
pgFont_New(const char *filename, long font_index)¶ Open the font file with path filename and return a new new
pygame.freetype.Fontinstance for that font. Set font_index to0unless the file contains multiple, indexed, fonts. On error raise a Python exception and returnNULL.
- 
int 
pgFont_Check(PyObject *x)¶ Return true if x is a
pygame.freetype.Fontinstance. Will return false for a subclass ofFont. This is a macro. No check is made that x is notNULL.
- 
int 
pgFont_IS_ALIVE(PyObject *o)¶ Return true if
pygame.freetype.Fontobjectois an open font file. This is a macro. No check is made that o is notNULLor not aFontinstance.
Edit on GitHub