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

dwrite/fallback: Consider character size for returned mapped length.

parent a42b22e0
......@@ -2265,7 +2265,7 @@ static UINT32 fallback_font_get_supported_length(IDWriteFont3 *font, IDWriteText
while (!text_source_get_next_u32_char(&context))
{
if (!IDWriteFont3_HasCharacter(font, context.ch)) break;
mapped++;
mapped += context.ch > 0xffff ? 2 : 1;
}
return mapped;
......
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