pub struct BitmapSource { /* private fields */ }Expand description
The built-in five-by-seven font at whole-number scales.
Implementations§
Source§impl BitmapSource
impl BitmapSource
Trait Implementations§
Source§impl Debug for BitmapSource
impl Debug for BitmapSource
Source§impl Default for BitmapSource
impl Default for BitmapSource
Source§impl GlyphSource for BitmapSource
impl GlyphSource for BitmapSource
Source§fn metrics(&self, size_px: u16) -> FontMetrics
fn metrics(&self, size_px: u16) -> FontMetrics
Vertical metrics at
size_px.Source§fn glyph_id(&self, ch: char) -> Option<GlyphId>
fn glyph_id(&self, ch: char) -> Option<GlyphId>
The glyph a character maps to, or
None if this source has none. Read moreSource§fn glyph_metrics(
&mut self,
glyph: GlyphId,
size_px: u16,
) -> Option<GlyphMetrics>
fn glyph_metrics( &mut self, glyph: GlyphId, size_px: u16, ) -> Option<GlyphMetrics>
Metrics for one glyph, without rasterising it. Read more
Source§fn rasterise(&mut self, glyph: GlyphId, size_px: u16) -> Option<Rasterised<'_>>
fn rasterise(&mut self, glyph: GlyphId, size_px: u16) -> Option<Rasterised<'_>>
Rasterises one glyph. Read more
Source§fn contains(&self, ch: char) -> bool
fn contains(&self, ch: char) -> bool
Returns
true if this source has a glyph of its own for ch, as opposed
to a fallback box.Source§fn fallback_id(&self, ch: char) -> Option<GlyphId>
fn fallback_id(&self, ch: char) -> Option<GlyphId>
The glyph to draw for a character this source does not have. Read more
Source§fn snap_size(&self, size_px: u16) -> u16
fn snap_size(&self, size_px: u16) -> u16
Sizes this source can actually produce, or
None if it is continuous. Read moreAuto Trait Implementations§
impl Freeze for BitmapSource
impl RefUnwindSafe for BitmapSource
impl Send for BitmapSource
impl Sync for BitmapSource
impl Unpin for BitmapSource
impl UnsafeUnpin for BitmapSource
impl UnwindSafe for BitmapSource
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