Struct core_text::font::CTFont [−][src]
Implementations
impl CTFont
[src]
pub fn symbolic_traits(&self) -> CTFontSymbolicTraits
[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]
&self,
trait_value: CTFontSymbolicTraits,
trait_mask: CTFontSymbolicTraits
) -> Option<CTFont>
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]
&self,
characters: *const UniChar,
glyphs: *mut CGGlyph,
count: CFIndex
) -> bool
pub unsafe fn get_advances_for_glyphs(
&self,
orientation: CTFontOrientation,
glyphs: *const CGGlyph,
advances: *mut CGSize,
count: CFIndex
) -> f64
[src]
&self,
orientation: CTFontOrientation,
glyphs: *const CGGlyph,
advances: *mut CGSize,
count: CFIndex
) -> f64
pub unsafe fn get_vertical_translations_for_glyphs(
&self,
orientation: CTFontOrientation,
glyphs: *const CGGlyph,
translations: *mut CGSize,
count: CFIndex
)
[src]
&self,
orientation: CTFontOrientation,
glyphs: *const CGGlyph,
translations: *mut CGSize,
count: CFIndex
)
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]
&self,
orientation: CTFontOrientation,
glyphs: &[CGGlyph]
) -> CGRect
pub fn draw_glyphs(
&self,
glyphs: &[CGGlyph],
positions: &[CGPoint],
context: CGContext
)
[src]
&self,
glyphs: &[CGGlyph],
positions: &[CGPoint],
context: CGContext
)
pub fn url(&self) -> Option<CFURL>
[src]
pub fn get_variation_axes(
&self
) -> Option<CFArray<CFDictionary<CFString, CFType>>>
[src]
&self
) -> Option<CFArray<CFDictionary<CFString, CFType>>>
pub fn create_path_for_glyph(
&self,
glyph: CGGlyph,
matrix: &CGAffineTransform
) -> Result<CGPath, ()>
[src]
&self,
glyph: CGGlyph,
matrix: &CGAffineTransform
) -> Result<CGPath, ()>
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.
fn as_concrete_TypeRef(&self) -> CTFontRef
[src]
unsafe fn wrap_under_get_rule(reference: CTFontRef) -> Self
[src]
fn as_CFTypeRef(&self) -> CFTypeRef
[src]
unsafe fn wrap_under_create_rule(reference: CTFontRef) -> Self
[src]
fn type_id() -> CFTypeID
[src]
pub fn as_CFType(&self) -> CFType
[src]
pub fn into_CFType(self) -> CFType
[src]
pub fn retain_count(&self) -> isize
[src]
pub fn type_of(&self) -> usize
[src]
pub fn show(&self)
[src]
pub fn instance_of<OtherCFType>(&self) -> bool where
OtherCFType: TCFType,
[src]
OtherCFType: TCFType,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FromMutVoid for T where
T: TCFType,
[src]
T: TCFType,
pub unsafe fn from_mut_void<'a>(x: *mut c_void) -> ItemMutRef<'a, T>
[src]
impl<T> FromVoid for T where
T: TCFType,
[src]
T: TCFType,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,