harfbuzz-sys 0.7.0

Rust bindings to the HarfBuzz text shaping engine
Documentation
// Copyright 2023 The Servo Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use crate::{hb_face_t, hb_font_t};

use objc2_core_graphics::CGFont;
use objc2_core_text::CTFont;

extern "C" {
    /// This requires that the `coretext` feature is enabled.
    pub fn hb_coretext_face_create(cg_font: &CGFont) -> *mut hb_face_t;
    /// This requires that the `coretext` feature is enabled.
    pub fn hb_coretext_font_create(ct_font: &CTFont) -> *mut hb_font_t;
    /// This requires that the `coretext` feature is enabled.
    pub fn hb_coretext_face_get_cg_font(face: *mut hb_face_t) -> *mut CGFont;
    /// This requires that the `coretext` feature is enabled.
    pub fn hb_coretext_font_get_ct_font(font: *mut hb_font_t) -> *mut CTFont;
}