Merge
authorlana
Thu Jun 05 14:18:37 2008 -0700 (17 months ago)
changeset 4643c4fc5111ff2
parent 32502e4c5348592
parent 4638f1a1b2f77a3
child 465f0ede391c615
Merge
--- a/src/share/native/sun/font/freetypeScaler.c Tue Jun 03 11:18:33 2008 -0700
+++ b/src/share/native/sun/font/freetypeScaler.c Thu Jun 05 14:18:37 2008 -0700
@@ -770,11 +770,9 @@ Java_sun_font_FreetypeFontScaler_getGlyp
glyphInfo->topLeftX = (float) ftglyph->bitmap_left;
glyphInfo->topLeftY = (float) -ftglyph->bitmap_top;
- if (context->aaType == TEXT_AA_LCD_HRGB ||
- context->aaType == TEXT_AA_LCD_HBGR) {
+ if (ftglyph->bitmap.pixel_mode == FT_PIXEL_MODE_LCD) {
glyphInfo->width = width/3;
- } else if (context->aaType == TEXT_AA_LCD_VRGB ||
- context->aaType == TEXT_AA_LCD_VBGR) {
+ } else if (ftglyph->bitmap.pixel_mode == FT_PIXEL_MODE_LCD_V) {
glyphInfo->height = glyphInfo->height/3;
}