Love2D APIFontModuleOn this pageFontModule Description: Allows you to work with fonts. newImageRasterizer Type: Function. Description: Creates a new Image Rasterizer. Overload details: Create an ImageRasterizer from the image data. Signature: newImageRasterizer: function(image_data: ImageData, glyphs: string, extra_spacing?: integer, dpi_scale?: number): Rasterizer Parameters: ParameterTypeDescriptionimage_dataImageDataFont image data.glyphsstringString containing font glyphs.extra_spacingintegerFont extra spacing. (Default: 0.)dpi_scalenumberFont DPI scale. (Default: 1.) Returns: Return TypeDescriptionRasterizerThe rasterizer. newBMFontRasterizer Type: Function. Description: Creates a new BMFont Rasterizer. Signature: newBMFontRasterizer: function(filename_or_file_data: string | FileData, images?: ImageData | string | FileData | {ImageData | string | FileData}, dpi_scale?: number): Rasterizer Parameters: ParameterTypeDescriptionfilename_or_file_datastring or FileDataThe image data containing the drawable pictures of font glyphs. Depending on theimagesImageData or string or FileData or {ImageData or string or FileData}The sequence of glyphs in the ImageData.dpi_scalenumberDPI scale. (Default: 1.) Returns: Return TypeDescriptionRasterizerThe rasterizer. newTrueTypeRasterizer Type: Function. Description: Creates a new TrueType Rasterizer. Signature: newTrueTypeRasterizer: function(size?: number, hinting?: string, dpi_scale?: number): Rasterizer Parameters: ParameterTypeDescriptionsizenumberThe font size. (Default: 12.)hintingstringTrue Type hinting mode. (Default: 'normal'.)dpi_scalenumberThe font DPI scale. (Default: love.window.getDPIScale().) Returns: Return TypeDescriptionRasterizerrasterizer — The rasterizer. newTrueTypeRasterizer Type: Function. Description: Creates a new TrueType Rasterizer. Signature: newTrueTypeRasterizer: function(filename_or_data: string | Data, size?: number, hinting?: string, dpi_scale?: number): Rasterizer Parameters: ParameterTypeDescriptionfilename_or_datastringDatasizenumberThe font size. (Default: 12.)hintingstringTrue Type hinting mode. (Default: 'normal'.)dpi_scalenumberThe font DPI scale. (Default: love.window.getDPIScale().) Returns: Return TypeDescriptionRasterizerrasterizer — The rasterizer. newRasterizer Type: Function. Description: Creates a new Rasterizer. Signature: newRasterizer: function(size?: number, hinting?: string, dpi_scale?: number): Rasterizer Parameters: ParameterTypeDescriptionsizenumberThe font size. (Default: 12.)hintingstringTrue Type hinting mode. (Default: 'normal'.)dpi_scalenumberThe font DPI scale. (Default: love.window.getDPIScale().) Returns: Return TypeDescriptionRasterizerrasterizer — The rasterizer. newRasterizer Type: Function. Description: Creates a new Rasterizer. Signature: newRasterizer: function(filename_or_data: string | Data, size?: number, hinting?: string, dpi_scale?: number): Rasterizer Parameters: ParameterTypeDescriptionfilename_or_datastringDatasizenumberThe font size. (Default: 12.)hintingstringTrue Type hinting mode. (Default: 'normal'.)dpi_scalenumberDPI scale. (Default: 1.) Returns: Return TypeDescriptionRasterizerrasterizer — The rasterizer. newGlyphData Type: Function. Description: Creates a new GlyphData. Signature: newGlyphData: function(rasterizer: Rasterizer, glyph: string | integer): GlyphData Parameters: ParameterTypeDescriptionrasterizerRasterizerThe Rasterizer containing the font.glyphstring or integerThe character code of the glyph.