pub struct ParleyShaper { /* private fields */ }Implementations§
Source§impl ParleyShaper
impl ParleyShaper
pub fn font_db_diagnostics_snapshot( &self, ) -> ParleyShaperFontDbDiagnosticsSnapshot
Source§impl ParleyShaper
impl ParleyShaper
pub fn new() -> Self
pub fn system_fonts_enabled(&self) -> bool
pub fn set_default_locale(&mut self, locale_bcp47: Option<String>) -> bool
pub fn set_common_fallback_stack_suffix(&mut self, suffix: String) -> bool
pub fn common_fallback_stack_suffix(&self) -> &str
pub fn all_font_names(&mut self) -> Vec<String>
pub fn all_font_catalog_entries(&mut self) -> Vec<FontCatalogEntryMetadata>
pub fn resolve_family_id(&mut self, name: &str) -> Option<FamilyId>
pub fn family_name_for_id(&mut self, id: FamilyId) -> Option<String>
pub fn generic_family_ids(&mut self, generic: GenericFamily) -> Vec<FamilyId>
pub fn set_generic_family_ids( &mut self, generic: GenericFamily, ids: &[FamilyId], ) -> bool
pub fn add_fonts(&mut self, fonts: impl IntoIterator<Item = Vec<u8>>) -> usize
pub fn for_each_font_environment_blob( &mut self, f: impl FnMut(FontEnvironmentBlobRef<'_>), )
pub fn system_font_rescan_seed(&self) -> Option<SystemFontRescanSeed>
pub fn apply_system_font_rescan_result( &mut self, result: SystemFontRescanResult, ) -> bool
pub fn shape_single_line( &mut self, input: TextInputRef<'_>, scale: f32, ) -> ShapedLineLayout
pub fn shape_paragraph_word_wrap( &mut self, input: TextInputRef<'_>, max_width_px: f32, scale: f32, ) -> Vec<(Range<usize>, ShapedLineLayout)>
pub fn shape_paragraph_word_break_wrap( &mut self, input: TextInputRef<'_>, max_width_px: f32, scale: f32, ) -> Vec<(Range<usize>, ShapedLineLayout)>
pub fn shape_paragraph_word_wrap_metrics( &mut self, input: TextInputRef<'_>, max_width_px: f32, scale: f32, ) -> Vec<(Range<usize>, ShapedLineLayout)>
pub fn shape_paragraph_word_break_wrap_metrics( &mut self, input: TextInputRef<'_>, max_width_px: f32, scale: f32, ) -> Vec<(Range<usize>, ShapedLineLayout)>
pub fn shape_single_line_metrics( &mut self, input: TextInputRef<'_>, scale: f32, ) -> ShapedLineLayout
Trait Implementations§
Source§impl Default for ParleyShaper
impl Default for ParleyShaper
Source§fn default() -> ParleyShaper
fn default() -> ParleyShaper
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ParleyShaper
impl !RefUnwindSafe for ParleyShaper
impl Send for ParleyShaper
impl Sync for ParleyShaper
impl Unpin for ParleyShaper
impl UnsafeUnpin for ParleyShaper
impl !UnwindSafe for ParleyShaper
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