| 82 | } |
| 83 | |
| 84 | static SmallGlyph tmate2SmallGlyph(QChar ch) |
| 85 | { |
| 86 | if (ch.isDigit()) { |
| 87 | const int digit = ch.digitValue(); |
| 88 | return { kSmallHigh[digit], kSmallLow[digit] }; |
| 89 | } |
| 90 | |
| 91 | switch (ch.toLatin1()) { |
| 92 | case 'k': |
| 93 | case 'K': |
| 94 | // Seven-segment approximation: left strokes, center, and lower-right. |
| 95 | return { 0x20, 0xE0 }; |
| 96 | case '-': |
| 97 | return { 0x00, 0x40 }; |
| 98 | case ' ': |
| 99 | return { 0x00, 0x00 }; |
| 100 | default: |
| 101 | return { 0x00, 0x00 }; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | // Indicator segment lookup: {byte_index, bitmask}. |
| 106 | // Derived from USB captures (session_20260605_051711/segments_*.csv). |
no outgoing calls
no test coverage detected