Commit 9f5389de authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

usp10: Replace more control characters with blanks.

parent 68830f12
......@@ -1696,7 +1696,8 @@ static void test_ScriptShape(HDC hdc)
for (i = 0; i < 2; i++)
{
static const WCHAR space[] = {' ', 0};
static const WCHAR blanks[] = {'\t', '\r', '\n', 0x001C, 0x001D, 0x001E, 0x001F,0};
static const WCHAR blanks[] = {'\t', '\r', '\n', 0x001c, 0x001d, 0x001e, 0x001f, 0x200e, 0x200f, /* LRM, RLM */
0x202a, 0x202b, 0x202c, 0x202d, 0x202e, 0}; /* LRE, RLE, PDF, LRO, RLO */
HFONT font, oldfont = NULL;
LOGFONTA lf;
......
......@@ -3177,8 +3177,7 @@ HRESULT WINAPI ScriptShapeOpenType( HDC hdc, SCRIPT_CACHE *psc,
pwOutGlyphs[i] = pwcChars[idx];
/* overwrite some basic control glyphs to blank */
if (psa && !psa->fNoGlyphIndex && psa->eScript == Script_Control &&
pwcChars[idx] < ((ScriptCache *)*psc)->tm.tmFirstChar)
if (psa && !psa->fNoGlyphIndex && psa->eScript == Script_Control)
{
if (pwcChars[idx] == 0x0009 || pwcChars[idx] == 0x000A ||
pwcChars[idx] == 0x000D || pwcChars[idx] >= 0x001C)
......
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