Example #1
0
        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);
            }
        }
Example #2
0
 public GameFont(QFont font, GameFontType fontType, Vector2 screenDimensions)
 {
     Font = font;
     OptimalScreenDimensions = screenDimensions;
     FontType = GetLookupString(fontType);
 }
Example #3
0
 public GameFont GetFirstOrDefault(GameFontType fontType)
 {
     return GetFirstOrDefault(GameFont.GetLookupString(fontType));
 }
Example #4
0
 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;
     }
 }
Example #5
0
 public GameFont GetFirstOrDefault(GameFontType fontType)
 {
     return(GetFirstOrDefault(GameFont.GetLookupString(fontType)));
 }
Example #6
0
 public GameFont(QFont font, GameFontType fontType, Vector2 screenDimensions)
 {
     Font = font;
     OptimalScreenDimensions = screenDimensions;
     FontType = GetLookupString(fontType);
 }