From 0789483dfcb00323fae3744607e09bbfefda5be0 Mon Sep 17 00:00:00 2001 From: Phil Krylov Date: Mon, 22 Aug 2005 14:08:04 +0000 Subject: [PATCH] Automatically set default font after parsing a font table in RichEdit RTF reader. --- dlls/riched20/reader.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlls/riched20/reader.c b/dlls/riched20/reader.c index d79dac26e14..d12b330cb36 100644 --- a/dlls/riched20/reader.c +++ b/dlls/riched20/reader.c @@ -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); }