| 2238 | } |
| 2239 | |
| 2240 | int AdjustFontSize(const char *pText, int TextLength, int MaxSize, int MaxWidth) const override |
| 2241 | { |
| 2242 | const int WidthOfText = CalculateTextWidth(pText, TextLength, 0, 100); |
| 2243 | |
| 2244 | int FontSize = 100.0f / ((float)WidthOfText / (float)MaxWidth); |
| 2245 | if(MaxSize > 0 && FontSize > MaxSize) |
| 2246 | FontSize = MaxSize; |
| 2247 | |
| 2248 | return FontSize; |
| 2249 | } |
| 2250 | |
| 2251 | float GetGlyphOffsetX(int FontSize, char TextCharacter) const override |
| 2252 | { |
no outgoing calls
no test coverage detected