Guad/NativeUI

Wrong arrow location when content is Chinese

MaoliWolf opened this issue · 5 comments

Looks like this is related to #74.

This is a general problem with characters outside of the English Alphabet (like Ñ, 同, 左)

At the end, this is not related to #74 or #71, but the cause is similar: we are not calculating the width correctly.

@cces1004406 If possible, can you post the string on the arrows that has the problem?

左前門

So I've been working on a patch for the last 5 hours, and I have tried the following as items:

  • グランド・セフト・オートV (Grand Theft Auto V in Japanese)
  • 俠盜獵車手V (Grand Theft Auto V in Chinese)
  • 左前門 (Posted by @cces1004406 )

And so far it works:

image
image

So I'm closing because it appears that has been fixed, let me know if you find other bugs.