Automatically set default font after parsing a font table in RichEdit
RTF reader.
This commit is contained in:
parent
306bd05f99
commit
0789483dfc
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue