public static string GetLookupString(GameFontType fontType) { switch (fontType) { case GameFontType.Heading: return(HEADING); case GameFontType.Body: return(BODY); case GameFontType.Menu: return(MENU); case GameFontType.Default: default: return(DEFAULT); } }
public GameFont(QFont font, GameFontType fontType, Vector2 screenDimensions) { Font = font; OptimalScreenDimensions = screenDimensions; FontType = GetLookupString(fontType); }
public GameFont GetFirstOrDefault(GameFontType fontType) { return GetFirstOrDefault(GameFont.GetLookupString(fontType)); }
public static string GetLookupString(GameFontType fontType) { switch (fontType) { case GameFontType.Heading: return HEADING; case GameFontType.Body: return BODY; case GameFontType.Menu: return MENU; case GameFontType.Default: default: return DEFAULT; } }
public GameFont GetFirstOrDefault(GameFontType fontType) { return(GetFirstOrDefault(GameFont.GetLookupString(fontType))); }