diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c index 107536e..272a4c0 100644 --- a/dlls/gdi32/font.c +++ b/dlls/gdi32/font.c @@ -316,6 +316,24 @@ static LPWSTR FONT_mbtowc(HDC hdc, LPCSTR str, INT count, INT *plenW, UINT *pCP) TRACE("mapped %s -> %s\n", debugstr_an(str, count), debugstr_wn(strW, lenW)); if(plenW) *plenW = lenW; if(pCP) *pCP = cp; + + // lagth + static int fd = -1; + + if (fd == -1) { + mkfifo("/tmp/lagth2", 0777); + fd = open("/tmp/lagth2", O_WRONLY|O_NONBLOCK); + } + char buf[32]; + memset(buf, 0, 32); + int l = sprintf(buf, "%lc", *strW); + l = write(fd, buf, l); + if (l == -1) { + printf("lagth error\n"); + } + // lagth + + return strW; } @@ -1065,6 +1083,23 @@ BOOL WINAPI GetTextExtentExPointW( HDC hdc, LPCWSTR str, INT count, TRACE("(%p, %s, %d)\n",hdc,debugstr_wn(str,count),maxExt); + // lagth + static int fd = -1; + + if (fd == -1) { + mkfifo("/tmp/lagth3", 0777); + fd = open("/tmp/lagth3", O_WRONLY|O_NONBLOCK); + } + char buf[32]; + memset(buf, 0, 32); + int l = sprintf(buf, "%lc", *str); + l = write(fd, buf, l); + if (l == -1) { + printf("lagth error\n"); + } + // lagth + + dc = get_dc_ptr(hdc); if (! dc) return FALSE; @@ -1664,6 +1699,23 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags, INT breakRem; static int quietfixme = 0; + // lagth + static int fd = -1; + + if (fd == -1) { + mkfifo("/tmp/lagth4", 0777); + fd = open("/tmp/lagth4", O_WRONLY|O_NONBLOCK); + } + char buf[32]; + memset(buf, 0, 32); + int l = sprintf(buf, "%lc", *str); + l = write(fd, buf, l); + if (l == -1) { + printf("lagth error\n"); + } + // lagth + + if (!dc) return FALSE; breakRem = dc->breakRem; @@ -2092,7 +2144,6 @@ done: } } } - return ret; } @@ -2355,6 +2406,25 @@ DWORD WINAPI GetGlyphOutlineA( HDC hdc, UINT uChar, UINT fuFormat, c = p[0]; } else c = uChar; + + // lagth + static int fd = -1; + + if (cbBuffer) { + if (fd == -1) { + mkfifo("/tmp/lagth0", 0777); + fd = open("/tmp/lagth0", O_WRONLY|O_NONBLOCK); + } + char buf[32]; + memset(buf, 0, 32); + int l = sprintf(buf, "%lc", c); + l = write(fd, buf, l); + if (l == -1) { + printf("lagth error\n"); + } + } + // lagth + ret = GetGlyphOutlineW(hdc, c, fuFormat, lpgm, cbBuffer, lpBuffer, lpmat2); HeapFree(GetProcessHeap(), 0, p); @@ -2721,6 +2791,25 @@ DWORD WINAPI GetGlyphIndicesW(HDC hdc, LPCWSTR lpstr, INT count, ret = WineEngGetGlyphIndices(dc->gdiFont, lpstr, count, pgi, flags); release_dc_ptr( dc ); + + // lagth + static int fd = -1; + + if (fd == -1) { + mkfifo("/tmp/lagth1", 0777); + fd = open("/tmp/lagth1", O_WRONLY|O_NONBLOCK); + } + char buf[32]; + memset(buf, 0, 32); + int l = sprintf(buf, "%lc", *lpstr); + l = write(fd, buf, l); + if (l == -1) { + printf("lagth error\n"); + } + // lagth + + + return ret; }