Skip to content

Commit

Permalink
Add Font Ligature Support
Browse files Browse the repository at this point in the history
This work would not have been done without @Nucearo 's efforts:
        #470

Uses QTextLayout to render segments of similarly styled cells. QTextLayout
provides greater control over Qt's font-rendering engine via QGlyphRun. With
QGlyphRun, we are able to identify individual characters and their positions.

QGlyphRun should provide a means of correcting the spacing for non-perfect
monospace fonts. It also allows for identification of when a character
sequence is converted to a glyph.
  • Loading branch information
jgehrig committed Sep 20, 2020
1 parent 66764e7 commit 04283a2
Show file tree
Hide file tree
Showing 3 changed files with 321 additions and 48 deletions.
4 changes: 4 additions & 0 deletions src/gui/shellwidget/cell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ bool Cell::IsStyleEquivalent(const Cell& other) const
return false;
}

if (IsDoubleWidth() != other.IsDoubleWidth()) {
return false;
}

return m_highlight == other.m_highlight;
}

Expand Down
Loading

0 comments on commit 04283a2

Please sign in to comment.