draw.GetFontHeight

From Garry's Mod
Jump to: navigation, search
 draw.GetFontHeight( )

Description

Returns the height of the specified font in pixels.

NOTE

This is a rendering function that requires a 2D rendering context.
This means that it will only work in hooks with a 2D rendering context.

Arguments

string font

Name of the font to get the height of.

Returns

number

The font height
Personal tools
Navigation