const font_size::_larger font_size::larger;
const font_size::_smaller font_size::smaller;
- // font-family: family, family,... (C1/e3/N4)
+ // font-family
+ class font_family : public _base
+ {
+ public:
+ static const char* get_attr_name(){ return "font-family"; }
+ static const class _serif{} serif;
+ static const class _sans_serif{} sans_serif;
+ static const class _cursive{} cursive;
+ static const class _fantasy{} fantasy;
+ static const class _monospace{} monospace;
+ static const class _inherit{} inherit;
+
+ font_family(const _serif &) : _base(get_attr_name(), "serif") {}
+ font_family(const _sans_serif &) : _base(get_attr_name(), "sans-serif") {}
+ font_family(const _cursive &) : _base(get_attr_name(), "cursive") {}
+ font_family(const _fantasy &) : _base(get_attr_name(), "fantasy") {}
+ font_family(const _monospace &) : _base(get_attr_name(), "monospace") {}
+ font_family(const _inherit &) : _base(get_attr_name(), "inherit") {}
+ };
+ const font_family::_serif font_family::serif;
+ const font_family::_sans_serif font_family::sans_serif;
+ const font_family::_cursive font_family::cursive;
+ const font_family::_fantasy font_family::fantasy;
+ const font_family::_monospace font_family::monospace;
+ const font_family::_inherit font_family::inherit;
+
// text-align
class text_align : public _base
{