[font] Move hb_font_t typedef

This is needed to avoid circular header dependencies.
This commit is contained in:
Matthias Clasen 2022-12-21 07:42:36 -05:00 committed by Behdad Esfahbod
parent 8364d9130f
commit 32ce29f99e
3 changed files with 9 additions and 11 deletions

View File

@ -915,6 +915,14 @@ typedef struct hb_glyph_extents_t {
hb_position_t height;
} hb_glyph_extents_t;
/**
* hb_font_t:
*
* Data type for holding fonts.
*
*/
typedef struct hb_font_t hb_font_t;
HB_END_DECLS
#endif /* HB_COMMON_H */

View File

@ -38,15 +38,6 @@
HB_BEGIN_DECLS
/**
* hb_font_t:
*
* Data type for holding fonts.
*
*/
typedef struct hb_font_t hb_font_t;
/*
* hb_font_funcs_t
*/

View File

@ -29,8 +29,7 @@
#ifndef HB_PAINT_H
#define HB_PAINT_H
#include "hb.h"
#include "hb-font.h"
#include "hb-common.h"
HB_BEGIN_DECLS