public void CreateGDIFont(string family, ReportSize size, FontStyles style, FontWeights weight, TextDecorations decoration)
        {
            double num   = 12.0;
            bool   flag  = this.IsBold(weight);
            bool   flag2 = style == FontStyles.Italic;

            if (size != null)
            {
                num = size.ToPoints();
            }
            string fontFamilyName = "Arial";

            if (family != null)
            {
                fontFamilyName = family;
            }
            bool lineThrough = false;
            bool underLine   = false;

            switch (decoration)
            {
            case TextDecorations.Underline:
                underLine = true;
                break;

            case TextDecorations.LineThrough:
                lineThrough = true;
                break;
            }
            this.m_gdiFont = FontCache.CreateGdiPlusFont(fontFamilyName, (float)num, ref flag, ref flag2, lineThrough, underLine);
        }