[PATCH 2/2 v2] dwrite: Return earlier from GetKerningPairAdjustments() when pair kerning is not supported
Nikolay Sivov
nsivov at codeweavers.com
Thu Jan 21 12:58:41 CST 2016
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/dwrite/font.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/dwrite/font.c b/dlls/dwrite/font.c
index dab7322..2ff3b8c 100644
--- a/dlls/dwrite/font.c
+++ b/dlls/dwrite/font.c
@@ -880,6 +880,11 @@ static HRESULT WINAPI dwritefontface1_GetKerningPairAdjustments(IDWriteFontFace2
return E_INVALIDARG;
}
+ if (!This->has_kerning_pairs) {
+ memset(adjustments, 0, count*sizeof(INT32));
+ return S_OK;
+ }
+
for (i = 0; i < count-1; i++)
adjustments[i] = freetype_get_kerning_pair_adjustment(iface, indices[i], indices[i+1]);
adjustments[count-1] = 0;
--
2.7.0.rc3
More information about the wine-patches
mailing list