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
- 
type pgFontObject¶
- The - pygame.freetype.Fontinstance C struct.
- 
type 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 to- 0unless the file contains multiple, indexed, fonts. On error raise a Python exception and return- NULL.
- 
int pgFont_Check(PyObject *x)¶
- Return true if x is a - pygame.freetype.Fontinstance. Will return false for a subclass of- Font. This is a macro. No check is made that x is not- NULL.
- 
int pgFont_IS_ALIVE(PyObject *o)¶
- Return true if - pygame.freetype.Fontobject- ois an open font file. This is a macro. No check is made that o is not- NULLor not a- Fontinstance.
Edit on GitHub
