Fixed size issue (parsesr_scale convention needs to be em_to_pixels by default).

This commit is contained in:
2025-01-10 20:50:33 -05:00
parent 79498efbf3
commit 87ab22c207
2 changed files with 6 additions and 6 deletions

View File

@@ -151,7 +151,7 @@ parser_is_glyph_empty :: #force_inline proc "contextless" ( font : Parser_Font_I
parser_scale :: #force_inline proc "contextless" ( font : Parser_Font_Info, size : f32 ) -> f32
{
// profile(#procedure)
size_scale := size > 0.0 ? parser_scale_for_pixel_height( font, size ) : parser_scale_for_mapping_em_to_pixels( font, -size )
size_scale := size > 0.0 ? parser_scale_for_mapping_em_to_pixels( font, size ) : parser_scale_for_pixel_height( font, -size )
return size_scale
}