[−][src]Struct sixtyfps_corelib::font::Font
Fields
pixel_size: f32
Implementations
impl Font
[src]
pub fn string_to_glyphs<'a>(
&'a self,
text: &'a str
) -> impl Iterator<Item = (usize, char, u32)> + 'a
[src]
&'a self,
text: &'a str
) -> impl Iterator<Item = (usize, char, u32)> + 'a
pub fn text_width(&self, text: &str) -> f32
[src]
pub fn text_offset_for_x_position<'a>(&self, text: &'a str, x: f32) -> usize
[src]
pub fn glyph_metrics(&self, glyph: u32) -> GlyphMetrics
[src]
pub fn ascent(&self) -> f32
[src]
pub fn descent(&self) -> f32
[src]
pub fn height(&self) -> f32
[src]
pub fn rasterize_glyph(
&self,
glyph_id: u32
) -> (f32, f32, ImageBuffer<Rgba<u8>, Vec<u8>>)
[src]
&self,
glyph_id: u32
) -> (f32, f32, ImageBuffer<Rgba<u8>, Vec<u8>>)
pub fn handle(&self) -> Rc<PlatformFont>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Font
impl !Send for Font
impl !Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,