pub struct FontState {
pub font_cx: FontContext,
pub layout_cx: LayoutContext<()>,
pub scale_cx: ScaleContext,
pub atlas: Atlas,
pub shape_calls: usize,
/* private fields */
}Expand description
文字渲染所需全局状态 — parley + swash 版
Fields§
§font_cx: FontContext§layout_cx: LayoutContext<()>§scale_cx: ScaleContext§atlas: Atlas§shape_calls: usizeshaping 执行次数(测试观测缓存命中用)
Auto Trait Implementations§
impl !RefUnwindSafe for FontState
impl !Send for FontState
impl !Sync for FontState
impl !UnwindSafe for FontState
impl Freeze for FontState
impl Unpin for FontState
impl UnsafeUnpin for FontState
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