fix bug with outside bunds calc for VEFontCache.cache_glyph

This commit is contained in:
Edward R. Gonzalez 2024-06-13 18:35:32 -04:00
parent 314582b225
commit 3402701f99
2 changed files with 3 additions and 3 deletions

View File

@ -466,8 +466,8 @@ cache_glyph :: proc( ctx : ^Context, font : FontID, glyph_index : Glyph, scale,
bounds_0, bounds_1 := parser_get_glyph_box( & entry.parser_info, glyph_index )
outside := Vec2 {
f32(bounds_0.x - 21),
f32(bounds_0.y - 33),
f32(bounds_0.x) - 21,
f32(bounds_0.y) - 33,
}
// Note(Original Author): Figure out scaling so it fits within our box.

View File

@ -51,7 +51,7 @@ render :: proc()
// ve_ctx := & font_provider.ve_font_cache
// Triangle Demo
if true
if false
{
using debug.gfx_tri_demo_state
sokol_gfx.begin_pass(sokol_gfx.Pass { action = pass_action, swapchain = sokol_glue.swapchain() })