MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getStrWidthPrecise

Method getStrWidthPrecise

Engine/source/gfx/gFont.cpp:412–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412U32 GFont::getStrWidthPrecise(const UTF8* in_pString)
413{
414 AssertFatal(in_pString != NULL, "GFont::getStrWidth: String is NULL, height is undefined");
415 // If we ain't running debug...
416 if (in_pString == NULL)
417 return 0;
418
419 return getStrNWidthPrecise(in_pString, dStrlen(in_pString));
420}
421
422//-----------------------------------------------------------------------------
423U32 GFont::getStrNWidth(const UTF8 *str, U32 n)

Callers 5

gFont.cppFile · 0.80
autoSizeMethod · 0.80
resizeMethod · 0.80
renderJustifiedTextMethod · 0.80
clipTextMethod · 0.80

Calls 1

dStrlenFunction · 0.50

Tested by

no test coverage detected