()
| 147 | |
| 148 | /// <inheritdoc /> |
| 149 | public override Float2 GetTextSize() |
| 150 | { |
| 151 | var font = GetFont(); |
| 152 | if (font == null) |
| 153 | { |
| 154 | return Float2.Zero; |
| 155 | } |
| 156 | |
| 157 | return font.MeasureText(ConvertedText(), ref _layout); |
| 158 | } |
| 159 | |
| 160 | private Font GetFont() |
| 161 | { |
nothing calls this directly
no test coverage detected