Changeset 53 for psi/trunk/src
- Timestamp:
- Sep 17, 2006, 10:25:44 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
psi/trunk/src/psiapplication.cpp
r2 r53 99 99 #endif 100 100 101 #ifdef Q_WS_PM 102 // support for the Innotek Font Engine (Freetype 2) library 103 // (so far, we use it directly here rather than making Qt/2 Freetype2-aware, 104 // because ft2lib has some problems (e.g. font transformations) that makes it 105 // dangerous to enable it globally in Qt) 106 #include <qlibrary.h> 107 typedef VOID (APIENTRY *Ft2EnableFontEngine_T)( BOOL fEnable ); 108 static Ft2EnableFontEngine_T Ft2EnableFontEngine = 0; 109 static QLibrary ft2lib( "ft2lib.dll" ); 110 #endif 111 101 112 //---------------------------------------------------------------------------- 102 113 // PsiApplication … … 116 127 { 117 128 Q_UNUSED(GUIenabled); 129 #ifdef Q_WS_PM 130 if ( GUIenabled ) { 131 Ft2EnableFontEngine = 132 (Ft2EnableFontEngine_T) ft2lib.resolve( "Ft2EnableFontEngine" ); 133 if ( Ft2EnableFontEngine ) { 134 // enable Innotek Font Engine 135 Ft2EnableFontEngine( TRUE ); 136 } 137 } 138 #endif 118 139 #ifdef Q_WS_X11 119 140 if ( GUIenabled ) {
Note:
See TracChangeset
for help on using the changeset viewer.