Changeset 219 for trunk/src


Ignore:
Timestamp:
Oct 10, 2009, 1:25:05 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Quick fix: Make QFontEngine use the boot drive to locate "\PSFONTS
HELV.PFB", people don't read README anyway and get really mad :)

File:
1 edited

Legend:

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

    r143 r219  
    6060    QFontEngine::FaceId face_id;
    6161    // @todo temporary:
    62     face_id.filename = "C:\\PSFONTS\\HELV.PFB";
     62    ULONG bootDrive = 0;
     63    DosQuerySysInfo(QSV_BOOT_DRIVE, QSV_BOOT_DRIVE, (PVOID)&bootDrive,
     64                    sizeof(bootDrive));
     65    QByteArray font(1, bootDrive + 'A' - 1);
     66    font += ":\\PSFONTS\\HELV.PFB";
     67
     68    face_id.filename = font;
    6369    face_id.index = 0;
    6470
Note: See TracChangeset for help on using the changeset viewer.