5litehtml::el_font::el_font(
const std::shared_ptr<litehtml::document>& doc) : html_tag(doc)
10litehtml::el_font::~el_font()
15void litehtml::el_font::parse_attributes()
17 const tchar_t* str = get_attr(_t(
"color"));
20 m_style.add_property(_t(
"color"), str, 0,
false);
23 str = get_attr(_t(
"face"));
26 m_style.add_property(_t(
"font-face"), str, 0,
false);
29 str = get_attr(_t(
"size"));
35 m_style.add_property(_t(
"font-size"), _t(
"x-small"), 0,
false);
38 m_style.add_property(_t(
"font-size"), _t(
"xx-large"), 0,
false);
44 m_style.add_property(_t(
"font-size"), _t(
"small"), 0,
false);
47 m_style.add_property(_t(
"font-size"), _t(
"medium"), 0,
false);
50 m_style.add_property(_t(
"font-size"), _t(
"large"), 0,
false);
53 m_style.add_property(_t(
"font-size"), _t(
"x-large"), 0,
false);
59 html_tag::parse_attributes();