Guad / NativeUI

UI library for Grand Theft Auto V
MIT License
271 stars 113 forks source link

Wrong arrow location when content is Chinese #111

Closed MaoliWolf closed 5 years ago

MaoliWolf commented 5 years ago

image

justalemon commented 5 years ago

Looks like this is related to #74.

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

justalemon commented 5 years ago

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

justalemon commented 5 years ago

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

MaoliWolf commented 5 years ago

左前門

justalemon commented 5 years ago

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

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.