Changeset View
Changeset View
Standalone View
Standalone View
src/Character.h
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | |||||
58 | * characters, or box-drawing characters. Currently, konsole draws those | 58 | * characters, or box-drawing characters. Currently, konsole draws those | ||
59 | * characters itself, instead of using the glyph provided by the font. | 59 | * characters itself, instead of using the glyph provided by the font. | ||
60 | * Unfortunately, the triple and quadruple dash lines (┄┅┆┇┈┉┊┋) are too | 60 | * Unfortunately, the triple and quadruple dash lines (┄┅┆┇┈┉┊┋) are too | ||
61 | * detailed too be drawn cleanly at normal font scales without anti | 61 | * detailed too be drawn cleanly at normal font scales without anti | ||
62 | * -aliasing, so those are drawn as regular characters. | 62 | * -aliasing, so those are drawn as regular characters. | ||
63 | */ | 63 | */ | ||
64 | inline bool isSupportedLineChar(uint codePoint) | 64 | inline bool isSupportedLineChar(uint codePoint) | ||
65 | { | 65 | { | ||
66 | return (codePoint & 0xFF80) == 0x2500 // Unicode block: Mathematical Symbols - Box Drawing | 66 | return ((codePoint & 0xFF80) == 0x2500 // Unicode block: Mathematical Symbols - Box Drawing | ||
67 | && !(0x2504 <= codePoint && codePoint <= 0x250B); // Triple and quadruple dash range | 67 | && !(0x2504 <= codePoint && codePoint <= 0x250B)) || // Triple and quadruple dash range | ||
68 | (codePoint >= 0x2580 && codePoint <= 0x259F); // Block characters | ||||
68 | } | 69 | } | ||
69 | 70 | | |||
70 | /** | 71 | /** | ||
71 | * A single character in the terminal which consists of a unicode character | 72 | * A single character in the terminal which consists of a unicode character | ||
72 | * value, foreground and background colors and a set of rendition attributes | 73 | * value, foreground and background colors and a set of rendition attributes | ||
73 | * which specify how it should be drawn. | 74 | * which specify how it should be drawn. | ||
74 | */ | 75 | */ | ||
75 | class Character | 76 | class Character | ||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |