Changeset 130 in tspsg-svn for trunk


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.
Location:
trunk/src
Files:
2 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;
  • trunk/src/mainwindow.cpp

    r129 r130  
    501501                "Country flag icons used in %1 are part of the free "
    502502                "<b>Flag&nbsp;Icons</b> collection created by <b>IconDrawer</b>,<br>\n"
    503                 "see <a href=\"http://www.icondrawer.com/\">www.icondrawer.com</a>")
     503                "see <a href=\"http://www.icondrawer.com/\">www.icondrawer.com</a><br>\n"
     504                "<br>\n"
     505                "%1 comes with the default \"embedded\" font <b>DejaVu&nbsp;LGC&nbsp;Sans&nbsp;"
     506                "Mono</b> from the <b>DejaVu fonts</b> licensed under a Free license</a>,<br>\n"
     507                "see <a href=\"http://dejavu-fonts.org/\">dejavu-fonts.org</a>.")
    504508                        .arg(QApplication::applicationName());
    505509
Note: See TracChangeset for help on using the changeset viewer.