Struct suzy::platform::opengl::FontFamilySourceDynamic [−][src]
A source for a font family.
This is normally created automatically using the crate suzy_build_tools
.
Fields
atlas_image: &'static [u8]
The bytes of the SDF font atlas texture.
image_channels: c_int
The number of channels in the atlas texture.
image_width: u16
The width of the atlas texture.
image_height: u16
The height of the atlas texture.
image_row_alignment: u16
The alignment of the pixel rows in the atlas texture.
normal: (u8, &'a [(char, f32, f32, f32, f32, f32, f32, f32, f32, f32)], &'a [(char, char, f32)])
The font source for the normal font.
bold: Option<(u8, &'a [(char, f32, f32, f32, f32, f32, f32, f32, f32, f32)], &'a [(char, char, f32)])>
The font source for the bold font.
italic: Option<(u8, &'a [(char, f32, f32, f32, f32, f32, f32, f32, f32, f32)], &'a [(char, char, f32)])>
The font source for the italic font.
bold_italic: Option<(u8, &'a [(char, f32, f32, f32, f32, f32, f32, f32, f32, f32)], &'a [(char, char, f32)])>
The font source for the bold and italic font.
Implementations
impl<'a> FontFamilySourceDynamic<'a>
[src]
pub fn load(&self) -> FontFamilyDynamic<'a>
[src]
Load a font family from this source.
Auto Trait Implementations
impl<'a> RefUnwindSafe for FontFamilySourceDynamic<'a>
impl<'a> Send for FontFamilySourceDynamic<'a>
impl<'a> Sync for FontFamilySourceDynamic<'a>
impl<'a> Unpin for FontFamilySourceDynamic<'a>
impl<'a> UnwindSafe for FontFamilySourceDynamic<'a>
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>,