Use Bold instead of Semibold by entities.

This commit is contained in:
John Preston 2020-05-08 11:51:41 +04:00
parent ab5a226056
commit cc9b7e2c2f
2 changed files with 3 additions and 3 deletions

View file

@ -541,7 +541,7 @@ bool Parser::checkEntities() {
const auto entityBegin = _start + _waitingEntity->offset();
const auto entityEnd = entityBegin + entityLength;
if (entityType == EntityType::Bold) {
flags = TextBlockFSemibold;
flags = TextBlockFBold;
} else if (entityType == EntityType::Italic) {
flags = TextBlockFItalic;
} else if (entityType == EntityType::Underline) {
@ -3243,7 +3243,7 @@ TextForMimeData String::toText(
auto markdownTrackers = composeEntities
? std::vector<MarkdownTagTracker>{
{ TextBlockFItalic, EntityType::Italic },
{ TextBlockFSemibold, EntityType::Bold },
{ TextBlockFBold, EntityType::Bold },
{ TextBlockFUnderline, EntityType::Underline },
{ TextBlockFStrikeOut, EntityType::StrikeOut },
{ TextBlockFCode, EntityType::Code }, // #TODO entities

View file

@ -664,7 +664,7 @@ QTextCharFormat PrepareTagFormat(
result.setFont(st.font);
} else if (tag == kTagBold) {
result.setForeground(st.textFg);
result.setFont(st.font->semibold());
result.setFont(st.font->bold());
} else if (tag == kTagItalic) {
result.setForeground(st.textFg);
result.setFont(st.font->italic());