mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
修改空格宽度
对于纯英文的文本,空格太宽感觉不好看。
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user