surface.GetTextSize
Örnek
Hello World metninin Trebuchet24 yazı tipindeki boyutunu yazdırır.
surface.SetFont( "Trebuchet24" )
local text = "Hello World"
local width, height = surface.GetTextSize( text )
print("Text width: " .. width .. ", text height: " .. height)
Çıktı:
Text width: 100, text height: 24
Örnek
Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord