Skip to content

Commit

Permalink
Use system fontconfig in static build
Browse files Browse the repository at this point in the history
  • Loading branch information
Cubitect committed Feb 10, 2024
1 parent 3978c33 commit d686740
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ A possible configuration for a static build may be:
$ mkdir qt5; cd qt5
$ wget https://download.qt.io/archive/qt/5.15/5.15.12/submodules/qtbase-everywhere-opensource-src-5.15.12.tar.xz
$ tar xf qtbase-everywhere-opensource-src-5.15.12.tar.xz
$ ./qtbase-everywhere-src-5.15.12/configure -release -static -opensource -confirm-license -opengl -nomake examples -qt-zlib -qt-libjpeg -qt-libpng -qt-freetype -qt-pcre -qt-harfbuzz
$ ./qtbase-everywhere-src-5.15.12/configure -release -static -opensource -confirm-license -nomake examples -opengl -fontconfig -system-freetype -qt-zlib -qt-libjpeg -qt-libpng -qt-pcre -qt-harfbuzz -prefix .
$ make -s -j 4
```

Expand Down
6 changes: 3 additions & 3 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ void MainWindow::setBiomeColorRc(QString rc)

void MainWindow::setProgressIndication(double value)
{
int v = (int) floor(10000 * value);
int v = (int) floor(100 * value);
if (v == progval)
return;
progval = v;
Expand All @@ -706,9 +706,9 @@ void MainWindow::setProgressIndication(double value)
QPainter painter(&pixmap);
QRect view = painter.viewport();

QString txt = QString::asprintf("%2d.%02d%%", progval/100, progval%100);
QString txt = QString::asprintf("%2d", progval);
QFont f = font();
f.setPixelSize(32);
f.setPixelSize(48);

int pad = 2;
int y = view.bottom() - pad;
Expand Down

0 comments on commit d686740

Please sign in to comment.