SFEditor.SFWidget.GenerateHTML C# (CSharp) Method

GenerateHTML() private method

private GenerateHTML ( ) : string
return string
        private string GenerateHTML()
        {
            string html = "<html><head><style>body {";

            html += "font-family: " + font + ";";

            if (radioButton2.Active)
                html += "src: url(" + fontloc + ");";

            if (_core.Bold)
                html += "font-weight: bold;";

            if (_core.Italic)
                html += "font-style: italic;";

            html += _core.Kerning ? "font-kerning: normal;" : "font-kerning: none;";

            html += "font-size: " + _core.Size + ";";

            html += "letter-spacing: " + _core.Spacing + ";";

            html += "background-color: " + color_back.Color.ToHexString().Substring(0, 7) + ";";

            html += "color: " + color_font.Color.ToHexString().Substring(0, 7) + ";";

            html += "}</style></head><body>";

            html += entry_text.Text;

            html += "</body></html>";

            return html;
        }