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

Method getStrWidthPrecise

Engine/source/gfx/gFont.cpp:411–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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