[directwrite] Rename font_get_font to font_get_dw_font

https://github.com/harfbuzz/harfbuzz/pull/5079#pullrequestreview-2627407692
This commit is contained in:
Khaled Hosny 2025-02-20 21:56:56 +02:00
parent f012442f98
commit 03cf1565f5
4 changed files with 5 additions and 5 deletions

View file

@ -352,7 +352,7 @@ hb_coretext_font_set_funcs
hb_directwrite_face_create
hb_directwrite_face_get_font_face
hb_directwrite_font_create
hb_directwrite_font_get_font
hb_directwrite_font_get_dw_font
</SECTION>
<SECTION>

View file

@ -944,7 +944,7 @@ done:
}
/**
* hb_directwrite_font_get_font:
* hb_directwrite_font_get_dw_font:
* @font: a #hb_font_t object
*
* Gets the DirectWrite IDWriteFont associated with @font.
@ -954,7 +954,7 @@ done:
* XSince: REPLACEME
**/
IDWriteFont *
hb_directwrite_font_get_font (hb_font_t *font)
hb_directwrite_font_get_dw_font (hb_font_t *font)
{
return (IDWriteFont *) (const void *) font->data.directwrite;
}

View file

@ -39,7 +39,7 @@ HB_EXTERN hb_font_t *
hb_directwrite_font_create (IDWriteFont *dw_font);
HB_EXTERN IDWriteFont *
hb_directwrite_font_get_font (hb_font_t *font);
hb_directwrite_font_get_dw_font (hb_font_t *font);
HB_END_DECLS

View file

@ -113,7 +113,7 @@ test_native_directwrite_basic (void)
font = hb_directwrite_font_create (dwfont);
dwfont2 = hb_directwrite_font_get_font (font);
dwfont2 = hb_directwrite_font_get_dw_font (font);
g_assert_true (dwfont2 == dwfont);