| 195 | } |
| 196 | |
| 197 | int GuiText::GetTextWidth() |
| 198 | { |
| 199 | if(!text) |
| 200 | return 0; |
| 201 | |
| 202 | if(currentSize != size) |
| 203 | { |
| 204 | ChangeFontSize(size); |
| 205 | |
| 206 | if(!fontSystem[size]) |
| 207 | fontSystem[size] = new FreeTypeGX(size); |
| 208 | |
| 209 | currentSize = size; |
| 210 | } |
| 211 | return fontSystem[size]->getWidth(text); |
| 212 | } |
| 213 | |
| 214 | void GuiText::SetWrap(bool w, int width) |
| 215 | { |
nothing calls this directly
no test coverage detected