MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Text_Width

Function Text_Width

code/ui/ui_main.cpp:3930–3939  ·  view source on GitHub ↗

================= Text_Width ================= */

Source from the content-addressed store, hash-verified

3928=================
3929*/
3930int Text_Width(const char *text, float scale, int iFontIndex)
3931{
3932 // temp code until Bob retro-fits all menus to have font specifiers...
3933 //
3934 if ( iFontIndex == 0 )
3935 {
3936 iFontIndex = uiInfo.uiDC.Assets.qhMediumFont;
3937 }
3938 return ui.R_Font_StrLenPixels(text, iFontIndex, scale);
3939}
3940
3941/*
3942=================

Callers 1

UI_OwnerDrawWidthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected