mirror of
https://git.freebsd.org/ports.git
synced 2025-06-29 16:40:31 -04:00
QtApplications to use the "fontawesome" collection of icons. Although the upstream source bundles the "font" itself with its sources too, the port makes no use of it -- there are already about 2 scores of fontawesome-FOO.ttf listed in various pkg-plist files in the tree. This port's pkg-message will advise the user, that for the library to be useful, the font-file must be known to fontconfig.
18 lines
580 B
C++
18 lines
580 B
C++
--- QtAwesome.cpp 2015-03-19 20:21:38 UTC
|
|
+++ QtAwesome.cpp 2015-04-20 15:57:35 -0400
|
|
@@ -155,6 +155,7 @@ void QtAwesome::init(const QString& font
|
|
/// To initialize QtAwesome with font-awesome you need to call this method
|
|
bool QtAwesome::initFontAwesome( )
|
|
{
|
|
+#if 0
|
|
static int fontAwesomeFontId = -1;
|
|
|
|
// only load font-awesome once
|
|
@@ -189,6 +190,7 @@ bool QtAwesome::initFontAwesome( )
|
|
fontAwesomeFontId = -1; // restore the font-awesome id
|
|
return false;
|
|
}
|
|
+#endif
|
|
|
|
// intialize the map
|
|
QHash<QString, int>& m = namedCodepoints_;
|