Struct core_graphics::font::CGFont
source · pub struct CGFont(_);
Implementations
sourceimpl CGFont
impl CGFont
pub fn type_id() -> CFTypeID
pub fn from_data_provider(provider: CGDataProvider) -> Result<CGFont, ()>
pub fn from_name(name: &CFString) -> Result<CGFont, ()>
pub fn create_copy_from_variations(
&self,
vars: &CFDictionary<CFString, CFNumber>
) -> Result<CGFont, ()>
pub fn postscript_name(&self) -> CFString
pub fn get_glyph_b_boxes(&self, glyphs: &[CGGlyph], bboxes: &mut [CGRect]) -> bool
pub fn get_glyph_advances(
&self,
glyphs: &[CGGlyph],
advances: &mut [c_int]
) -> bool
pub fn get_units_per_em(&self) -> c_int
pub fn copy_table_for_tag(&self, tag: u32) -> Option<CFData>
Trait Implementations
impl Send for CGFont
impl Sync for CGFont
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more