From dafd8cf7f7beceab7cce63a389c40b4d4fe1ab60 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Fri, 15 Mar 2019 15:41:02 +0200 Subject: [PATCH] Changed: Add font inherit style rule --HG-- branch : develop --- code/nel/src/gui/group_html.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index d36747a8d..783861f45 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -6381,6 +6381,17 @@ namespace NLGUI // first pass: get font-size for 'em' sizes for (it=styles.begin(); it != styles.end(); ++it) { + if (it->first == "font") + { + if (it->second == "inherit") + { + style.FontSize = current.FontSize; + style.FontFamily = current.FontFamily; + style.FontWeight = current.FontWeight; + style.FontOblique = current.FontOblique; + } + } + else if (it->first == "font-size") { if (it->second == "inherit")