Changeset 215


Ignore:
Timestamp:
Dec 19, 2010, 11:57:48 PM (15 years ago)
Author:
dmik
Message:

jdk: Antialias fonts on OS/2 by default due to bad quality of standard fonts and inability of FreeType+Java properly use bitmapped glyphs provided by some font files at small font sizes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/src/windows/native/sun/windows/awt_DesktopProperties.cpp

    r204 r215  
    487487    // ECH 10/6/2000 seems to be fixed on NT4 SP5, but not on 98
    488488    SetBooleanProperty(TEXT("win.frame.fullWindowDragsOn"), GetBooleanParameter(SPI_GETDRAGFULLWINDOWS));
     489#ifndef __WIN32OS2__
    489490    SetBooleanProperty(TEXT("win.text.fontSmoothingOn"), GetBooleanParameter(SPI_GETFONTSMOOTHING));
    490491    // TODO END
     
    498499                           GetLCDSubPixelOrder());
    499500    }
     501#else
     502    // The hinting quality of standard Type1 fonts on OS/2 is very low;
     503    // FreeType auto-hinting makes them better but still not good. Therefore,
     504    // we want to use LCD antialiasing by default.
     505    SetBooleanProperty(TEXT("win.text.fontSmoothingOn"), TRUE);
     506    SetIntegerProperty(TEXT("win.text.fontSmoothingType"), 2); // ClearType
     507    SetIntegerProperty(TEXT("win.text.fontSmoothingContrast"), 1000);
     508    SetIntegerProperty(TEXT("win.text.fontSmoothingOrientation"), 1); // LCD_RGB
     509#endif
    500510
    501511    int cxdrag = GetSystemMetrics(SM_CXDRAG);
Note: See TracChangeset for help on using the changeset viewer.