Exemplo n.º 1
0
        public static FontStyle GetGDIPlusFontStyle(BCFontStyle pSrc)
        {
            FontStyle result = System.Drawing.FontStyle.Regular;

            if (pSrc.HasFlag(BCFontStyle.Bold))
            {
                result |= System.Drawing.FontStyle.Bold;
            }
            if (pSrc.HasFlag(BCFontStyle.Italic))
            {
                result |= System.Drawing.FontStyle.Italic;
            }
            if (pSrc.HasFlag(BCFontStyle.Underline))
            {
                result |= System.Drawing.FontStyle.Underline;
            }
            if (pSrc.HasFlag(BCFontStyle.Strikeout))
            {
                result |= System.Drawing.FontStyle.Strikeout;
            }

            return(result);
        }
Exemplo n.º 2
0
        public static BCFontStyle GetBCStyleFromGDIPlusStyle(FontStyle pSrc)
        {
            BCFontStyle result = BCFontStyle.Regular;

            if (pSrc.HasFlag(System.Drawing.FontStyle.Bold))
            {
                result |= BCFontStyle.Bold;
            }
            if (pSrc.HasFlag(System.Drawing.FontStyle.Italic))
            {
                result |= BCFontStyle.Italic;
            }
            if (pSrc.HasFlag(System.Drawing.FontStyle.Underline))
            {
                result |= BCFontStyle.Underline;
            }
            if (pSrc.HasFlag(System.Drawing.FontStyle.Strikeout))
            {
                result |= BCFontStyle.Strikeout;
            }

            return(result);
        }
Exemplo n.º 3
0
 public BCFont(String pFontFace, float pFontSize, BCFontStyle pStyle)
 {
     FontFace  = pFontFace;
     FontSize  = pFontSize;
     FontStyle = pStyle;
 }