diff --git a/Telegram/SourceFiles/ui/widgets/input_fields.cpp b/Telegram/SourceFiles/ui/widgets/input_fields.cpp index 6af872974..8fddd7afe 100644 --- a/Telegram/SourceFiles/ui/widgets/input_fields.cpp +++ b/Telegram/SourceFiles/ui/widgets/input_fields.cpp @@ -1844,8 +1844,8 @@ bool InputField::isRedoAvailable() const { void InputField::processFormatting(int insertPosition, int insertEnd) { // Tilde formatting. const auto tildeFormatting = !cRetina() - && (font().pixelSize() == 13) - && (font().family() == qstr("Open Sans")); + && (_st.font->f.pixelSize() == 13) + && (_st.font->f.family() == qstr("Open Sans")); auto isTildeFragment = false; const auto tildeFixedFont = AdjustFont(st::semiboldFont, _st.font);