Factorio Prototype DocsVersion 2.1.14 Image

FontPrototype - Prototype Docs

FontPrototype 'font' Example code

Fonts are used in all GUIs in the game.

Properties

type :: "font"
name :: string

Name of the font.

Name of the font.

size :: int32

Size of the font.

Size of the font.

from :: string

The name of the fonts .ttf descriptor. [...]

The name of the fonts .ttf descriptor. [...]

spacing optional :: float
border optional :: boolean

Whether the font has a border.

Whether the font has a border.

filtered optional :: boolean
border_color optional :: Color

The color of the border, if enabled.

The color of the border, if enabled.

Properties

type :: "font"Image

name :: stringImage

Name of the font.

size :: int32Image

Size of the font.

from :: stringImage

The name of the fonts .ttf descriptor. This descriptor must be defined in the locale info.json. Refer to data/core/locale/_language_/info.json for examples.

spacing :: float optional Image

Default: 0

border :: boolean optional Image

Default: false

Whether the font has a border.

filtered :: boolean optional Image

Default: false

border_color :: Color optional Image

The color of the border, if enabled.

Example Image

{
  type = "font",
  name = "default-button",
  from = "default-bold",
  size = 18
}
ImageFulltext search

Image Prototypes

Image Types

Image Defines

ImageFulltext search for