diff options
author | pommicket <pommicket@gmail.com> | 2023-07-19 15:16:51 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-07-19 19:03:43 -0400 |
commit | 0d84543e4a88b74aed0dec6a9ceab80b8e44c131 (patch) | |
tree | 1ec15ab02978b08755c8e1e7555931ff4f4cb0c8 /buffer.c | |
parent | 4143734747b7b544daecdf1b8676838362c6cb59 (diff) |
kerning
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3021,6 +3021,7 @@ void buffer_render(TextBuffer *buffer, Rect r) { rgba_u32_to_floats(colors[line == cursor_line ? COLOR_CURSOR_LINE_NUMBER : COLOR_LINE_NUMBERS], text_state.color); text_state.x = x; text_state.y = y; + text_state_break_kerning(&text_state); text_utf8_with_state(font, &text_state, str); y += char_height; if (y > y2) break; @@ -3196,6 +3197,7 @@ void buffer_render(TextBuffer *buffer, Rect r) { } // next line + text_state_break_kerning(&text_state); text_state.x = render_start_x; if (text_state.y > text_state.max_y) { buffer->last_line_on_screen = line_idx; |