Import font data

Open the fonts data module you created earlier.

Add your font like this:

return {
	MyFont = -- Paste converted XML here.
}

Add your image id for the font in the same table as the Size and Characters, like this:

MyFont = {
	Image = 0, -- Image id.
	-- Converted XML:
	Size = 32,
	Characters = {
		
	}
}

For fonts that have multiple weights and/or styles, it’s recommended to use the following format:

return {
	-- Fonts.
	MyFont = {
		-- Weights.
		Bold = {
			-- Styles.
			Italic = {
				Image = 0, -- Image id.
				-- Converted XML:
				Size = 32,
				Characters = {
					
				}
			}
		}
	}
}
circle-check

Last updated