copy font from source

This commit is contained in:
sasha 2019-02-27 14:32:30 +09:00
parent 7e3096cbcb
commit 1d832307ad
3 changed files with 5 additions and 1 deletions

View File

@ -219,6 +219,10 @@ if(USE_FONT)
INSTALL ( FILES ${USE_FONT} DESTINATION share/games/pianobooster/fonts)
endif()
if(NOT USE_SYSTEM_FONT)
INSTALL ( FILES fonts/DejaVuSans.ttf DESTINATION share/games/pianobooster/fonts)
endif()
#INSTALL( FILES "${CMAKE_CURRENT_BINARY_DIR}/translations/*.qm DESTINATION share/pianobooster/translations/ )

View File

@ -88,7 +88,7 @@ public:
}
}
if (font==nullptr){
ppLogError(tr("font DejaVuSans.ttf not found !").toStdString().c_str());
ppLogError("Font DejaVuSans.ttf was not found !");
exit(0);
}

BIN
src/fonts/DejaVuSans.ttf Normal file

Binary file not shown.