pub struct TextSystem { /* private fields */ }Implementations§
Source§impl TextSystem
impl TextSystem
pub fn new() -> Self
pub fn load_font_data(&mut self, data: Vec<u8>)
pub fn measure(&mut self, request: &TextLayoutRequest) -> TextMeasurement
pub fn layout(&mut self, request: &TextLayoutRequest) -> TextLayout
pub fn render_alpha_atlas( &mut self, layout: &TextLayout, config: AtlasConfig, max_glyphs: usize, ) -> AlphaAtlasRender
Trait Implementations§
Source§impl Debug for TextSystem
impl Debug for TextSystem
Auto Trait Implementations§
impl !Freeze for TextSystem
impl !RefUnwindSafe for TextSystem
impl !UnwindSafe for TextSystem
impl Send for TextSystem
impl Sync for TextSystem
impl Unpin for TextSystem
impl UnsafeUnpin for TextSystem
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