Struct core_text::font::CTFont[][src]

pub struct CTFont(_);

Implementations

impl CTFont[src]

impl CTFont[src]

pub fn copy_to_CGFont(&self) -> CGFont[src]

pub fn copy_descriptor(&self) -> CTFontDescriptor[src]

pub fn clone_with_font_size(&self, size: f64) -> CTFont[src]

pub fn clone_with_symbolic_traits(
    &self,
    trait_value: CTFontSymbolicTraits,
    trait_mask: CTFontSymbolicTraits
) -> Option<CTFont>
[src]

pub fn family_name(&self) -> String[src]

pub fn face_name(&self) -> String[src]

pub fn unique_name(&self) -> String[src]

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

pub fn display_name(&self) -> String[src]

pub fn style_name(&self) -> String[src]

pub fn all_traits(&self) -> CTFontTraits[src]

pub fn ascent(&self) -> CGFloat[src]

pub fn descent(&self) -> CGFloat[src]

pub fn underline_thickness(&self) -> CGFloat[src]

pub fn underline_position(&self) -> CGFloat[src]

pub fn slant_angle(&self) -> CGFloat[src]

pub fn cap_height(&self) -> CGFloat[src]

pub fn bounding_box(&self) -> CGRect[src]

pub fn leading(&self) -> CGFloat[src]

pub fn units_per_em(&self) -> c_uint[src]

pub fn x_height(&self) -> CGFloat[src]

pub fn pt_size(&self) -> CGFloat[src]

pub fn get_glyph_with_name(&self, glyph_name: &str) -> CGGlyph[src]

pub unsafe fn get_glyphs_for_characters(
    &self,
    characters: *const UniChar,
    glyphs: *mut CGGlyph,
    count: CFIndex
) -> bool
[src]

pub unsafe fn get_advances_for_glyphs(
    &self,
    orientation: CTFontOrientation,
    glyphs: *const CGGlyph,
    advances: *mut CGSize,
    count: CFIndex
) -> f64
[src]

pub unsafe fn get_vertical_translations_for_glyphs(
    &self,
    orientation: CTFontOrientation,
    glyphs: *const CGGlyph,
    translations: *mut CGSize,
    count: CFIndex
)
[src]

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

pub fn get_available_font_tables(&self) -> Option<CFArray<CTFontTableTag>>[src]

pub fn get_bounding_rects_for_glyphs(
    &self,
    orientation: CTFontOrientation,
    glyphs: &[CGGlyph]
) -> CGRect
[src]

pub fn draw_glyphs(
    &self,
    glyphs: &[CGGlyph],
    positions: &[CGPoint],
    context: CGContext
)
[src]

pub fn url(&self) -> Option<CFURL>[src]

pub fn get_variation_axes(
    &self
) -> Option<CFArray<CFDictionary<CFString, CFType>>>
[src]

pub fn create_path_for_glyph(
    &self,
    glyph: CGGlyph,
    matrix: &CGAffineTransform
) -> Result<CGPath, ()>
[src]

pub fn glyph_count(&self) -> CFIndex[src]

Trait Implementations

impl Clone for CTFont[src]

impl ConcreteCFType for CTFont[src]

impl Debug for CTFont[src]

impl Drop for CTFont[src]

impl Eq for CTFont[src]

impl PartialEq<CTFont> for CTFont[src]

impl Send for CTFont[src]

impl Sync for CTFont[src]

impl TCFType for CTFont[src]

type Ref = CTFontRef

The reference type wrapped inside this type.

impl<'a> ToVoid<CTFont> for &'a CTFont[src]

impl ToVoid<CTFont> for CTFont[src]

impl ToVoid<CTFont> for CTFontRef[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> FromMutVoid for T where
    T: TCFType
[src]

impl<T> FromVoid for T where
    T: TCFType
[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.