Improved font handling Navigation cube

Also adding anisotropy texture mapping for better readability on steep angles.
This commit is contained in:
Jolbas
2023-06-04 10:34:55 +02:00
committed by Adrián Insaurralde Avalos
parent e5f6a4edf3
commit caac68472b
6 changed files with 21 additions and 41 deletions

View File

@@ -446,16 +446,6 @@ MainWindow::MainWindow(QWidget * parent, Qt::WindowFlags f)
// accept drops on the window, get handled in dropEvent, dragEnterEvent
setAcceptDrops(true);
// setup font substitutions for NaviCube
// Helvetica usually gives good enough results on mac & linux
// in rare cases Helvetica matches a bad font on linux
// Nimbus Sans Narrow and Open Sans Condensed added as fallback
// Bahnschrift is a condensed font available on windows versions since 2017
// Arial added as fallback for older version
auto substitutions = QStringLiteral("Bahnschrift,Helvetica,Nimbus Sans Narrow,Open Sans Condensed,Arial,Sans");
auto family = QStringLiteral("FreeCAD NaviCube");
QFont::insertSubstitutions(family, substitutions.split(QLatin1Char(',')));
statusBar()->showMessage(tr("Ready"), 2001);
}