Commit d094e377 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Normalize default/dummy sans serif font name to "Sans Serif"

parent eef771a4
......@@ -1227,7 +1227,7 @@ void ClipPainterPrivate::debugDrawNodes( const QPolygonF & polygon )
q->drawRect( itPoint->x() - 4, itPoint->y() - 4 , 8.0, 8.0 );
}
if (m_debugPolygonsLevel == 2) {
q->setFont(QFont("Helvetica", 7));
q->setFont(QFont(QStringLiteral("Sans Serif"), 7));
q->setPen("black");
q->drawText(itPoint->x() + 6.0, itPoint->y() + (15 - (i * 5) % 30) , QString::number(i));
}
......
......@@ -533,7 +533,7 @@ void MergedLayerDecorator::Private::paintTileId( QImage *tileImage, const TileId
painter.drawRect( strokeWidth / 2, strokeWidth / 2,
tileImage->width() - strokeWidth,
tileImage->height() - strokeWidth );
QFont testFont( "Sans", 12 );
QFont testFont(QStringLiteral("Sans Serif"), 12);
QFontMetrics testFm( testFont );
painter.setFont( testFont );
......
......@@ -270,7 +270,7 @@ QVector<const GeoDataFeature*> PlacemarkLayout::whichPlacemarkAt( const QPoint&
int PlacemarkLayout::maxLabelHeight() const
{
QFont const standardFont(QStringLiteral("Arial"));
QFont const standardFont(QStringLiteral("Sans Serif"));
return QFontMetrics(standardFont).height();
}
......
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