mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-23 16:43:58 +08:00
disable xMax+=2 for SUBPIXEL
This commit is contained in:
@@ -400,9 +400,11 @@ get_glyph_bbox (LOGFONT* logfont, DEVFONT* devfont,
|
||||
|
||||
FT_Glyph_Get_CBox (ft_inst_info->glyph, ft_glyph_bbox_pixels, &bbox);
|
||||
|
||||
#if 0
|
||||
//Note: using subpixel filter, the bbox_w is 2 pixel wider than normal.
|
||||
if (IS_SUBPIXEL(logfont) && (ft_inst_info->ft_lcdfilter != FT_LCD_FILTER_NONE))
|
||||
bbox.xMax += 2;
|
||||
#endif
|
||||
|
||||
/* We just save the BBOX :). */
|
||||
memcpy (&ft_inst_info->bbox, &bbox, sizeof(FT_BBox));
|
||||
|
||||
Reference in New Issue
Block a user