mgui-text 0.3.0

平台无关文本服务:parley 排版 / swash 字形栅格化 / glyph atlas / TextField 布局
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! mgui-text — 平台无关文本服务(无 wgpu / winit 依赖)。
//!
//! - [`text`]:parley 排版 + swash 字形栅格化 + R8 glyph atlas + TextRenderObject
//! - [`text_field`]:TextFieldRenderObject(布局/命中测试/IME 光标)
//!
//! GPU 纹理上传由 `mgui-runtime::renderer` 消费 [`text::atlas_snapshot`] 完成;
//! 软件光栅器消费 [`text::with_atlas`]。组件库只需依赖本 crate 做测量/绘制命令,
//! 不会把 wgpu/winit 编译进 UI 层。

#![forbid(unsafe_code)]

pub mod text;
pub mod text_field;