skia_safe::shaper

Type Alias Shaper

Source
pub type Shaper = RefHandle<SkShaper>;

Aliased Type§

struct Shaper(/* private fields */);

Implementations§

Source§

impl Shaper

Source

pub fn new_primitive() -> Self

👎Deprecated since 0.74.0: use shapers::primitive::primitive_text()
Source

pub fn new_shaper_driven_wrapper( fallback_font_mgr: impl Into<Option<FontMgr>>, ) -> Option<Self>

Source

pub fn new_shape_then_wrap( fallback_font_mgr: impl Into<Option<FontMgr>>, ) -> Option<Self>

Source

pub fn new_shape_dont_wrap_or_reorder( fallback_font_mgr: impl Into<Option<FontMgr>>, ) -> Option<Self>

👎Deprecated since 0.74.0: use shapers::hb::shape_dont_wrap_or_reorder()
Source

pub fn purge_harf_buzz_cache()

Source

pub fn new_core_text() -> Option<Self>

Source

pub fn new(font_mgr: impl Into<Option<FontMgr>>) -> Self

Source

pub fn purge_caches()

Source§

impl Shaper

Source

pub fn new_font_mgr_run_iterator<'a>( utf8: &'a str, font: &Font, fallback: impl Into<Option<FontMgr>>, ) -> Borrows<'a, FontRunIterator>

Source

pub fn new_trivial_font_run_iterator( font: &Font, utf8_bytes: usize, ) -> FontRunIterator

Source§

impl Shaper

Source

pub fn new_bidi_run_iterator( utf8: &str, bidi_level: u8, ) -> Option<Borrows<'_, BiDiRunIterator>>

Source

pub fn new_icu_bidi_run_iterator( utf8: &str, level: u8, ) -> Option<Borrows<'_, BiDiRunIterator>>

Source

pub fn new_trivial_bidi_run_iterator( bidi_level: u8, utf8_bytes: usize, ) -> BiDiRunIterator

👎Deprecated since 0.74.0: use shapers::primitive::trivial_bidi_run_iterator()
Source§

impl Shaper

Source

pub fn new_script_run_iterator( utf8: &str, script: FourByteTag, ) -> Borrows<'_, ScriptRunIterator>

Source

pub fn new_hb_icu_script_run_iterator( utf8: &str, ) -> Borrows<'_, ScriptRunIterator>

Source

pub fn new_trivial_script_run_iterator( bidi_level: u8, utf8_bytes: usize, ) -> ScriptRunIterator

👎Deprecated since 0.74.0: use shapers::primitive::trivial_script_run_iterator
Source§

impl Shaper

Source§

impl Shaper

Source

pub fn shape<'a, 'b: 'a>( &self, utf8: &str, font: &Font, left_to_right: bool, width: scalar, run_handler: &'b mut impl AsRunHandler<'a>, )

Source

pub fn shape_with_iterators<'a, 'b: 'a>( &self, utf8: &str, font_run_iterator: &mut FontRunIterator, bidi_run_iterator: &mut BiDiRunIterator, script_run_iterator: &mut ScriptRunIterator, language_run_iterator: &mut LanguageRunIterator, width: scalar, run_handler: &'b mut impl AsRunHandler<'a>, )

Source

pub fn shape_with_iterators_and_features<'a, 'b: 'a>( &self, utf8: &str, font_run_iterator: &mut FontRunIterator, bidi_run_iterator: &mut BiDiRunIterator, script_run_iterator: &mut ScriptRunIterator, language_run_iterator: &mut LanguageRunIterator, features: &[Feature], width: scalar, run_handler: &'b mut impl AsRunHandler<'a>, )

Source§

impl Shaper

Source

pub fn shape_text_blob( &self, text: &str, font: &Font, left_to_right: bool, width: scalar, offset: impl Into<Point>, ) -> Option<(TextBlob, Point)>

Trait Implementations§

Source§

impl Debug for Shaper

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Shaper

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Send for Shaper

Source§

impl Sync for Shaper