pub struct CxFont {
pub ttf_font: TTFFont,
pub owned_font_face: OwnedFace,
pub atlas_pages: Vec<CxFontAtlasPage>,
pub shape_cache: ShapeCache,
}Fields§
§ttf_font: TTFFont§owned_font_face: OwnedFace§atlas_pages: Vec<CxFontAtlasPage>§shape_cache: ShapeCacheImplementations§
Source§impl CxFont
impl CxFont
pub fn load_from_ttf_bytes( bytes: Rc<Vec<u8>>, ) -> Result<CxFont, FaceParsingError>
pub fn get_atlas_page_id(&mut self, dpi_factor: f64, font_size: f64) -> usize
pub fn get_glyph(&mut self, c: char) -> Option<&Glyph>
pub fn get_glyph_by_id(&mut self, id: usize) -> Result<&Glyph, Error>
Auto Trait Implementations§
impl Freeze for CxFont
impl RefUnwindSafe for CxFont
impl !Send for CxFont
impl !Sync for CxFont
impl Unpin for CxFont
impl UnwindSafe for CxFont
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