Prototype/Font: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(overhaul to include Prototype)
(This doesnt inherit from prototype... isnt that great?)
Line 3: Line 3:


== Mandatory properties ==
== Mandatory properties ==
Inherits all properties from [[Prototype]].
 
=== type ===
'''Type''': [[Types/string]]
 
Must be "font".
 
=== name ===
'''Type''': [[Types/string]]
 
Name of the font.


=== size ===
=== size ===

Revision as of 17:10, 5 February 2018

Basics

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/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
  },