Commit e06d6d44 authored by Oliver Bock's avatar Oliver Bock
Browse files

Workaround for text rendering issue

* Most characters had some weird background
* NOT specifying the font on some renderText() invocation fixes it
* Increased font size (first line only) to hide explicit vs. implicit font differences
parent 3c0e4962
......@@ -448,13 +448,13 @@ void PulsarAnimationWidget::paintGL()
// draw copyright info last (appears in front of everything)
glColor4f(1.0f, 1.0f, 1.0f, 0.5f);
QFont font;
font.setStyleStrategy((QFont::StyleStrategy) (QFont::OpenGLCompatible | QFont::PreferQuality));
renderText(10, 40, -100, tr("B. Allen and O. Bock"), font);
renderText(10, 25, -100, tr("MPI for Gravitational Physics"), font);
renderText(10, 10, -100, QString("Copyright %1 2017").arg(QChar(0x00A9)), font);
renderText(10, 25, -100, tr("MPI for Gravitational Physics"));
renderText(10, 10, -100, QString("Copyright %1 2017").arg(QChar(0x00A9)));
// restore original state
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment