[−][src]Struct core_graphics::font::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]
&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]
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]
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]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
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.
fn to_owned(&self) -> T
[src]
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.
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>,