Prototype/Font: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.17)
(Set prototype parent)
Line 1: Line 1:
{{Prototype parent}}
== Basics ==
== Basics ==
Prototype type: '''font'''
Prototype type: '''font'''

Revision as of 14:54, 24 July 2019

Prototype definitions » Prototype/Font


Basics

Prototype type: font

Fonts are used in all gui in the game.

Mandatory properties

type

Type: Types/string

Must be "font".

name

Type: Types/string

Name of the font.

size

Type: Types/int32

Size of the font.

from

Type: Types/string

Optional properties

spacing

Type: Types/float

Default: 0

border

Type: Types/bool

Default: false

Whether the font has a border.

filtered

Type: Types/bool

Default: false

border_color

Type: Types/Color

The color of the border, if enabled.

Example

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