-
-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fonts are no longer working #1488
Comments
The basic idea behind this change is, that an AppImage is mounted as loop device in Usually packet maintainers will place So the problem is presumably the correct placement after building from source. When you have fonts and other things in There is the script So the options I see (for self builder) are to run We can also add instructions, where to place the needed files and folders. But this may vary on different distributions and also need You can take a look at CI/build-appimg.sh to see where all the resources from |
@lordofbikes Sorry for not being specific, I am using lirbecad from openSUSE Tumbleweed. I.e. it is installed in Note that LibreCAD/librecad/src/main/main.cpp Lines 209 to 212 in 2c2c1b0
So use #include <QCoreApplication>
#include <QDebug>
#include <QFile>
#include <QFileInfo>
#include <QString>
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
QFileInfo prgInfo( QFile::decodeName(argv[0]) );
QString prgDir(prgInfo.absolutePath());
qDebug() << "prgDir" << prgDir;
qDebug() << "applicationDirPath" << QCoreApplication::applicationDirPath();
return 0;
} Compile it and run it elsewhere: $ cd /tmp/q
$ g++ -Wall -g -DQT_CORE_LIB -I/usr/include/qt5/QtCore -I/usr/include/qt5 main.cpp -lQt5Core -o main
$ export PATH=$PATH:/tmp/q
$ cd
$ main
prgDir "/home/xslaby"
applicationDirPath "/tmp/q" |
Finally I got it, the missing link was: $ export PATH=$PATH:/tmp/q
I already used There are a couple conditions in |
@lordofbikes @dxli, Latest AppImage ADDITION: Previous |
After commit e666fb1, fonts are not loaded as the paths in
RS_System::getDirectoryList
are incorrect. Like:Before that commit, the code did:
which resulted in correct
/usr/share/librecad/fonts
.The text was updated successfully, but these errors were encountered: