[fontations] Try using an intermediate library

Still doesn't link.
This commit is contained in:
Behdad Esfahbod 2025-03-04 02:10:21 -07:00 committed by Khaled Hosny
parent f28daba53c
commit 2a06b85d4e
3 changed files with 11 additions and 1 deletions

View file

@ -62,7 +62,7 @@ extern "C" fn _hb_fontations_font_funcs_create() -> *mut hb_font_funcs_t {
// A helper to attach these funcs to a hb_font_t
#[no_mangle]
pub extern "C" fn hb_fontations_font_set_funcs(
pub extern "C" fn _hb_fontations_font_set_funcs(
font: *mut hb_font_t,
) {
let ffuncs = _hb_fontations_font_funcs_create ();

9
src/hb-fontations.cc Normal file
View file

@ -0,0 +1,9 @@
#include "hb-fontations.h"
extern "C" void _hb_fontations_font_set_funcs (hb_font_t *font);
void
hb_fontations_font_set_funcs (hb_font_t *font)
{
_hb_fontations_font_set_funcs (font);
}

View file

@ -699,6 +699,7 @@ if get_option('fontations').enabled()
subdir('fontations')
hb_fontations_sources = [
'hb-fontations.cc',
]
hb_fontations_headers = [