Garry's Mod Wiki

draw.GetFontHeight

number draw.GetFontHeight( string font )

Description

Returns the height of the specified font in pixels.

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

Page Links


Special Pages


Wikis

?

Render Time: 37ms

DB GetPage 5
Generate Html 4
SaveChanges (1) 12
Render Body 0
Render Sidebar 13