pub struct FontMeasure { /* private fields */ }Expand description
The pixel tiers: the same fonts and sizes the rasterizer draws with.
Implementations§
Source§impl FontMeasure
impl FontMeasure
Trait Implementations§
Source§impl Measure for FontMeasure
impl Measure for FontMeasure
fn advances(&self, text: &str, font: Font) -> Rc<Vec<f32>>
Source§fn row_air(&self) -> f32
fn row_air(&self) -> f32
How many times as tall as the line words are sized for a row is: 1 where a row is the
terminal’s line, and more where Cellix lays out taller rows of its own.
Source§fn shows_emoji(&self) -> bool
fn shows_emoji(&self) -> bool
Whether emoji come out as themselves here. A terminal draws its own; painted text
needs a font for them on the machine that paints it, which a server may not have.
fn width(&self, text: &str, font: Font) -> f32
Auto Trait Implementations§
impl !Freeze for FontMeasure
impl !RefUnwindSafe for FontMeasure
impl !Send for FontMeasure
impl !Sync for FontMeasure
impl !UnwindSafe for FontMeasure
impl Forget for FontMeasure
impl Move for FontMeasure
impl Unpin for FontMeasurewhere
*const u8 is !null: Unpin,
NonZero<u32>: Unpin,
Arc<dyn AsRef<[u8]> + Sync + Send>: Unpin,
Arc<Font>: Unpin,
&'static str: Unpin,
Arc<str>: Unpin,
Arc<Vec<FontMatchKey>>: Unpin,
u8: Unpin,
&'static hb_ot_shaper_t: Unpin,
Box<dyn Any + Sync + Send>: Unpin,
*const Feature is !null: Unpin,
Feature: Unpin,
InternalBitFlags: Unpin,
Align8<usize>: Unpin,
InternalBitFlags: Unpin,
*const LeafNode<MonospaceFallbackInfo, SetValZST> is !null: Unpin,
Box<(MonospaceFallbackInfo, SetValZST)>: Unpin,
Box<dyn Fallback>: Unpin,
Rc<Vec<f32>>: Unpin,
impl UnsafeUnpin for FontMeasurewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Slot<FaceInfo>>: UnsafeUnpin,
PhantomData<fn(InnerId) -> InnerId>: UnsafeUnpin,
PhantomData<fn() -> FxHasher>: UnsafeUnpin,
PhantomData<((ID, Weight), Option<Arc<Font>>)>: UnsafeUnpin,
PhantomData<ID>: UnsafeUnpin,
PhantomData<([u8; 4], Vec<ID>)>: UnsafeUnpin,
PhantomData<(ID, FontCachedCodepointSupportInfo)>: UnsafeUnpin,
PhantomData<(FontMatchAttrs, Arc<Vec<FontMatchKey>>)>: UnsafeUnpin,
PhantomData<(ID, hb_ot_shape_plan_t)>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
PhantomData<GlyphInfo>: UnsafeUnpin,
PhantomData<GlyphPosition>: UnsafeUnpin,
PhantomData<BitPage>: UnsafeUnpin,
PhantomData<PageInfo>: UnsafeUnpin,
Align8<usize>: UnsafeUnpin,
PhantomData<Script>: UnsafeUnpin,
PhantomData<ShapeSpan>: UnsafeUnpin,
PhantomData<ShapeWord>: UnsafeUnpin,
PhantomData<VisualLine>: UnsafeUnpin,
PhantomData<Vec<LayoutGlyph>>: UnsafeUnpin,
*const LeafNode<MonospaceFallbackInfo, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(MonospaceFallbackInfo, SetValZST)>>: UnsafeUnpin,
*const dyn Fallback is !null: UnsafeUnpin,
PhantomData<dyn Fallback>: UnsafeUnpin,
PhantomData<&'static str>: UnsafeUnpin,
PhantomData<(Script, Range<usize>)>: UnsafeUnpin,
PhantomData<((String, Font), Rc<Vec<f32>>)>: UnsafeUnpin,
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