vtgl

terminal emulator implemented in OpenGL
git clone anongit@rnpnr.xyz:vtgl.git
Log | Files | Refs | Feed | LICENSE

Commit: 707d530130eea3420171e25b7344bbe97c58d4fb
Parent: 9d496646ed60c7474aa532fbe0b15d65f557a6fe
Author: Randy Palamar
Date:   Sun, 27 Oct 2024 22:39:19 -0600

render_glyph: save the successful style when searching fonts for a glyph

Diffstat:
Mfont.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/font.c b/font.c @@ -201,6 +201,7 @@ render_glyph(Arena *a, FontAtlas *fa, u32 cp, u32 font_id, enum face_style style glyph_idx = stbtt_FindGlyphIndex(&fa->fonts[i][FS_NORMAL].font_info, cp); if (glyph_idx) { font_idx = i; + style = test_style; break; } }