|
R-Type
Distributed multiplayer game engine in C++
|
Functions | |
| int | EstimateTextWidth (const std::string &text, int fontSize) |
| Estimate the width of text in pixels. | |
|
inline |
Estimate the width of text in pixels.
This is a rough approximation based on the assumption that each character is approximately 55% of the font size in width.
| text | Text string to measure |
| fontSize | Font size in pixels |
Definition at line 27 of file TextUtils.hpp.
Referenced by Game::LoginMenu::Render(), UI::RaylibButton::Render(), and Rendering::RenderHUD().