[directwrite] Deprecate hb_directwrite_font_get_dw_font()

This commit is contained in:
Behdad Esfahbod 2025-03-22 15:44:50 -06:00
parent 6e17bd374f
commit f0b0d92ab5
3 changed files with 9 additions and 7 deletions

View file

@ -342,6 +342,7 @@ hb_font_get_glyph_v_kerning
hb_font_get_glyph_v_kerning_func_t
HB_AAT_LAYOUT_FEATURE_TYPE_CURISVE_CONNECTION
hb_directwrite_face_get_font_face
hb_directwrite_font_get_dw_font
hb_ft_font_get_face
hb_graphite2_font_get_gr_font
</SECTION>
@ -367,7 +368,6 @@ hb_directwrite_face_create_from_file_or_fail
hb_directwrite_face_create_from_blob_or_fail
hb_directwrite_face_get_dw_font_face
hb_directwrite_font_create
hb_directwrite_font_get_dw_font
hb_directwrite_font_set_funcs
</SECTION>

View file

@ -390,16 +390,17 @@ done:
* hb_directwrite_font_get_dw_font:
* @font: a #hb_font_t object
*
* Gets the DirectWrite IDWriteFont associated with @font.
* Deprecated.
*
* Return value: DirectWrite IDWriteFont object corresponding to the given input
* Return value: Returns `NULL`.
*
* Since: 10.3.0
* XDeprecated: REPLACEME:
**/
IDWriteFont *
hb_directwrite_font_get_dw_font (hb_font_t *font)
{
return (IDWriteFont *) (const void *) font->data.directwrite;
return nullptr;
}
#endif

View file

@ -48,9 +48,6 @@ hb_directwrite_face_get_dw_font_face (hb_face_t *face);
HB_EXTERN hb_font_t *
hb_directwrite_font_create (IDWriteFont *dw_font);
HB_EXTERN IDWriteFont *
hb_directwrite_font_get_dw_font (hb_font_t *font);
HB_EXTERN void
hb_directwrite_font_set_funcs (hb_font_t *font);
@ -60,6 +57,10 @@ HB_DEPRECATED_FOR (hb_directwrite_face_get_dw_font_face)
HB_EXTERN IDWriteFontFace *
hb_directwrite_face_get_font_face (hb_face_t *face);
HB_DEPRECATED
HB_EXTERN IDWriteFont *
hb_directwrite_font_get_dw_font (hb_font_t *font);
#endif
HB_END_DECLS