public IFontStyleInfo ProduceNewFontStyleInfo(string FamilyName, float size, System.Drawing.FontStyle theStyle) { IFontInfo NewFont = new GDIFont(FamilyName, size, theStyle); IFontStyleInfo NewFontStyle = new GDIFontStyle(); NewFontStyle.Font = NewFont; return NewFontStyle; }
public IFontStyleInfo ProduceNewFontStyleInfo(string FamilyName, float size, System.Drawing.FontStyle theStyle) { IFontInfo NewFont = new GDIFont(FamilyName, size, theStyle); IFontStyleInfo NewFontStyle = new GDIFontStyle(); NewFontStyle.Font = NewFont; return(NewFontStyle); }
public IFontStyleInfo ProduceNewFontStyleInfo( string FamilyName, float size, System.Drawing.FontStyle theStyle) { GDIFontStyle result = new GDIFontStyle(); string sig = GetSignature(FamilyName, size, theStyle); GDIFont found = FindFont(sig); if (found == null) { found = new GDIFont(FamilyName, size, theStyle); AddFont(found); } result.Font = found; return result; }
public IFontStyleInfo ProduceNewFontStyleInfo( string FamilyName, float size, System.Drawing.FontStyle theStyle) { GDIFontStyle result = new GDIFontStyle(); string sig = GetSignature(FamilyName, size, theStyle); GDIFont found = FindFont(sig); if (found == null) { found = new GDIFont(FamilyName, size, theStyle); AddFont(found); } result.Font = found; return(result); }