remove draw / gfx, baseline
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user