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