Structures/FontData

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Defaults)
m (Added the max size)
Line 5: Line 5:
  
 
The length is limited to 31 characters maximum.|"Arial"
 
The length is limited to 31 characters maximum.|"Arial"
}}{{StructureField|boolean|extended|Allow the font to display glyphs that are outside of the Latin-1 range. Unicode code points above 0xFFFF are not supported.|false}}{{StructureField|number|size|The font height in pixels|13}}{{StructureField|number|weight|The font boldness|500}}{{StructureField|number|blursize|The strength of the font blurring
+
}}{{StructureField|boolean|extended|Allow the font to display glyphs that are outside of the Latin-1 range. Unicode code points above 0xFFFF are not supported.|false}}{{StructureField|number|size|The font height in pixels
 +
 
 +
''Maximum:'' 128|13
 +
}}{{StructureField|number|weight|The font boldness|500}}{{StructureField|number|blursize|The strength of the font blurring
 
Must be > 0 to work|0
 
Must be > 0 to work|0
 
}}{{StructureField|number|scanlines|The "scanline" interval
 
}}{{StructureField|number|scanlines|The "scanline" interval

Revision as of 19:40, 2 July 2016

Used for surface.CreateFont.



Type Name Description
string font

The font source. This must be the actual name of the font, not a file name. Font files are stored in resource/fonts/

The length is limited to 31 characters maximum.

Default: "Arial"

boolean extended

Allow the font to display glyphs that are outside of the Latin-1 range. Unicode code points above 0xFFFF are not supported.

Default: false

number size

The font height in pixels

Maximum: 128

Default: 13

number weight

The font boldness

Default: 500

number blursize

The strength of the font blurring Must be > 0 to work

Default: 0

number scanlines

The "scanline" interval Must be > 1 to work. This setting is per blursize per font - so if you create a font using "Arial" without scanlines, you cannot create an Arial font using scanlines with the same blursize

Default: 0

boolean antialias

Smooth the font

Default: true

boolean underline

Add an underline to the font

Default: false

boolean italic

Make the font italic

Default: false

boolean strikeout

Add a strike through

Default: false

boolean symbol

Enables the use of symbolic fonts such as Webdings

Default: false

boolean rotary

Seems to add a line in the middle of each letter

Default: false

boolean shadow

Add shadow casting to the font

Default: false

boolean additive

Additive rendering

Default: false

boolean outline

Add a black outline to the font

Default: false

Personal tools
Navigation