pub struct SharedFontSystem { /* private fields */ }Expand description
会话级共享的字体系统句柄(LAY-2)。
FontSystem::new() 枚举并解析系统字体(50–300 ms)。原实现每次
build_layout_tree 都随 LayoutTree::new 新建一份——每次布局、
resize、热重载都重复支付。本类型由页面/会话级持有一份,多个
LayoutTree 通过 crate::build_layout_tree_with_fonts 注入共享
(Rc 引用计数)。
包装类型不泄漏 cosmic-text(ADR:外部依赖解耦)。
Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more