Structures/FontData

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Added a note: 31 characters max in font name)
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|{{NextUpdate}}
 +
 +
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|number|size|The font height in pixels|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

Revision as of 14:52, 16 April 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
Next Update Change

This feature is only available in the next update.

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

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

boolean italic

Make the font italic

boolean strikeout

Add a strike through

boolean symbol

Enables the use of symbolic fonts such as Webdings

boolean rotary

Seems to add a line in the middle of each letter

boolean shadow

Add shadow casting to the font

boolean additive

Additive rendering

boolean outline

Add a black outline to the font

Personal tools
Navigation