2024-03-27 10:05 PM - last edited on 2024-09-17 01:11 PM by Doreena Deng
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.
2024-04-10 07:58 AM
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
2024-04-10 07:58 AM
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
2024-04-12 01:26 PM - edited 2024-04-12 01:26 PM
Ah, surely will be useful for what I'm trying to do, thanks Bern!