Changeset 53 for psi

Show
Ignore:
Timestamp:
09/17/06 22:25:44 (2 years ago)
Author:
dmik
Message:

Psi: General: Added automatic support for the Innotek Font Engine on the OS/2 platform.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • psi/trunk/src/psiapplication.cpp

    r2 r53  
    9999#endif 
    100100 
     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> 
     107typedef VOID (APIENTRY *Ft2EnableFontEngine_T)( BOOL fEnable ); 
     108static Ft2EnableFontEngine_T Ft2EnableFontEngine = 0; 
     109static QLibrary ft2lib( "ft2lib.dll" ); 
     110#endif 
     111 
    101112//---------------------------------------------------------------------------- 
    102113// PsiApplication 
     
    116127{ 
    117128        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 
    118139#ifdef Q_WS_X11 
    119140        if ( GUIenabled ) {