FontData
Description
Used for surface.CreateFont.
Members
string font
The font source. Custom font files are stored in resource/fonts/.
The length is limited to 31 characters maximum.
This must be the actual 'nice' font, not a file name. (Finding the Font Name)
This also cannot be an already registered font, i.e. you cannot base your font from any of the Default Fonts
Default: "Arial"
boolean extended
Allow the font to display glyphs that are outside of the Latin-1 range. Unicode code points above 0xFFFF are not supported.
Default: false
number scanlines
The "scanline" interval
Must be > 1 to work. This setting is per blursize per font - so if you create a font using "Arial" without scanlines, you cannot create an Arial font using scanlines with the same blursize
Default: 0
boolean outline
Add a black outline to the font.
This does not work well with antialias, and only allows black 1-pixel outlines. It may be preferable to not use this parameter, and instead use draw.SimpleTextOutlined when drawing text that you want outlined.
Default: false