|
|
@ -79,10 +79,9 @@ SplashScreen::SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle) |
|
|
|
// check font size and drawing with
|
|
|
|
// check font size and drawing with
|
|
|
|
pixPaint.setFont(QFont(font, 33*fontFactor)); |
|
|
|
pixPaint.setFont(QFont(font, 33*fontFactor)); |
|
|
|
QFontMetrics fm = pixPaint.fontMetrics(); |
|
|
|
QFontMetrics fm = pixPaint.fontMetrics(); |
|
|
|
int titleTextWidth = fm.width(titleText); |
|
|
|
int titleTextWidth = fm.width(titleText); |
|
|
|
if(titleTextWidth > 160) { |
|
|
|
if (titleTextWidth > 176) { |
|
|
|
// strange font rendering, Arial probably not found
|
|
|
|
fontFactor = fontFactor * 176 / titleTextWidth; |
|
|
|
fontFactor = 0.75; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
pixPaint.setFont(QFont(font, 33*fontFactor)); |
|
|
|
pixPaint.setFont(QFont(font, 33*fontFactor)); |
|
|
|