MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / SizeOf_

Method SizeOf_

ogsr_engine/xr_3da/GameFont.cpp:363–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361void CGameFont::OutSkip(float val) { fCurrentY += val * CurrentHeight_(); }
362
363float CGameFont::SizeOf_(const char cChar)
364{
365 float x = GetCharTC((u16)(u8)(cChar)).z;
366 if (IsMultibyte() && IsSpaceCharacter((u16)(u8)(cChar)))
367 x += GetfXStep();
368 return x * vInterval.x * GetWidthScale();
369}
370
371float CGameFont::SizeOf_(const u16 cChar)
372{

Callers 11

cut_string_by_lengthFunction · 0.80
AdjustWidthToTextMethod · 0.80
GetLongestLengthMethod · 0.80
DrawMethod · 0.80
ParseTextMethod · 0.80
DrawCursorMethod · 0.80
AddCharMethod · 0.80
OutFontMethod · 0.80
OnRenderMethod · 0.80
DrawBackgroundsMethod · 0.80
RenderFragmentMethod · 0.80

Calls 5

IsMultibyteFunction · 0.85
IsSpaceCharacterFunction · 0.85
GetfXStepFunction · 0.85
mbhMulti2WideFunction · 0.85
xr_strlenFunction · 0.50

Tested by

no test coverage detected