How can I get the width of a character in a specific font?
I am implementing a Custom keyboard to enter text.
Now I want to have
- a cursor to be displayed at the current location
- reposition the cursor by touching the text
- insert text at that position
I achieved to display a cursor, but the position has to be adapted in relation to the text length which depends on the font width of the characters in the text (I have Calibri, which is not monotype).
How can I get the font width of a single character?
And how can I insert text at the current position instead of cutting the text after that insert-position?
Thank you for any suggestions!
