gdi32: In a Baltic locale the last char of a symbol font is reported as 0xf8fd rather than 0xf0ff.
This commit is contained in:
parent
aecf29ae84
commit
24c9a37aaf
|
@ -5399,7 +5399,14 @@ UINT WineEngGetOutlineTextMetrics(GdiFont *font, UINT cbSize,
|
||||||
if (font->charset == SYMBOL_CHARSET || (pOS2->usFirstCharIndex >= 0xf000 && pOS2->usFirstCharIndex < 0xf100))
|
if (font->charset == SYMBOL_CHARSET || (pOS2->usFirstCharIndex >= 0xf000 && pOS2->usFirstCharIndex < 0xf100))
|
||||||
{
|
{
|
||||||
TM.tmFirstChar = 0;
|
TM.tmFirstChar = 0;
|
||||||
|
switch(GetACP())
|
||||||
|
{
|
||||||
|
case 1257: /* Baltic */
|
||||||
|
TM.tmLastChar = 0xf8fd;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
TM.tmLastChar = 0xf0ff;
|
TM.tmLastChar = 0xf0ff;
|
||||||
|
}
|
||||||
TM.tmBreakChar = 0x20;
|
TM.tmBreakChar = 0x20;
|
||||||
TM.tmDefaultChar = 0x1f;
|
TM.tmDefaultChar = 0x1f;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2277,7 +2277,14 @@ static void test_text_metrics(const LOGFONTA *lf)
|
||||||
if (lf->lfCharSet == SYMBOL_CHARSET || (cmap_first >= 0xf000 && cmap_first < 0xf100))
|
if (lf->lfCharSet == SYMBOL_CHARSET || (cmap_first >= 0xf000 && cmap_first < 0xf100))
|
||||||
{
|
{
|
||||||
expect_first_W = 0;
|
expect_first_W = 0;
|
||||||
|
switch(GetACP())
|
||||||
|
{
|
||||||
|
case 1257: /* Baltic */
|
||||||
|
expect_last_W = 0xf8fd;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
expect_last_W = 0xf0ff;
|
expect_last_W = 0xf0ff;
|
||||||
|
}
|
||||||
expect_break_W = 0x20;
|
expect_break_W = 0x20;
|
||||||
expect_default_W = expect_break_W - 1;
|
expect_default_W = expect_break_W - 1;
|
||||||
expect_first_A = 0x1e;
|
expect_first_A = 0x1e;
|
||||||
|
|
Loading…
Reference in New Issue