Changeset 175 for smplayer/vendor/current/src/paths.cpp
- Timestamp:
- May 3, 2016, 2:14:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/paths.cpp
r163 r175 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 4Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 161 161 } 162 162 163 #ifdef Q_OS_WIN163 #ifdef FONTS_HACK 164 164 QString Paths::fontPath() { 165 return appPath() + "/mplayer/open-fonts"; 165 QString path = appPath() + "/mplayer/fonts"; 166 QDir font_dir(path); 167 QStringList files = font_dir.entryList(QStringList() << "*.ttf" << "*.otf", QDir::Files); 168 //qDebug("Paths:fontPath: files in %s: %d", path.toUtf8().constData(), files.count()); 169 if (files.count() > 0) { 170 return path; 171 } else { 172 return appPath() + "/open-fonts"; 173 } 166 174 } 167 175 #endif
Note:
See TracChangeset
for help on using the changeset viewer.