From 337f4eae878842af6ca04202d87529968c2d829a Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 3 Jan 2026 17:46:26 +1100 Subject: [PATCH] more font fixes --- fonts.d | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fonts.d b/fonts.d index 017873b..8ae44d0 100644 --- a/fonts.d +++ b/fonts.d @@ -100,7 +100,7 @@ TextSize(f32 s) } FontAtlasBuf -CreateAtlas(Arena* arena, FontFace font, u32 size, UVec2 atlas_dim, bool y_origin_top = true) +CreateAtlas(Arena* arena, FontFace font, u32 size, UVec2 atlas_dim) { FontAtlasBuf abuf = { data: Alloc!(u8)(arena, atlas_dim.x * atlas_dim.y * 4), @@ -236,7 +236,6 @@ CreateAtlas(Arena* arena, FontFace font, u32 size, UVec2 atlas_dim, bool y_origi foreach(r; 0 .. bmp.rows) { y = (base - font.glyph.bitmap_top + r) + max_h; - Logf("y %s %s %s %s", baseline - font.glyph.bitmap_top +r, baseline, font.glyph.bitmap_top, r); foreach(c; 0 .. bmp.width) { x = max_w + c; @@ -258,8 +257,6 @@ CreateAtlas(Arena* arena, FontFace font, u32 size, UVec2 atlas_dim, bool y_origi f32 top = font.glyph.bitmap_top; f32 left = font.glyph.bitmap_left; - assert(y_origin_top, "only y_origin_top is currently supported"); - g.ch = cast(dchar)char_code; g.advance = cast(f32)(glyph.advance.x >> 6); g.plane_left = left;