mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
[Complex Text Layouts] Refactor Font class, default themes and controls to use Text Server interface.
Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
This commit is contained in:
@@ -121,12 +121,7 @@ void Container::fit_child_in_rect(Control *p_child, const Rect2 &p_rect) {
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
p_child->set_anchor(Margin(i), ANCHOR_BEGIN);
|
||||
}
|
||||
|
||||
p_child->set_position(r.position);
|
||||
p_child->set_size(r.size);
|
||||
p_child->set_rect(r);
|
||||
p_child->set_rotation(0);
|
||||
p_child->set_scale(Vector2(1, 1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user