From 6768401e315da091400ca882aa2ac49ba133a2c5 Mon Sep 17 00:00:00 2001 From: pavelyakov Date: Fri, 21 Aug 2015 11:13:10 +0000 Subject: [PATCH] font.h: fixed offset italic git-svn-id: svn://kolibrios.org@5758 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/lib/font.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/cmm/lib/font.h b/programs/cmm/lib/font.h index 963a1b7f0c..c52512b59f 100644 --- a/programs/cmm/lib/font.h +++ b/programs/cmm/lib/font.h @@ -122,10 +122,10 @@ FONT font = 0; size.width++; IF(italic) { - size.w_italic = -size.height/3; - size.offset_i = -size.w_italic/size.height; - size.offset_x+=size.w_italic; - size.width += math.ceil(size.w_italic+4); + size.w_italic = size.height/3; + size.offset_i = size.w_italic/size.height; + size.width += size.w_italic; + size.w_italic = -size.w_italic; } return size.width; }