From dff2a28aabb490ddedb8d575d61624208e8ce997 Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Sun, 16 Oct 2016 19:56:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A9=BA=E6=A0=BC=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 对于纯英文的文本,空格太宽感觉不好看。 --- src/font/freetype.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/font/freetype.c b/src/font/freetype.c index 8bba64dc..4cfb454b 100644 --- a/src/font/freetype.c +++ b/src/font/freetype.c @@ -212,6 +212,7 @@ static int FreeType_Render( LCUI_FontBitmap *bmp, wchar_t ch, /* 如果是空格则将位图内容清空 */ if( has_space ) { memset( bmp->buffer, 0, size ); + bmp->advance.x = bmp->advance.x / 2 + 1; } return ret; }