修改空格宽度

对于纯英文的文本,空格太宽感觉不好看。
This commit is contained in:
Liu Chao
2016-10-16 20:26:16 +08:00
parent cc33e00246
commit dff2a28aab
+1
View File
@@ -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;
}