--- old/src/java.desktop/macosx/native/libawt_lwawt/font/CGGlyphImages.m 2020-08-05 17:14:59.000000000 -0700 +++ new/src/java.desktop/macosx/native/libawt_lwawt/font/CGGlyphImages.m 2020-08-05 17:14:58.000000000 -0700 @@ -208,11 +208,11 @@ if (pGammaEnv != NULL) { reverseGamma = atol(pGammaEnv); } - + if (reverseGamma < 100 || reverseGamma > 250) { reverseGamma = 180; } - + gamma = 100.0 / reverseGamma; for (i = 0; i < 256; i++) { double x = ((double)i) / 255.0; @@ -226,7 +226,7 @@ CGGI_CopyARGBPixelToRGBPixel(const UInt32 p, UInt8 *dst) { UInt8* lut = getReverseGammaLut(); - + *(dst + 0) = lut[0xFF - (p >> 16 & 0xFF)]; // red *(dst + 1) = lut[0xFF - (p >> 8 & 0xFF)]; // green *(dst + 2) = lut[0xFF - (p & 0xFF)]; // blue @@ -244,7 +244,7 @@ size_t height = info->height; size_t y; - + // fill empty glyph image with black-on-white glyph for (y = 0; y < height; y++) { size_t destRow = y * destRowWidth * 3; @@ -296,7 +296,7 @@ size_t height = info->height; size_t y; - + // fill empty glyph image with black-on-white glyph for (y = 0; y < height; y++) { size_t destRow = y * destRowWidth; @@ -401,7 +401,7 @@ // set foreground color CGContextSetRGBFillColor(canvas->context, 0.0f, 0.0f, 0.0f, 1.0f); - + CGContextSetFontSize(canvas->context, 1); CGContextSaveGState(canvas->context); @@ -742,7 +742,7 @@ NSString* theKey = (mode->glyphDescriptor == &rgb) ? threadLocalLCDCanvasKey : threadLocalAACanvasKey; - + CGGI_GlyphCanvas *canvas = [threadDict objectForKey:theKey]; if (canvas == nil) { canvas = [[CGGI_GlyphCanvas alloc] init];