ExtrudedTextGeometry QML Type
为挤出文字提供几何图形。更多
Import Statement: | import QtQuick3D.Helpers |
Since: | Qt 6.9 |
Inherits: |
属性
详细说明
ExtrudedTextGeometry 为挤出文字提供几何形状。文字沿 Z 轴挤出。文本和字体可以设置,挤出深度也可以控制。生成几何体的大小由比例和深度属性控制。几何体的拓扑结构由 font.pointSize 定义。
网格的原点是文字基线的左后方。
属性文档
asynchronous : bool |
此属性表示几何体生成是否应为异步。
depth : real |
该属性用于设置挤出的深度。
font : font |
该属性用于指定渲染文字时使用的字体。
注意: 网格几何图形按字体的 pointSize 进行归一化处理,因此 pointSize 越大,文字越平滑,而不是越大。
scale : real |
该属性包含一个几何体缩放比例的标量值。该属性只影响文字大小,不影响挤出深度。
status : bool |
当异步为 true 时,此属性用于保存几何体生成的状态。
常数 | 说明 |
---|---|
ExtrudedTextGeometry.Null | 几何体生成尚未开始 |
ExtrudedTextGeometry.Ready | 几何体生成已完成。 |
ExtrudedTextGeometry.Loading | 几何体生成正在进行。 |
ExtrudedTextGeometry.Error | 几何体生成失败。 |
text : string |
该属性包含将被挤出的文本。
© 2025 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.