- in locale/en/all.cfg:
Code: Select all
[font]
my-font-name=path/to/font.ttfCode: Select all
data.extend({
{
type = "font",
name = "my-font-name",
from = "my-font-name",
size = 14
}
})Code: Select all
Error when opening C:/Program Files\Factorio\data\core\path/to/font.ttf for reading: No such file or directoryIf I move my font to C:\Program Files\Factorio\data\core\fonts directory and set my locale file like this:
Code: Select all
[font]
my-font=fonts/my-font.ttf
