Automatically set default font after parsing a font table in RichEdit

RTF reader.
This commit is contained in:
Phil Krylov 2005-08-22 14:08:04 +00:00 committed by Alexandre Julliard
parent 306bd05f99
commit 0789483dfc
1 changed files with 8 additions and 0 deletions

View File

@ -1021,6 +1021,14 @@ static void ReadFontTbl(RTF_Info *info)
* Could check other pieces of structure here, too, I suppose.
*/
RTFRouteToken (info); /* feed "}" back to router */
/* Set default font */
info->rtfClass = rtfControl;
info->rtfMajor = rtfCharAttr;
info->rtfMinor = rtfFontNum;
info->rtfParam = info->defFont;
lstrcpyA(info->rtfTextBuf, "f");
RTFUngetToken(info);
}