[Bug 58677] New: GetGlyphOutlineW returns wrong values
http://bugs.winehq.org/show_bug.cgi?id=58677 Bug ID: 58677 Summary: GetGlyphOutlineW returns wrong values Product: Wine Version: 10.14 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 Assignee: wine-bugs(a)winehq.org Reporter: kyle.kcsoftwares(a)gmail.com Distribution: --- GetGlyphOutlineW returns wrong values Test program : #include <windows.h> #include <cstdio> using namespace std; int main(void) { LOGFONT lf; ZeroMemory(&lf, sizeof(lf)); lf.lfHeight = -14; lf.lfCharSet = DEFAULT_CHARSET; lstrcpy(lf.lfFaceName, TEXT("Tahoma")); if (HFONT hFont = CreateFontIndirect(&lf)) { if (HDC hDC = CreateCompatibleDC(NULL)) { HGDIOBJ hFontOld = SelectObject(hDC, hFont); { MAT2 mat2; mat2.eM11.fract = 0; mat2.eM12.fract = 0; mat2.eM21.fract = 0; mat2.eM22.fract = 0; mat2.eM11.value = 1; mat2.eM12.value = 0; mat2.eM21.value = 0; mat2.eM22.value = 1; GLYPHMETRICS gm; DWORD dwRet = GetGlyphOutlineW(hDC, L'A', GGO_METRICS, &gm, 0, NULL, &mat2); printf("dwRet: 0x%lX, GetLastError(): %ld\n", dwRet, GetLastError()); printf("gmBlackBoxX: %u\n", gm.gmBlackBoxX); printf("gmBlackBoxY: %u\n", gm.gmBlackBoxY); printf("gmptGlyphOrigin.x: %ld\n", gm.gmptGlyphOrigin.x); printf("gmptGlyphOrigin.y: %ld\n", gm.gmptGlyphOrigin.y); printf("gmCellIncX: %d\n", gm.gmCellIncX); printf("gmCellIncY: %d\n", gm.gmCellIncY); } SelectObject(hDC, hFontOld); DeleteDC(hDC); } DeleteObject(hFont); } return 0; } -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58677 KRosUser <kyle.kcsoftwares(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Ubuntu -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58677 --- Comment #1 from KRosUser <kyle.kcsoftwares(a)gmail.com> --- Created attachment 79266 --> http://bugs.winehq.org/attachment.cgi?id=79266 Screenshot (Wine 10.14) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58677 --- Comment #2 from KRosUser <kyle.kcsoftwares(a)gmail.com> --- Created attachment 79267 --> http://bugs.winehq.org/attachment.cgi?id=79267 Screenshot (Win 11) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58677 --- Comment #3 from KRosUser <kyle.kcsoftwares(a)gmail.com> --- dwRet is incorrect (0x1 instead of 0x1C) gmptGlyphOrigin.x is incorrect (-1 instead of 0) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58677 --- Comment #4 from KRosUser <kyle.kcsoftwares(a)gmail.com> --- Maybe related to https://bugs.winehq.org/show_bug.cgi?id=58314 ? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58677 KRosUser <kyle.kcsoftwares(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://jira.reactos.org/br | |owse/CORE-14928 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla