From 26ac978fd65ff005e55a8e1ad2fba192ae52a009 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Tue, 13 Jun 2017 07:50:59 -0400 Subject: [PATCH] gamnit: fix actually using the attribute partial_line_skip MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/gamnit/bmfont.nit | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/gamnit/bmfont.nit b/lib/gamnit/bmfont.nit index a4ab1fb..8ad2dce 100644 --- a/lib/gamnit/bmfont.nit +++ b/lib/gamnit/bmfont.nit @@ -356,12 +356,11 @@ class BMFontAsset var dy = 0.0 var line_height = desc.line_height + var partial_line_skip = line_height * partial_line_mod.to_f var prev_char = null for c in text do - var partial_line_mod = 0.4 - # Special characters if c == '\n' then dy -= line_height.to_f @@ -369,11 +368,11 @@ class BMFontAsset prev_char = null continue else if c == pld then - dy -= line_height * partial_line_mod.to_f + dy -= partial_line_skip prev_char = null continue else if c == plu then - dy += line_height * partial_line_mod.to_f + dy += partial_line_skip prev_char = null continue else if c.is_whitespace then -- 1.7.9.5