Cleanup: use mono-space font drawing for single character display
This doesn't make a user visible difference since it's only used for brackets at the moment, this is more for general correctness as the width calculation for mono-spaced text drawing is different (as it uses BLI_wcwidth).
This commit is contained in:
parent
28656293c6
commit
d730f79e0e
|
@ -90,7 +90,7 @@ static int text_font_draw(const TextDrawContext *tdc, int x, int y, const char *
|
|||
static int text_font_draw_character(const TextDrawContext *tdc, int x, int y, char c)
|
||||
{
|
||||
BLF_position(tdc->font_id, x, y, 0);
|
||||
BLF_draw(tdc->font_id, &c, 1);
|
||||
BLF_draw_mono(tdc->font_id, &c, 1, tdc->cwidth_px);
|
||||
|
||||
return tdc->cwidth_px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue