Expand description
mgui-text — 平台无关文本服务(无 wgpu / winit 依赖)。
text:parley 排版 + swash 字形栅格化 + R8 glyph atlas + TextRenderObjecttext_field:TextFieldRenderObject(布局/命中测试/IME 光标)
GPU 纹理上传由 mgui-runtime::renderer 消费 text::atlas_snapshot 完成;
软件光栅器消费 text::with_atlas。组件库只需依赖本 crate 做测量/绘制命令,
不会把 wgpu/winit 编译进 UI 层。
Re-exports§
pub use runtime::with_text_runtime;pub use runtime::TextRuntime;pub use runtime::TextRuntimeHandle;
Modules§
- runtime
- 应用持有的文本运行时配置(0.7 M2)。
- text
- TextRenderObject + parley 富文本布局 + swash 栅格化 + 字形图集
- text_
field - TextFieldRenderObject — 文本输入框渲染(TextFieldWidget 在 mgui-components)