Changeset 130 in tspsg-svn for trunk/src/main.cpp


Ignore:
Timestamp:
Sep 3, 2010, 5:34:21 PM (14 years ago)
Author:
laleppa
Message:

+ Added DejaVu? fonts to credits.

  • Don't load the font if it is already available.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/main.cpp

    r129 r130  
    5353        qsrand(QDateTime::currentDateTime().toTime_t() ^ QCursor::pos().x() ^ QCursor::pos().y());
    5454
    55         QFontDatabase::addApplicationFont(":/files/DejaVuLGCSansMono.ttf");
     55        // Don't load the font if it is already available
     56        if (!QFontDatabase().families().contains(DEF_FONT_FACE))
     57                QFontDatabase::addApplicationFont(":/files/DejaVuLGCSansMono.ttf");
    5658
    5759QTranslator en;
Note: See TracChangeset for help on using the changeset viewer.