You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
@@ -216,9 +216,11 @@ void Label::_shape() const {
|
|||||||
bool lines_hidden = visible_lines > 0 && visible_lines < total_line_count;
|
bool lines_hidden = visible_lines > 0 && visible_lines < total_line_count;
|
||||||
|
|
||||||
int line_index = 0;
|
int line_index = 0;
|
||||||
for (Paragraph ¶ : paragraphs) {
|
|
||||||
if (autowrap_mode == TextServer::AUTOWRAP_OFF) {
|
if (autowrap_mode == TextServer::AUTOWRAP_OFF) {
|
||||||
minsize.width = 0.0f;
|
minsize.width = 0.0f;
|
||||||
|
}
|
||||||
|
for (Paragraph ¶ : paragraphs) {
|
||||||
|
if (autowrap_mode == TextServer::AUTOWRAP_OFF) {
|
||||||
for (const RID &line_rid : para.lines_rid) {
|
for (const RID &line_rid : para.lines_rid) {
|
||||||
if (minsize.width < TS->shaped_text_get_size(line_rid).x) {
|
if (minsize.width < TS->shaped_text_get_size(line_rid).x) {
|
||||||
minsize.width = TS->shaped_text_get_size(line_rid).x;
|
minsize.width = TS->shaped_text_get_size(line_rid).x;
|
||||||
|
|||||||
Reference in New Issue
Block a user