Skip to content

Commit

Permalink
sub: add app dir to font search dirs
Browse files Browse the repository at this point in the history
currently `DEPLOYMENT += fonts` will copy files to app dir instead of
the folder
  • Loading branch information
wang-bin committed Feb 28, 2016
1 parent 0e24b4c commit 1193b96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/subtitle/SubtitleProcessorLibASS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ void SubtitleProcessorLibASS::updateFontCache()
// fonts in assets and qrc may change. so check before appFontsDir
static const QStringList kFontsDirs = QStringList()
<< qApp->applicationDirPath().append(QLatin1String("/fonts"))
<< qApp->applicationDirPath() // for winrt
<< QStringLiteral("assets:/fonts")
<< QStringLiteral(":/fonts")
<< Internal::Path::appFontsDir()
Expand Down

0 comments on commit 1193b96

Please sign in to comment.