[][src]Struct core_graphics::font::CGFont

pub struct CGFont(_);

Implementations

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]

pub fn postscript_name(&self) -> CFString[src]

pub fn get_glyph_b_boxes(
    &self,
    glyphs: &[CGGlyph],
    bboxes: &mut [CGRect]
) -> bool
[src]

pub fn get_glyph_advances(
    &self,
    glyphs: &[CGGlyph],
    advances: &mut [c_int]
) -> bool
[src]

pub fn get_units_per_em(&self) -> c_int[src]

pub fn copy_table_tags(&self) -> CFArray<u32>[src]

pub fn copy_table_for_tag(&self, tag: u32) -> Option<CFData>[src]

Trait Implementations

impl AsRef<CGFontRef> for CGFont[src]

impl Borrow<CGFontRef> for CGFont[src]

impl Clone for CGFont[src]

impl Deref for CGFont[src]

type Target = CGFontRef

The resulting type after dereferencing.

impl DerefMut for CGFont[src]

impl Drop for CGFont[src]

impl Send for CGFont[src]

impl Sync for CGFont[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.