Skip to main content

OtShapeContext

Struct OtShapeContext 

Source
pub(crate) struct OtShapeContext<'a, 'u> {
    pub plan: &'a hb_ot_shape_plan_t,
    pub face: &'a hb_font_t<'a>,
    pub buffer: &'a mut hb_buffer_t,
    pub features: &'a [Feature],
    pub target_direction: Direction,
    pub point_size: Option<f32>,
    pub font_funcs: &'a mut FontFuncsDispatch<'a, 'u>,
}

Fields§

§plan: &'a hb_ot_shape_plan_t§face: &'a hb_font_t<'a>§buffer: &'a mut hb_buffer_t§features: &'a [Feature]§target_direction: Direction§point_size: Option<f32>§font_funcs: &'a mut FontFuncsDispatch<'a, 'u>

Implementations§

Source§

impl OtShapeContext<'_, '_>

Source

fn glyph_h_advances(&mut self)

Source

pub(crate) fn shape_internal(&mut self)

Source

fn substitute_pre(&mut self)

Source

fn substitute_post(&mut self)

Source

fn substitute_default(&mut self)

Source

fn substitute_plan(&mut self)

Source

fn position(&mut self)

Source

fn position_default(&mut self)

Source

fn position_plan(&mut self)

Source

fn position_by_plan(&mut self)

Source

fn initialize_masks(&mut self)

Source

fn setup_masks(&mut self)

Source

fn setup_masks_fraction(&mut self)

Source

fn set_unicode_props(&mut self)

Source

fn insert_dotted_circle(&mut self)

Source

fn rotate_chars(&mut self)

Auto Trait Implementations§

§

impl<'a, 'u> Freeze for OtShapeContext<'a, 'u>

§

impl<'a, 'u> !RefUnwindSafe for OtShapeContext<'a, 'u>

§

impl<'a, 'u> !Send for OtShapeContext<'a, 'u>

§

impl<'a, 'u> !Sync for OtShapeContext<'a, 'u>

§

impl<'a, 'u> Unpin for OtShapeContext<'a, 'u>

§

impl<'a, 'u> UnsafeUnpin for OtShapeContext<'a, 'u>

§

impl<'a, 'u> !UnwindSafe for OtShapeContext<'a, 'u>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.