Skip to content

Commit

Permalink
Enhance font setup in tests by adding NoAntialias style strategy.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Jan 11, 2025
1 parent fba76ad commit 4a6f1ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ void setLightPalette()

void setupFont()
{
const int id{QFontDatabase::addApplicationFont(QStringLiteral(":/res/FiraMono-Regular.ttf"))};
const int id{QFontDatabase::addApplicationFont(
QStringLiteral(":/res/FiraMono-Regular.ttf"))};
const QString family{QFontDatabase::applicationFontFamilies(id).at(0)};
QFont font(family);
font.setPointSize(12);
font.setStyleStrategy(QFont::NoAntialias);
QApplication::setFont(font);
}
} // namespace
Expand Down
Binary file modified tests/res/BasicDataPlotDefault.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4a6f1ec

Please sign in to comment.