public Drawing_FontSurface(string fontFamily, float sizeInPoints, FontStyle style) { System.Drawing.FontStyle drawingStyle = System.Drawing.FontStyle.Regular; if ((style & FontStyle.Bold) > 0) { drawingStyle |= System.Drawing.FontStyle.Bold; } if ((style & FontStyle.Italic) > 0) { drawingStyle |= System.Drawing.FontStyle.Italic; } if ((style & FontStyle.Strikeout) > 0) { drawingStyle |= System.Drawing.FontStyle.Strikeout; } if ((style & FontStyle.Underline) > 0) { drawingStyle |= System.Drawing.FontStyle.Underline; } mFont = new Font(fontFamily, sizeInPoints, drawingStyle); }
public override FontSurfaceImpl CreateFont(string fontFamily, float sizeInPoints, FontStyle style) { return(new Drawing_FontSurface(fontFamily, sizeInPoints, style)); }