pub struct LayoutEngine { /* private fields */ }Expand description
Base layout engine. Combines all the information needed to shape a font for TeX.
Implementations§
Source§impl LayoutEngine
impl LayoutEngine
Sourcepub fn new(
font: MaybeBorrow<'static, Font>,
script: Tag,
language: Option<Cow<'static, CStr>>,
features: Box<[Feature]>,
shaper_list: Vec<*const c_char>,
rgb_value: u32,
extend: f32,
slant: f32,
embolden: f32,
) -> LayoutEngine
pub fn new( font: MaybeBorrow<'static, Font>, script: Tag, language: Option<Cow<'static, CStr>>, features: Box<[Feature]>, shaper_list: Vec<*const c_char>, rgb_value: u32, extend: f32, slant: f32, embolden: f32, ) -> LayoutEngine
Create a new layout engine from the needed information
Sourcepub fn default_dir(&self) -> u8
pub fn default_dir(&self) -> u8
Get the default direction
Sourcepub fn used_graphite(&self) -> bool
pub fn used_graphite(&self) -> bool
Check whether we’re using the graphite shaper
Sourcepub fn layout_chars(&mut self, chars: &[u16], rtl: bool) -> usize
pub fn layout_chars(&mut self, chars: &[u16], rtl: bool) -> usize
Get the number of characters in the given slice
Auto Trait Implementations§
impl !Send for LayoutEngine
impl !Sync for LayoutEngine
impl !UnwindSafe for LayoutEngine
impl Freeze for LayoutEngine
impl RefUnwindSafe for LayoutEngine
impl Unpin for LayoutEngine
impl UnsafeUnpin for LayoutEngine
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