Fix workaround for Open Sans tilda bug.
This commit is contained in:
parent
ba12ebc67a
commit
5723c2ba54
2 changed files with 2 additions and 2 deletions
|
|
@ -108,7 +108,7 @@ bool ComputeCheckTilde(const style::TextStyle &st) {
|
||||||
const auto &font = st.font;
|
const auto &font = st.font;
|
||||||
return (font->size() * style::DevicePixelRatio() == 13)
|
return (font->size() * style::DevicePixelRatio() == 13)
|
||||||
&& (font->flags() == 0)
|
&& (font->flags() == 0)
|
||||||
&& (font->f.family() == qstr("Open Sans"));
|
&& (font->f.family() == qstr("DAOpenSansRegular"));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
|
||||||
|
|
@ -1978,7 +1978,7 @@ bool InputField::isRedoAvailable() const {
|
||||||
void InputField::processFormatting(int insertPosition, int insertEnd) {
|
void InputField::processFormatting(int insertPosition, int insertEnd) {
|
||||||
// Tilde formatting.
|
// Tilde formatting.
|
||||||
const auto tildeFormatting = (_st.font->f.pixelSize() * style::DevicePixelRatio() == 13)
|
const auto tildeFormatting = (_st.font->f.pixelSize() * style::DevicePixelRatio() == 13)
|
||||||
&& (_st.font->f.family() == qstr("Open Sans"));
|
&& (_st.font->f.family() == qstr("DAOpenSansRegular"));
|
||||||
auto isTildeFragment = false;
|
auto isTildeFragment = false;
|
||||||
const auto tildeFixedFont = AdjustFont(st::semiboldFont, _st.font);
|
const auto tildeFixedFont = AdjustFont(st::semiboldFont, _st.font);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue