public string ToCssString(float scale = 1)
{
if (_css != null && scale == 1)
{
return _css;
}
var buf = new StringBuilder();
if (IsBold)
{
buf.Append("bold ");
}
if (IsItalic)
{
buf.Append("italic ");
}
buf.Append(Size * scale);
buf.Append("px ");
buf.Append("'");
buf.Append(Family);
buf.Append("'");
return buf.ToString();
}