Merge
authorlana
Thu, 05 Jun 2008 14:18:37 -0700
changeset 882 79d8619aab0b
parent 572 18dc4ba4739a (current diff)
parent 881 6aefebba2393 (diff)
child 883 c3e81f0acd3d
Merge
--- a/jdk/src/share/native/sun/font/freetypeScaler.c	Wed Jul 05 16:37:21 2017 +0200
+++ b/jdk/src/share/native/sun/font/freetypeScaler.c	Thu Jun 05 14:18:37 2008 -0700
@@ -770,11 +770,9 @@
     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;
     }