Prototype/Font

From Official Factorio Wiki
Revision as of 13:01, 23 January 2018 by Bilka (talk | contribs) (overhaul to include Prototype)
Jump to navigation Jump to search

Basics

Fonts are used in all gui in the game.

Mandatory properties

Inherits all properties from Prototype.

size

Type: Types/uint

Size of the font.

from

Type: Types/string

Optional properties

border

Type: Types/bool

Whether the font has a border.

border_color

Type: Types/color

The color of the border, if enabled.

Example

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