PHP | imageloadfont() Function
The imageloadfont() function is an inbuilt function in PHP which is used to load a new font. GDF fonts are supported which can be downloaded from here.
int imageloadfont( string $file )
Parameters: This function accepts a single parameter $file which holds the font.
Return Value: This function returns font identifier which is always bigger than 5 to avoid conflicts with built-in fonts or FALSE on errors.
Below given programs illustrate the imageloadfont() function in PHP:
Program 1 (Writing on a drawing):
Program 2 (Writing on an image):