Commit eae84e7d authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Return earlier from GetKerningPairAdjustments() when pair kerning is not supported.

parent ed3b5a42
...@@ -880,6 +880,11 @@ static HRESULT WINAPI dwritefontface1_GetKerningPairAdjustments(IDWriteFontFace2 ...@@ -880,6 +880,11 @@ static HRESULT WINAPI dwritefontface1_GetKerningPairAdjustments(IDWriteFontFace2
return E_INVALIDARG; return E_INVALIDARG;
} }
if (!This->has_kerning_pairs) {
memset(adjustments, 0, count*sizeof(INT32));
return S_OK;
}
for (i = 0; i < count-1; i++) for (i = 0; i < count-1; i++)
adjustments[i] = freetype_get_kerning_pair_adjustment(iface, indices[i], indices[i+1]); adjustments[i] = freetype_get_kerning_pair_adjustment(iface, indices[i], indices[i+1]);
adjustments[count-1] = 0; adjustments[count-1] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment