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

Function createPlatformFont

Engine/source/platformWin32/winFont.cpp:119–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119PlatformFont *createPlatformFont(const char *name, dsize_t size, U32 charset /* = TGE_ANSI_CHARSET */)
120{
121 PlatformFont *retFont = new WinFont;
122
123 if(retFont->create(name, size, charset))
124 return retFont;
125
126 delete retFont;
127 return NULL;
128}
129
130WinFont::WinFont() : mFont(NULL)
131{

Callers 2

loadMethod · 0.50
createMethod · 0.50

Calls 1

createMethod · 0.45

Tested by

no test coverage detected