fix text alignment

This commit is contained in:
Fang He 2019-10-31 14:40:40 +08:00
parent eabfff3c36
commit c6ab626740
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ static void draw_text(cairo_t *ctx, text_t text) {
break;
case 0:
default:
x = text.x - ((extents.width / 2) + (extents.x_bearing / 2));
x = text.x - extents.x_advance / 2;
break;
}