Skip to content
Snippets Groups Projects
Commit 53292172 authored by Guy Albertelli's avatar Guy Albertelli Committed by Alexandre Julliard
Browse files

Finished GetTextCharsetInfo routine.

parent f7e185d2
No related branches found
No related tags found
No related merge requests found
......@@ -762,9 +762,8 @@ UINT32 WINAPI GetTextCharsetInfo(
HGDIOBJ32 hFont;
UINT32 charSet = DEFAULT_CHARSET;
LOGFONT32W lf;
CHARSETINFO csinfo;
if (fs != NULL)
FIXME(text,"(0x%x,%p,%08lx): stub\n",hdc,fs,flags);
hFont = GetCurrentObject(hdc, OBJ_FONT);
if (hFont == 0)
return(DEFAULT_CHARSET);
......@@ -772,7 +771,9 @@ UINT32 WINAPI GetTextCharsetInfo(
charSet = lf.lfCharSet;
if (fs != NULL) {
/* ... fill fontstruct too ... still to do*/
if (!TranslateCharsetInfo(charSet, &csinfo, TCI_SRCCHARSET))
return (DEFAULT_CHARSET);
memcpy(fs, &csinfo.fs, sizeof(FONTSIGNATURE));
}
return charSet;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment