use custom font to display line breaks

This commit is contained in:
Roy Qu 2024-04-15 16:39:49 +08:00
parent 3552077d5c
commit 45f4047d82
4 changed files with 8 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

View File

@ -20,8 +20,8 @@ namespace QSynedit {
const QSet<QChar> WordBreakChars{'.', ',', ';', ':',
'"', '\'', '!', '?', '[', ']', '(', ')', '{', '}', '^', '-', '=', '+',
'-', '*', '/', '\\', '|'};
const QChar TabGlyph(0x2192);
const QChar SpaceGlyph(0x02FD);
const QChar LineBreakGlyph(0x21A9);
const QChar SoftBreakGlyph(0x2193);
const QString TabGlyph{"\U000FFFFC"};
const QString SpaceGlyph{"\U000FFFFD"};
const QString LineBreakGlyph{"\U000FFFFB"};
const QString SoftBreakGlyph{"\U000FFFFA"};
}

View File

@ -22,10 +22,10 @@
namespace QSynedit {
extern const QSet<QChar> WordBreakChars;
extern const QChar SpaceGlyph;
extern const QChar TabGlyph;
extern const QChar LineBreakGlyph;
extern const QChar SoftBreakGlyph;
extern const QString SpaceGlyph;
extern const QString TabGlyph;
extern const QString LineBreakGlyph;
extern const QString SoftBreakGlyph;
// names for token attributes
#define SYNS_AttrAssembler "Assembler"