Ignore:
Timestamp:
Oct 15, 2009, 2:04:41 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Enabled full font hinting and using bitmap stripes by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/text/qfontengine_pm.cpp

    r222 r228  
    5555// ------------------------------------------------------------------
    5656
    57 QFontEnginePMFT::QFontEnginePMFT(const QFontDef &fd)
     57QFontEnginePMFT::QFontEnginePMFT(const QFontDef &fd, const FaceId &faceId,
     58                                 bool antialias, HintStyle hintStyle,
     59                                 bool autoHint, SubpixelAntialiasingType subPixel,
     60                                 int lcdFilter, bool useEmbeddedBitmap)
    5861    : QFontEngineFT(fd)
    5962{
     63    subpixelType = subPixel;
     64
     65    default_hint_style = (QFontEngineFT::HintStyle)hintStyle;
     66
     67#if defined(FT_LOAD_FORCE_AUTOHINT)
     68    if (autoHint)
     69        default_load_flags |= FT_LOAD_FORCE_AUTOHINT;
     70#endif
     71
     72    lcdFilterType = lcdFilter;
     73    embeddedbitmap = useEmbeddedBitmap;
     74
     75    GlyphFormat defaultFormat = Format_None;
     76    if (subpixelType != QFontEngineFT::Subpixel_None)
     77        defaultFormat = Format_A32;
     78    else if (antialias)
     79        defaultFormat = Format_A8;
     80    else
     81        defaultFormat = Format_Mono;
     82
     83    init(faceId, antialias, defaultFormat);
    6084}
    6185
Note: See TracChangeset for help on using the changeset viewer.