diff -r 065db0753f05 -r a41ccc6924e3 src/gl/common.h --- a/src/gl/common.h Mon Jun 20 22:41:34 2022 +0300 +++ b/src/gl/common.h Mon Jun 20 22:54:13 2022 +0300 @@ -146,3 +146,16 @@ { return stream >> enum_value_cast(style); } + +#include +#include +inline void drawBorderedText(QPainter* painter, const QPointF& point, const QFont& font, const QString& text) +{ + QPainterPath path; + path.addText(point, font, text); + painter->save(); + painter->setBrush(Qt::white); + painter->setPen({Qt::black, 0.1 * font.pointSizeF()}); + painter->drawPath(path); + painter->restore(); +}