Skip to content

TTF 字体 ​

说明

直接解析字体为几何模型,并使用特殊格式来描述字体。

安装 ​

sh
npm install @poggi/three-entity
pnpm add @poggi/three-entity
yarn add @poggi/three-entity
loading

API ​

Interfaces ​

TextGeometryParameters

属性名说明类型是否必选默认值
font字体资源(通过Loader加载获取)Font是-
size字体大小number否100
depth挤出形状的深度number否50
bevelEnabled是否对形状进行倒角boolean否false
bevelThickness倒角深入原形状的深度number否10
bevelSize倒角相对形状轮廓向外延伸的距离number否8
direction排列方向ltr | rtl | tb否-