Changeset 214


Ignore:
Timestamp:
Dec 19, 2010, 8:20:21 PM (15 years ago)
Author:
dmik
Message:

jdk: Force font auto-hinting in FreeType on OS/2 due to the bad quality of hinting in the standard fonts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/src/share/native/sun/font/freetypeScaler.c

    r2 r214  
    730730        target = FT_LOAD_TARGET_LCD_V;
    731731    }
     732
     733#ifdef __WIN32OS2__
     734    /* Standard OS/2 fonts have pure hitning */
     735    target |= FT_LOAD_FORCE_AUTOHINT;
     736#endif
     737
    732738    renderFlags |= target;
    733739
     
    878884        JNIEnv *env, jobject scaler, jlong pScaler) {
    879885    FTScalerInfo* scalerInfo = (FTScalerInfo *) jlong_to_ptr(pScaler);
    880    
     886
    881887    /* Freetype functions *may* cause callback to java
    882        that can use cached values. Make sure our cache is up to date. 
     888       that can use cached values. Make sure our cache is up to date.
    883889       NB: scaler context is not important at this point, can use NULL. */
    884890    int errCode = setupFTContext(env, scaler, scalerInfo, NULL);
     
    940946        return 0;
    941947    }
    942    
     948
    943949    /* Freetype functions *may* cause callback to java
    944950       that can use cached values. Make sure our cache is up to date.
Note: See TracChangeset for help on using the changeset viewer.