Good bye chunky fonts, closes #9441
This commit is contained in:
parent
d94ac4b949
commit
47b2455a62
|
@ -506,7 +506,7 @@ float BitmapFont::draw_char(RID p_canvas_item, const Point2 &p_pos, CharType p_c
|
|||
cpos.y += c->v_align;
|
||||
ERR_FAIL_COND_V(c->texture_idx < -1 || c->texture_idx >= textures.size(), 0);
|
||||
if (c->texture_idx != -1)
|
||||
VisualServer::get_singleton()->canvas_item_add_texture_rect_region(p_canvas_item, Rect2(cpos, c->rect.size), textures[c->texture_idx]->get_rid(), c->rect, p_modulate);
|
||||
VisualServer::get_singleton()->canvas_item_add_texture_rect_region(p_canvas_item, Rect2(cpos, c->rect.size), textures[c->texture_idx]->get_rid(), c->rect, p_modulate, false, RID(), false);
|
||||
|
||||
return get_char_size(p_char, p_next).width;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue