How to calculate the size and position of text (in pixels) that is presented using text display
I'm currently attempting to calculate the size and position of text presented using the form text display.
Our experiment consists of a loop which presents a sentence to participants (the sentence contents and size change every loop). Importantly, we use San Serif font, meaning that the size of each individual letter varies.
I want to calculate the size and position (in pixels) of each word in our sentences and then save these.
Any help would be hugely appreciated as I'm currently very stuck with this!