Returns the font character image with the given index.
The index of the font character.
The font character image.
Returns the number of characters.
The number of characters.
Creates and returns a new canvas containing all characters of the font. 16 characters per row.
The created canvas.
Creates and returns a font image data URL. 16 font characters per row.
Optional
type: stringOptional image mime type. Defaults to image/png.
Optional
quality: numberOptional quality parameter for encoder. For image/jpeg this is the image quality between 0 and 1 with a default value of 0.92.
The created data URL.
Creates and returns a HTML image of the font. 16 font characters per row.
Optional
type: stringOptional image mime type. Defaults to image/png.
Optional
quality: numberOptional quality parameter for encoder. For image/jpeg this is the image quality between 0 and 1 with a default value of 0.92.
The created HTML image.
Static
fromParses a font from the given array and returns it.
The array with the colorf.fnt file content to parse.
The parsed font.
Static
fromReads the color font from the given blob and returns it.
The COLORF.FNT blob to read.
The read font.
Container for the 172 font characters of the COLORF.FNT file.