remove draw / gfx, baseline

This commit is contained in:
Krzosa Karol
2025-01-22 14:46:07 +01:00
parent 223038c9cd
commit b20a507834
8 changed files with 24 additions and 168 deletions

View File

@@ -89,7 +89,8 @@ fn i64 rn_get_line_spacing(rn_font_t *font) {
}
fn v2f32_t rn_base_draw_string(rn_font_t *font, s8_t string, v2f32_t pos, v4f32_t color, b32 draw) {
pos.y += rn_get_line_spacing(font) + font->descent;
// old formula :: pos.y += rn_get_line_spacing(font) + font->descent;
pos.y += font->ascent;
v2f32_t original_pos = pos;
for (utf8_iter_t iter = utf8_iterate_ex(string.str, (int)string.len); iter.item; utf8_advance(&iter)) {