--- a/src/text.c Sat May 03 13:30:04 2025 +0200 +++ b/src/text.c Sat May 03 13:49:24 2025 +0200 @@ -53,7 +53,8 @@ asc_error("Rendering TTF surface failed: %s", SDL_GetError()); return; } - asc_set_scale2d(node, surface->w, surface->h); + // TODO: don't use scale - create an own fitting mesh + asc_set_scale(node, (float)surface->w, (float)surface->h, 1.f); if (asc_test_flag(text->base.data.flags, ASC_TEXT_CENTERED_FLAG)) { unsigned short newoffx = surface->w / 2; asc_vec2i pos = asc_get_position2d(node); @@ -87,9 +88,7 @@ node->update_func = asc_text_update; node->flags = args.alignment; - node->position.x = (float) args.x; - node->position.y = (float) args.y; - node->position.z = ASC_SCENE_2D_DEPTH_OFFSET; + node->position = asc_vec3f_new(args.x, args.y, ASC_SCENE_2D_DEPTH_OFFSET); node->scale.depth = 1.f; text->max_width = args.max_width; text->font = asc_active_font;