In questa pagina

ExtrudedTextGeometry QML Type

Fornisce la geometria del testo estruso. Altro...

Import Statement: import QtQuick3D.Helpers
Since: Qt 6.9
Inherits:

Geometry

Proprietà

Descrizione dettagliata

ExtrudedTextGeometry fornisce la geometria per il testo estruso. Il testo viene estruso lungo l'asse z. È possibile impostare il testo e il font, nonché controllare la profondità dell'estrusione. Le dimensioni della geometria generata sono controllate dalle proprietà scale e depth. La topologia della geometria è definita dal parametro font.pointSize.

L'origine della mesh è l'estremità posteriore sinistra della linea di base del testo.

Documentazione delle proprietà

asynchronous : bool

Questa proprietà indica se la generazione della geometria deve avvenire in modo asincrono.

depth : real

Questa proprietà indica la profondità dell'estrusione.

font : font

Questa proprietà definisce il font che verrà utilizzato per il rendering del testo.

Nota: la geometriadella mesh viene normalizzata in base al valore pointSize del font; pertanto, un valore pointSize più elevato produrrà un testo più liscio, anziché più grande. Non si dovrebbe utilizzare pixelSize.

scale : real

Questa proprietà contiene un valore scalare che indica in che misura la geometria deve essere ridimensionata. Questa proprietà influisce solo sulle dimensioni del testo, non sulla profondità dell'estrusione.

status : bool [read-only]

Questa proprietà contiene lo stato della generazione della geometria quando il valore di "asynchronous" è "true".

CostanteDescrizione
ExtrudedTextGeometry.NullLa generazione della geometria non è ancora iniziata
ExtrudedTextGeometry.ReadyLa generazione della geometria è terminata.
ExtrudedTextGeometry.LoadingLa generazione della geometria è in corso.
ExtrudedTextGeometry.ErrorLa generazione della geometria non è andata a buon fine.

text : string

Questa proprietà contiene il testo che verrà estruso.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.