Method
GetCharPosition
(int index, out float height)
Source from the content-addressed store, hash-verified
| 189 | |
| 190 | /// <inheritdoc /> |
| 191 | public override Float2 GetCharPosition(int index, out float height) |
| 192 | { |
| 193 | var font = GetFont(); |
| 194 | if (font == null) |
| 195 | { |
| 196 | height = Height; |
| 197 | return Float2.Zero; |
| 198 | } |
| 199 | |
| 200 | height = font.Height / DpiScale; |
| 201 | return font.GetCharPosition(ConvertedText(), index, ref _layout); |
| 202 | } |
| 203 | |
| 204 | /// <inheritdoc /> |
| 205 | public override int HitTestText(Float2 location) |
Tested by
no test coverage detected