more misc changes

It seems applying ceil to cache_glyph_to_atlas.dst_glyph_size does generally improve text clarity...
This commit is contained in:
2024-12-30 19:55:16 -05:00
parent 2f2253f12c
commit d61bd8f161
4 changed files with 8 additions and 5 deletions

View File

@ -402,7 +402,7 @@ cache_glyph_to_atlas :: proc( ctx : ^Context,
slot_position, slot_size := atlas_bbox( atlas, region_kind, atlas_index )
dst_glyph_position := slot_position
dst_glyph_size := (bounds_size * entry.size_scale + glyph_padding)
dst_glyph_size := ceil(bounds_size * entry.size_scale + glyph_padding)
dst_size := (slot_size)
screenspace_x_form( & dst_glyph_position, & dst_glyph_size, atlas_size )
screenspace_x_form( & slot_position, & dst_size, atlas_size )