mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[WIN32K] Realize PTEXTOBJ in FontGetObject if it was not initialized
This commit is contained in:
parent
0364c58b0d
commit
6b67ef6e10
1 changed files with 13 additions and 1 deletions
|
@ -109,7 +109,7 @@ GreGetKerningPairs(
|
|||
currently selected font. If not valid, GetCharacterPlacement ignores the
|
||||
value.
|
||||
|
||||
M$ must use a preset "compiled in" support for each language based releases.
|
||||
MS must use a preset "compiled in" support for each language based releases.
|
||||
ReactOS uses FreeType, this will need to be supported. ATM this is hard coded
|
||||
for GCPCLASS_LATIN!
|
||||
|
||||
|
@ -295,6 +295,18 @@ FontGetObject(PTEXTOBJ plfont, ULONG cjBuffer, PVOID pvBuffer)
|
|||
ULONG cjMaxSize;
|
||||
ENUMLOGFONTEXDVW *plf = &plfont->logfont;
|
||||
|
||||
if (!(plfont->fl & TEXTOBJECT_INIT))
|
||||
{
|
||||
NTSTATUS Status;
|
||||
DPRINT1("FontGetObject font not initialized!\n");
|
||||
|
||||
Status = TextIntRealizeFont(plfont->BaseObject.hHmgr, plfont);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("FontGetObject(TextIntRealizeFont) Status = 0x%lx\n", Status);
|
||||
}
|
||||
}
|
||||
|
||||
/* If buffer is NULL, only the size is requested */
|
||||
if (pvBuffer == NULL) return sizeof(LOGFONTW);
|
||||
|
||||
|
|
Loading…
Reference in a new issue