SharpVectors.Dom.Svg.SvgTextContentElement._getGDIStyle C# (CSharp) 메소드

_getGDIStyle() 개인적인 메소드

private _getGDIStyle ( ) : int
리턴 int
        private int _getGDIStyle()
        {
            int style = (int)FontStyle.Regular;
            string fontWeight = GetPropertyValue("font-weight");
            if(fontWeight == "bold" || fontWeight == "bolder" || fontWeight == "600" || fontWeight == "700" || fontWeight == "800" || fontWeight == "900")
            {
                style = style | (int)FontStyle.Bold;
            }

            if(GetPropertyValue("font-style")=="italic")
            {
                style = style | (int)FontStyle.Italic;
            }

            string textDeco = GetPropertyValue("text-decoration");
            if(textDeco=="line-through")
            {
                style = style | (int)FontStyle.Strikeout;
            }
            else if(textDeco=="underline")
            {
                style = style | (int)FontStyle.Underline;
            }
            return style;
        }