Garry's Mod Wiki

Garry's Mod Wiki

  number draw.GetFontHeight( string font )

Description

Returns the height of the specified font in pixels. This is equivalent to the height of the character W. See surface.GetTextSize.

This is a rendering function that requires a 2d rendering context.

This means that it will only work in 2d Rendering Hooks.

Arguments

1 string font
Name of the font to get the height of.

Returns

1 number
The font height

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...