From 9777c77a573267af829810fc021029df2d2b85b4 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 20 Apr 2016 21:38:19 +0300 Subject: [PATCH] dwrite: Implement IDWriteFont3::HasCharacter(). Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/dwrite/font.c | 8 ++++++-- dlls/dwrite/tests/font.c | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/dwrite/font.c b/dlls/dwrite/font.c index 0b5438efb7d..f579e19929a 100644 --- a/dlls/dwrite/font.c +++ b/dlls/dwrite/font.c @@ -1518,8 +1518,12 @@ static HRESULT WINAPI dwritefont3_GetFontFaceReference(IDWriteFont3 *iface, IDWr static BOOL WINAPI dwritefont3_HasCharacter(IDWriteFont3 *iface, UINT32 ch) { struct dwrite_font *This = impl_from_IDWriteFont3(iface); - FIXME("(%p)->(0x%x): stub\n", This, ch); - return FALSE; + BOOL ret; + + TRACE("(%p)->(0x%x)\n", This, ch); + + IDWriteFont_HasCharacter((IDWriteFont*)iface, ch, &ret); + return ret; } static DWRITE_LOCALITY WINAPI dwritefont3_GetLocality(IDWriteFont3 *iface) diff --git a/dlls/dwrite/tests/font.c b/dlls/dwrite/tests/font.c index f8f878c7ce8..ae6cbcfe469 100644 --- a/dlls/dwrite/tests/font.c +++ b/dlls/dwrite/tests/font.c @@ -5810,7 +5810,6 @@ static void test_HasCharacter(void) ok(hr == S_OK, "got 0x%08x\n", hr); ret = IDWriteFont3_HasCharacter(font3, 'A'); - todo_wine ok(ret, "got %d\n", ret); IDWriteFont3_Release(font3);