2024-03-27 10:05 PM - edited 2024-03-27 10:06 PM
Hi
Given the nth character in a text element, is it possible to easily get that characters position in world coordinates?
It could probably be calculated from a combination of API_TextType, API_ParagraphType and maybe API_FontType but it would be tricky to cover every case. Is there an easy way to do it? I could not find anything readily available in the API documentation.
Solved! Go to Solution.
3 weeks ago
Hi Benji,
I don't know of any readily available function. I only found ACAPI_Element_GetTextLineLength. With that it might be worth a try to get the line length of the substring ending just before the character you are interested in. That could at least simplify that part.
Hope that helps,
Bernd
3 weeks ago
Hi Benji,
I don't know of any readily available function. I only found ACAPI_Element_GetTextLineLength. With that it might be worth a try to get the line length of the substring ending just before the character you are interested in. That could at least simplify that part.
Hope that helps,
Bernd
2 weeks ago - last edited 2 weeks ago
Ah, surely will be useful for what I'm trying to do, thanks Bern!