Merge
This commit is contained in:
commit
db3709508b
@ -770,11 +770,9 @@ Java_sun_font_FreetypeFontScaler_getGlyphImageNative(
|
|||||||
glyphInfo->topLeftX = (float) ftglyph->bitmap_left;
|
glyphInfo->topLeftX = (float) ftglyph->bitmap_left;
|
||||||
glyphInfo->topLeftY = (float) -ftglyph->bitmap_top;
|
glyphInfo->topLeftY = (float) -ftglyph->bitmap_top;
|
||||||
|
|
||||||
if (context->aaType == TEXT_AA_LCD_HRGB ||
|
if (ftglyph->bitmap.pixel_mode == FT_PIXEL_MODE_LCD) {
|
||||||
context->aaType == TEXT_AA_LCD_HBGR) {
|
|
||||||
glyphInfo->width = width/3;
|
glyphInfo->width = width/3;
|
||||||
} else if (context->aaType == TEXT_AA_LCD_VRGB ||
|
} else if (ftglyph->bitmap.pixel_mode == FT_PIXEL_MODE_LCD_V) {
|
||||||
context->aaType == TEXT_AA_LCD_VBGR) {
|
|
||||||
glyphInfo->height = glyphInfo->height/3;
|
glyphInfo->height = glyphInfo->height/3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user