actually, rely on entry point trap calculation to do exe-rdi waiting; adjust default fonts to be more consistent with windows

This commit is contained in:
Ryan Fleury
2025-06-25 08:32:48 -07:00
parent a2608261d1
commit 10a49ca331
6 changed files with 19222 additions and 4178 deletions
+1 -5
View File
@@ -2781,11 +2781,7 @@ ui_box_text_position(UI_Box *box)
FNT_Tag font = box->font;
F32 font_size = box->font_size;
FNT_Metrics font_metrics = fnt_metrics_from_tag_size(font, font_size);
result.y = floor_f32((box->rect.p0.y + box->rect.p1.y)/2.f) + font_metrics.ascent/2.f - 2.f;
if(!fnt_tag_match(font, ui_icon_font()))
{
result.y += font_metrics.descent/2;
}
result.y = floor_f32((box->rect.p0.y + box->rect.p1.y)/2.f + font_metrics.ascent/2.f - font_metrics.descent/2.f);
switch(box->text_align)
{
default: