Restore Open Sans tilde fix for system font
This commit is contained in:
parent
e6fdff4597
commit
70af81fc56
2 changed files with 6 additions and 14 deletions
|
|
@ -2027,13 +2027,9 @@ private:
|
|||
result = style::font(f->size(), f->flags(), result->family());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (flags & TextBlockFItalic) result = result->italic();
|
||||
if (flags & TextBlockFUnderline) result = result->underline();
|
||||
if (flags & TextBlockFStrikeOut) result = result->strikeout();
|
||||
|
||||
if (flags & TextBlockFSemibold) {
|
||||
if (flags & TextBlockFItalic) result = result->italic();
|
||||
if (flags & TextBlockFUnderline) result = result->underline();
|
||||
if (flags & TextBlockFStrikeOut) result = result->strikeout();
|
||||
if (flags & TextBlockFTilde) { // tilde fix in OpenSans
|
||||
result = st::semiboldFont;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -335,13 +335,9 @@ TextBlock::TextBlock(const style::font &font, const QString &str, QFixed minResi
|
|||
blockFont = style::font(font->size(), font->flags(), blockFont->family());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (flags & TextBlockFItalic) blockFont = blockFont->italic();
|
||||
if (flags & TextBlockFUnderline) blockFont = blockFont->underline();
|
||||
if (flags & TextBlockFStrikeOut) blockFont = blockFont->strikeout();
|
||||
|
||||
if (flags & TextBlockFSemibold) {
|
||||
if (flags & TextBlockFItalic) blockFont = blockFont->italic();
|
||||
if (flags & TextBlockFUnderline) blockFont = blockFont->underline();
|
||||
if (flags & TextBlockFStrikeOut) blockFont = blockFont->strikeout();
|
||||
if (flags & TextBlockFTilde) { // tilde fix in OpenSans
|
||||
blockFont = st::semiboldFont;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue