jahu00 / RikaiKyun2Research

Preproduction research for a new version of RikaiKyun
0 stars 0 forks source link

Text rendering and click detection #2

Open jahu00 opened 1 year ago

jahu00 commented 1 year ago

The biggest hurdle is detecting the character that was clicked/touched. With a bit of trickery, I was able to do this in WebView in the past, but without WebView, I would have to render the text myself letter by letter to be sure what letter was clicked/touched. Since I'm working with monospace, rendering shouldn't be toot tricky.

I can probably use Skia for this.

jahu00 commented 1 year ago

I can render text with SKIA (tested) and if I rendered it myself, I know what is where, Click detection might require some work as I need to take scaling into account (on android devices).