From c11a7f7459ad04b41fabb081c084214e45a91e34 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Tue, 17 Sep 2024 12:58:15 -0500 Subject: [PATCH] fix kerning on html5 --- textbox/TextboxLine.hx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/textbox/TextboxLine.hx b/textbox/TextboxLine.hx index 165d209..4609a1c 100644 --- a/textbox/TextboxLine.hx +++ b/textbox/TextboxLine.hx @@ -35,15 +35,7 @@ class TextBoxLine } characters.push(character); innerText.text += character.text; - #if js - // Legnth calculation wouldn't work properly if I haven't done this. - if(character.text.isSpace(0)) - textWidth += character.width + characterSpacingHack; - else - textWidth = innerText.textField.textWidth; - #else textWidth = innerText.textField.textWidth; - #end } // Releases its characters to pass along or put them back into pool.