ExtrudedTextGeometry QML Type
ExtrudedTextGeometry 允许在三维空间中创建三维文本。更多内容...
| Import Statement: | import Qt3D.Extras 2.12 |
| In C++: | QExtrudedTextGeometry |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- depth : real
- font : font
- indexAttribute : Attribute
- normalAttribute : Attribute
- positionAttribute : Attribute
- text : string
详细说明
ExtrudedTextGeometry 类型最常被ExtrudedTextMesh 类型在内部使用,但也可用于自定义的GeometryRenderer 类型中。
该几何体的原点位于文本基线的左后端。
属性文档
depth : real
保存文本的凹陷深度。
font : font
存储文本的字体。
几何形状会根据字体的 pointSize 进行归一化处理,因此 pointSize 越大,文本会显得越平滑,而非越大。不应使用 pixelSize。
indexAttribute : Attribute [read-only]
存储几何索引属性。
normalAttribute : Attribute [read-only]
存储几何体的法线属性。
positionAttribute : Attribute [read-only]
存储几何体的位置属性。
text : string
存储用于网格的文本。
© 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.