Changeset 228 for trunk/src/gui/text/qfontengine_pm.cpp
- Timestamp:
- Oct 15, 2009, 2:04:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/text/qfontengine_pm.cpp
r222 r228 55 55 // ------------------------------------------------------------------ 56 56 57 QFontEnginePMFT::QFontEnginePMFT(const QFontDef &fd) 57 QFontEnginePMFT::QFontEnginePMFT(const QFontDef &fd, const FaceId &faceId, 58 bool antialias, HintStyle hintStyle, 59 bool autoHint, SubpixelAntialiasingType subPixel, 60 int lcdFilter, bool useEmbeddedBitmap) 58 61 : QFontEngineFT(fd) 59 62 { 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); 60 84 } 61 85
Note:
See TracChangeset
for help on using the changeset viewer.