mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-05 13:35:06 +00:00
[directwrite] Rename font_get_font to font_get_dw_font
https://github.com/harfbuzz/harfbuzz/pull/5079#pullrequestreview-2627407692
This commit is contained in:
parent
f012442f98
commit
03cf1565f5
4 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue