Struct gpui2::MacTextSystem
source · pub struct MacTextSystem(_);
Implementations§
source§impl MacTextSystem
impl MacTextSystem
Trait Implementations§
source§impl Default for MacTextSystem
impl Default for MacTextSystem
source§impl PlatformTextSystem for MacTextSystem
impl PlatformTextSystem for MacTextSystem
fn add_fonts(&self, fonts: &[Arc<Vec<u8>>]) -> Result<()>
fn all_font_families(&self) -> Vec<String>
fn font_id(&self, font: &Font) -> Result<FontId>
fn font_metrics(&self, font_id: FontId) -> FontMetrics
fn typographic_bounds( &self, font_id: FontId, glyph_id: GlyphId ) -> Result<Bounds<f32>>
fn advance(&self, font_id: FontId, glyph_id: GlyphId) -> Result<Size<f32>>
fn glyph_for_char(&self, font_id: FontId, ch: char) -> Option<GlyphId>
fn glyph_raster_bounds( &self, params: &RenderGlyphParams ) -> Result<Bounds<DevicePixels>>
fn rasterize_glyph( &self, glyph_id: &RenderGlyphParams, raster_bounds: Bounds<DevicePixels> ) -> Result<(Size<DevicePixels>, Vec<u8>)>
fn layout_line( &self, text: &str, font_size: Pixels, font_runs: &[FontRun] ) -> LineLayout
fn wrap_line( &self, text: &str, font_id: FontId, font_size: Pixels, width: Pixels ) -> Vec<usize>
Auto Trait Implementations§
impl !RefUnwindSafe for MacTextSystem
impl Send for MacTextSystem
impl Sync for MacTextSystem
impl Unpin for MacTextSystem
impl UnwindSafe for MacTextSystem
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