static FontStore() { //Regular LoadFontVarients("SYSTEM_REGULAR_10", out SYSTEM_REGULAR_10, out SYSTEM_NARROW_10); LoadFontVarients("SYSTEM_REGULAR_15", out SYSTEM_REGULAR_15, out SYSTEM_NARROW_15); LoadFontVarients("SYSTEM_REGULAR_20", out SYSTEM_REGULAR_20, out SYSTEM_NARROW_20); //Bold LoadFontVarients("SYSTEM_BOLD_10", out SYSTEM_BOLD_10, out SYSTEM_NARROW_BOLD_10); LoadFontVarients("SYSTEM_BOLD_15", out SYSTEM_BOLD_15, out SYSTEM_NARROW_BOLD_15); LoadFontVarients("SYSTEM_BOLD_20", out SYSTEM_BOLD_20, out SYSTEM_NARROW_BOLD_20); //Misc SYSTEM_TALL_BOLD_20 = SYSTEM_BOLD_20.MakeScaledPack(1, 2); }
private static void LoadFontVarients(string id, out FontPack standard, out FontPack narrow) { standard = LoadFromResource(id); narrow = standard.MakeScaledPack(0.75f, 1); }