================= Text_Width ================= */
| 3928 | ================= |
| 3929 | */ |
| 3930 | int 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 | ================= |