ARCed.Helpers.FontHelper.GetMemoryFont C# (CSharp) Method

GetMemoryFont() public static method

Finds and creates a font from a font family previously loaded into memory
public static GetMemoryFont ( string familyName, float size, FontStyle style ) : Font
familyName string Name of the font family
size float Size of the font
style FontStyle Style to apply to the font
return System.Drawing.Font
        public static Font GetMemoryFont(string familyName, float size, FontStyle style)
        {
            return (from family in Families
                    where family.Name == familyName
                    select new Font(family, size, style)).FirstOrDefault();
        }