- xp[0] = ox; yp[0] = baseline;
- xp[1] = ox; yp[1] = baseline - h;
- xp[2] = ox + w; yp[2] = baseline - h/2;
- xp[3] = ox; yp[3] = baseline;
-
- pain.lines(xp, yp, 4, LColor::special);
- x += width(bv, font);
- break;
- }
- case PROTECTED_SEPARATOR:
- {
- float w = width(bv, font);
- int h = font_metrics::ascent('x', font);
+ // A triangle the width and height of an 'x'
+ int w = fm.width(char_type('x'));
+ int ox = fm.width(char_type(' ')) + x;
+ int h = fm.ascent(char_type('x'));