pub struct TextEngine<'a> { /* private fields */ }Expand description
Unicode text engine backed only by explicit fonts.
Implementations§
Source§impl<'a> TextEngine<'a>
impl<'a> TextEngine<'a>
Sourcepub const fn new(fonts: &'a FontManager) -> Self
pub const fn new(fonts: &'a FontManager) -> Self
Creates an engine over an explicit deterministic registry.
Sourcepub fn layout(&self, text: &str, options: &TextOptions) -> Result<TextLayout>
pub fn layout(&self, text: &str, options: &TextOptions) -> Result<TextLayout>
Performs line breaking, BiDi run construction, font fallback, shaping, and measurement.
Auto Trait Implementations§
impl<'a> Freeze for TextEngine<'a>
impl<'a> RefUnwindSafe for TextEngine<'a>
impl<'a> Send for TextEngine<'a>
impl<'a> Sync for TextEngine<'a>
impl<'a> Unpin for TextEngine<'a>
impl<'a> UnsafeUnpin for TextEngine<'a>
impl<'a> UnwindSafe for TextEngine<'a>
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
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.