Struct core_graphics::font::CGFont
[−]
pub struct CGFont(_);
Methods
impl CGFont
[src]
pub fn type_id() -> CFTypeID
[src]
pub fn from_data_provider(provider: CGDataProvider) -> Result<CGFont, ()>
[src]
pub fn from_name(name: &CFString) -> Result<CGFont, ()>
[src]
pub fn create_copy_from_variations(
&self,
vars: &CFDictionary<CFString, CFNumber>
) -> Result<CGFont, ()>
[src]
&self,
vars: &CFDictionary<CFString, CFNumber>
) -> Result<CGFont, ()>
pub fn postscript_name(&self) -> CFString
[src]
pub fn get_glyph_b_boxes(
&self,
glyphs: &[CGGlyph],
bboxes: &mut [CGRect]
) -> bool
[src]
&self,
glyphs: &[CGGlyph],
bboxes: &mut [CGRect]
) -> bool
pub fn get_glyph_advances(
&self,
glyphs: &[CGGlyph],
advances: &mut [c_int]
) -> bool
[src]
&self,
glyphs: &[CGGlyph],
advances: &mut [c_int]
) -> bool
pub fn get_units_per_em(&self) -> c_int
[src]
[src]
pub fn copy_table_for_tag(&self, tag: u32) -> Option<CFData>
[src]
Trait Implementations
impl Drop for CGFont
impl Clone for CGFont
fn clone(&self) -> CGFont
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deref for CGFont
type Target = CGFontRef
The resulting type after dereferencing.
fn deref(&self) -> &CGFontRef
Dereferences the value.