pub(crate) unsafe fn aat_get_font_metrics(
    attributes: CFDictionaryRef,
) -> (Scaled, Scaled, Scaled, Scaled, Scaled) {
    let font = font_from_attributes(attributes);
    let ascent = CTFontGetAscent(font).into();
    let descent = CTFontGetDescent(font).into();
    let xheight = CTFontGetXHeight(font).into();
    let capheight = CTFontGetCapHeight(font).into();
    let slant = ((-CTFontGetSlantAngle(font) * std::f64::consts::PI / 180.).tan()).into();
    (ascent, descent, xheight, capheight, slant)
}
/* these are here, not XeTeX_mac.c, because we need stubs on other platforms */
these are here, not XeTeX_mac.c, because we need stubs on other platforms
these are here not XeTeX_mac . c because we need stubs on other platforms
pub(crate) unsafe fn aat_get_font_metrics(
    attributes: CFDictionaryRef,
) -> (Scaled, Scaled, Scaled, Scaled, Scaled) {
    let font = font_from_attributes(attributes);
    let ascent = CTFontGetAscent(font).into();
    let descent = CTFontGetDescent(font).into();
    let xheight = CTFontGetXHeight(font).into();
    let capheight = CTFontGetCapHeight(font).into();
    let slant = ((-CTFontGetSlantAngle(font) * std::f64::consts::PI / 180.).tan()).into();
    (ascent, descent, xheight, capheight, slant)
}
pub ( crate ) unsafe fn aat_get_font_metrics ( attributes : CFDictionaryRef , ) -> ( Scaled , Scaled , Scaled , Scaled , Scaled ) { let font = font_from_attributes ( attributes ) ; let ascent = CTFontGetAscent ( font ) . into ( ) ; let descent = CTFontGetDescent ( font ) . into ( ) ; let xheight = CTFontGetXHeight ( font ) . into ( ) ; let capheight = CTFontGetCapHeight ( font ) . into ( ) ; let slant = ( ( - CTFontGetSlantAngle ( font ) * std :: f64 :: consts :: PI / 180. ) . tan ( ) ) . into ( ) ; ( ascent , descent , xheight , capheight , slant ) }
these are here, not XeTeX_mac.c, because we need stubs on other platforms
these are here not XeTeX_mac . c because we need stubs on other platforms
attributes
CFDictionaryRef