s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Graphics
Graphics
MeasureText
chevron_left
Graphics
class
Graphics
search
Static Properties
data_object
Attributes
data_object
CameraPosition
data_object
CameraRotation
data_object
CameraTransform
data_object
FieldOfView
data_object
Frustum
data_object
IsActive
data_object
LayerType
data_object
RenderTarget
data_object
Viewport
Static Methods
functions
Blit
functions
Clear
functions
CopyTexture
functions
Draw
functions
DrawIcon
functions
DrawModel
functions
DrawModelInstanced
functions
DrawModelInstancedIndirect
functions
DrawQuad
functions
DrawRoundedRectangle
functions
DrawText
functions
FlushGPU
functions
GenerateMipMaps
functions
GrabDepthTexture
functions
GrabFrameTexture
functions
MeasureText
functions
Render
remove_circle
RenderToTexture
functions
ResourceBarrierTransition
functions
SetupLighting
functions
UavBarrier
MeasureText
Measure how big some text will be, without having to render it
method
static
2 overloads
Overloads
1
2
static
Rect
MeasureText
(
in
Rect
position
,
string
text
,
string
fontFamily
,
float
fontSize
,
float
fontWeight
,
TextFlag
flags
)
Parameters
Name
Type
Description
in
position
Rect
text
string
fontFamily
= Roboto
string
fontSize
= 20
float
fontWeight
= 450
float
flags
= 132
TextFlag
Returns
Type
Description
Rect
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.