Fixed font height for custom text displaying
This commit is contained in:
parent
55f39e1cbf
commit
80ec73d6a2
4 changed files with 4 additions and 6 deletions
|
|
@ -7086,7 +7086,7 @@ void HistoryWidget::paintEvent(QPaintEvent *e) {
|
|||
HistoryView::ServiceMessagePainter::paintBubble(p, tr.x(), tr.y(), tr.width(), tr.height());
|
||||
|
||||
p.setPen(st::msgServiceFg);
|
||||
p.setFont(st::msgServiceFont->f);
|
||||
p.setFont(st::msgServiceFont);
|
||||
p.drawTextLeft(tr.left() + st::msgPadding.left(), tr.top() + st::msgServicePadding.top(), width(), tr::lng_willbe_history(tr::now));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -123,8 +123,7 @@ void EmptyUserpic::paint(
|
|||
x = rtl() ? (outerWidth - x - size) : x;
|
||||
|
||||
const auto fontsize = (size * 13) / 33;
|
||||
auto font = st::historyPeerUserpicFont->f;
|
||||
font.setPixelSize(fontsize);
|
||||
auto font = style::font(fontsize, st::historyPeerUserpicFont->flags(), st::historyPeerUserpicFont->family());
|
||||
|
||||
PainterHighQualityEnabler hq(p);
|
||||
p.setBrush(_color);
|
||||
|
|
|
|||
|
|
@ -905,8 +905,7 @@ void Generator::paintUserpic(int x, int y, Row::Type type, int index, QString le
|
|||
{
|
||||
Painter p(&image);
|
||||
auto fontsize = (st::dialogsPhotoSize * 13) / 33;
|
||||
auto font = st::historyPeerUserpicFont->f;
|
||||
font.setPixelSize(fontsize);
|
||||
auto font = style::font(fontsize, st::historyPeerUserpicFont->flags(), st::historyPeerUserpicFont->family());
|
||||
|
||||
p.setFont(font);
|
||||
p.setBrush(Qt::NoBrush);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit eacf588546baba7599316147c63d1cf0bc038fb6
|
||||
Subproject commit d68deebf875664c086bd0f202e11a295ba7ada43
|
||||
Loading…
Add table
Reference in a new issue