ExtrudedTextGeometry QML Type

Provides geometry for extruded text. 更多...

import 语句: import QtQuick3D.Helpers
Since: Qt 6.9
继承:

几何体

特性

详细描述

ExtrudedTextGeometry provides geometry for extruded text. The text is extruded along the z-axis. The text and font can be set, and the depth of the extrusion can be controlled. The size of the generated geometry is controlled by the scale and depth properties. The topology of the geometry is defined by the font.pointSize.

The origin of the mesh is the rear left end of the text's baseline.

特性文档编制

asynchronous : bool

This property holds whether the geometry generation should be asynchronous.

depth : real

This property holds the depth of the extrusion.

font : font

This property holds the font that will be used to render the text.

注意: The mesh geometry is normalized by the font's pointSize, so a larger pointSize will result in smoother, rather than larger, text. pixelSize should not be used.

scale : real

This property holds a scalar value of how the geometry should be scaled. This property only affects the size of the text, not the depth of the extrusion.

status : bool [read-only]

This property holds the status of the geometry generation when asynchronous is true.

常量 描述
ExtrudedTextGeometry.Null The geometry generation has not started
ExtrudedTextGeometry.Ready The geometry generation is complete.
ExtrudedTextGeometry.Loading The geometry generation is in progress.
ExtrudedTextGeometry.Error The geometry generation failed.

text : string

This property holds the text that will be extruded.