pub fn bounding_rect_for_glyph(
        &self,
        orientation: FontOrientation,
        index: u32,
    ) -> Rect<f64, ()> {
        let cg_rect = self
            .ct_font
            .get_bounding_rects_for_glyphs(orientation as CTFontOrientation, &[index as CGGlyph]);

        Rect::new(
            Point2D::new(cg_rect.origin.x, cg_rect.origin.y),
            Size2D::new(cg_rect.size.width, cg_rect.size.height),
        )
    }
/// The the bounding rect of a glyph
The the bounding rect of a glyph
The the bounding rect of a glyph
pub fn bounding_rect_for_glyph(
        &self,
        orientation: FontOrientation,
        index: u32,
    ) -> Rect<f64, ()> {
        let cg_rect = self
            .ct_font
            .get_bounding_rects_for_glyphs(orientation as CTFontOrientation, &[index as CGGlyph]);
        Rect::new(
            Point2D::new(cg_rect.origin.x, cg_rect.origin.y),
            Size2D::new(cg_rect.size.width, cg_rect.size.height),
        )
    }
pub fn bounding_rect_for_glyph ( & self , orientation : FontOrientation , index : u32 , ) -> Rect < f64 , ( ) > { let cg_rect = self . ct_font . get_bounding_rects_for_glyphs ( orientation as CTFontOrientation , & [ index as CGGlyph ] ) ; Rect :: new ( Point2D :: new ( cg_rect . origin . x , cg_rect . origin . y ) , Size2D :: new ( cg_rect . size . width , cg_rect . size . height ) , ) }
The the bounding rect of a glyph
The the bounding rect of a glyph
&self
orientation
FontOrientation
index
u32