Changed: Add font inherit style rule
--HG-- branch : develop
This commit is contained in:
parent
64e54f24c1
commit
dafd8cf7f7
1 changed files with 11 additions and 0 deletions
|
@ -6381,6 +6381,17 @@ namespace NLGUI
|
||||||
// first pass: get font-size for 'em' sizes
|
// first pass: get font-size for 'em' sizes
|
||||||
for (it=styles.begin(); it != styles.end(); ++it)
|
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->first == "font-size")
|
||||||
{
|
{
|
||||||
if (it->second == "inherit")
|
if (it->second == "inherit")
|
||||||
|
|
Loading…
Reference in a new issue