Пример #1
0
        public static Font Label(MetroLabelSize labelSize, MetroLabelWeight labelWeight)
        {
            switch (labelSize)
            {
            case MetroLabelSize.Small:
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(12f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(12f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(12f));
                }
                break;

            case MetroLabelSize.Medium:
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(14f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(14f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(14f));
                }
                break;

            case MetroLabelSize.Tall:
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(18f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(18f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(18f));
                }
                break;
            }

            return(DefaultLight(14f));
        }
Пример #2
0
        public static Font Label(MetroLabelSize labelSize, MetroLabelWeight labelWeight)
        {
            if (labelSize == MetroLabelSize.Small)
            {
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(12f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(12f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(12f));
                }
            }
            else if (labelSize == MetroLabelSize.Medium)
            {
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(14f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(14f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(14f));
                }
            }
            else if (labelSize == MetroLabelSize.Tall)
            {
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(18f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(18f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(18f));
                }
            }

            return(DefaultLight(14f));
        }
Пример #3
0
        public static Font Label(MetroLabelSize labelSize, MetroLabelWeight labelWeight)
        {
            if (labelSize == MetroLabelSize.Small)
            {
                if (labelWeight == MetroLabelWeight.Light)
                    return DefaultLight(12f);
                if (labelWeight == MetroLabelWeight.Regular)
                    return Default(12f);
                if (labelWeight == MetroLabelWeight.Bold)
                    return DefaultBold(12f);
            }
            else if (labelSize == MetroLabelSize.Medium)
            {
                if (labelWeight == MetroLabelWeight.Light)
                    return DefaultLight(14f);
                if (labelWeight == MetroLabelWeight.Regular)
                    return Default(14f);
                if (labelWeight == MetroLabelWeight.Bold)
                    return DefaultBold(14f);
            }
            else if (labelSize == MetroLabelSize.Tall)
            {
                if (labelWeight == MetroLabelWeight.Light)
                    return DefaultLight(18f);
                if (labelWeight == MetroLabelWeight.Regular)
                    return Default(18f);
                if (labelWeight == MetroLabelWeight.Bold)
                    return DefaultBold(18f);
            }

            return DefaultLight(14f);
        }
Пример #4
0
        public static Font Label(MetroLabelSize labelSize, MetroLabelWeight labelWeight)
        {
            if (labelSize == MetroLabelSize.Px16)
            {
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(16f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(16f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(16f));
                }
            }
            else if (labelSize == MetroLabelSize.Px12)
            {
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(12f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(12f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(12f));
                }
            }
            else if (labelSize == MetroLabelSize.Px14)
            {
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(14f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(14f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(14f));
                }
            }
            else if (labelSize == MetroLabelSize.Px18)
            {
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(18f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(18f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(18f));
                }
            }
            else if (labelSize == MetroLabelSize.Px20)
            {
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(20f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(20f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(20f));
                }
            }
            else if (labelSize == MetroLabelSize.Px22)
            {
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(22f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(22f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(22f));
                }
            }
            else if (labelSize == MetroLabelSize.Px24)
            {
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(24f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(24f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(24f));
                }
            }
            else if (labelSize == MetroLabelSize.Px28)
            {
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(28f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(28f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(28f));
                }
            }
            else if (labelSize == MetroLabelSize.Px42)
            {
                if (labelWeight == MetroLabelWeight.Light)
                {
                    return(DefaultLight(42f));
                }
                if (labelWeight == MetroLabelWeight.Regular)
                {
                    return(Default(42f));
                }
                if (labelWeight == MetroLabelWeight.Bold)
                {
                    return(DefaultBold(42f));
                }
            }

            return(DefaultLight(20f));
        }
Пример #5
0
 public static Font Label(MetroLabelSize labelSize, MetroLabelWeight labelWeight) => MetroFontGeneral(labelSize, labelWeight, new float[] { 12f, 14f, 18f }, 1);