KnightOnline icon indicating copy to clipboard operation
KnightOnline copied to clipboard

Wordwrapping is broken

Open madpew opened this issue 8 years ago • 3 comments

Wordwrapping is not working correctly and needs to be reworked. The code in place is a mess. "As is" the code is breaking the words mid-word instead of maintaining word-boundaries. e.g.: tooltips from manapotions on the skillbar

Potion of sag acity

instead of:

Potion of sagacity

madpew avatar Sep 11 '17 07:09 madpew

The reason for this is it was written with only Korean in mind. It doesn't wrap "words" so much as it wraps characters, presumably because it makes more sense with how Korean works.

twostars avatar Sep 11 '17 08:09 twostars

It does work correctly in the binary client (1299) and shouldn't be too hard to get right, but probably needs a rewrite of that function or someone who can read into that mess :)

madpew avatar Sep 11 '17 09:09 madpew

Oh, yes -- for sure. It needs to be rewritten with English in mind. Was just trying to provide insight on why it is as it is in its present state :)

twostars avatar Sep 11 '17 09:09 twostars