Beispiel #1
0
        public static Font Link(MetroLinkSize linkSize, MetroLinkWeight linkWeight)
        {
            switch (linkSize)
            {
            case MetroLinkSize.Small:
                if (linkWeight == MetroLinkWeight.Light)
                {
                    return(DefaultLight(12f));
                }
                if (linkWeight == MetroLinkWeight.Regular)
                {
                    return(Default(12f));
                }
                if (linkWeight == MetroLinkWeight.Bold)
                {
                    return(DefaultBold(12f));
                }
                break;

            case MetroLinkSize.Medium:
                if (linkWeight == MetroLinkWeight.Light)
                {
                    return(DefaultLight(14f));
                }
                if (linkWeight == MetroLinkWeight.Regular)
                {
                    return(Default(14f));
                }
                if (linkWeight == MetroLinkWeight.Bold)
                {
                    return(DefaultBold(14f));
                }
                break;

            case MetroLinkSize.Tall:
                if (linkWeight == MetroLinkWeight.Light)
                {
                    return(DefaultLight(18f));
                }
                if (linkWeight == MetroLinkWeight.Regular)
                {
                    return(Default(18f));
                }
                if (linkWeight == MetroLinkWeight.Bold)
                {
                    return(DefaultBold(18f));
                }
                break;
            }

            return(Default(12f));
        }
        public static Font Link(MetroLinkSize linkSize, MetroLinkWeight linkWeight)
        {
            if (linkSize == MetroLinkSize.Small)
            {
                if (linkWeight == MetroLinkWeight.Light)
                {
                    return(DefaultLight(12f));
                }
                if (linkWeight == MetroLinkWeight.Regular)
                {
                    return(Default(12f));
                }
                if (linkWeight == MetroLinkWeight.Bold)
                {
                    return(DefaultBold(12f));
                }
            }
            else if (linkSize == MetroLinkSize.Medium)
            {
                if (linkWeight == MetroLinkWeight.Light)
                {
                    return(DefaultLight(14f));
                }
                if (linkWeight == MetroLinkWeight.Regular)
                {
                    return(Default(14f));
                }
                if (linkWeight == MetroLinkWeight.Bold)
                {
                    return(DefaultBold(14f));
                }
            }
            else if (linkSize == MetroLinkSize.Tall)
            {
                if (linkWeight == MetroLinkWeight.Light)
                {
                    return(DefaultLight(18f));
                }
                if (linkWeight == MetroLinkWeight.Regular)
                {
                    return(Default(18f));
                }
                if (linkWeight == MetroLinkWeight.Bold)
                {
                    return(DefaultBold(18f));
                }
            }

            return(Default(12f));
        }
Beispiel #3
0
        public static Font Link(MetroLinkSize linkSize, MetroLinkWeight linkWeight)
        {
            if (linkSize == MetroLinkSize.Small)
            {
                if (linkWeight == MetroLinkWeight.Light)
                    return DefaultLight(12f);
                if (linkWeight == MetroLinkWeight.Regular)
                    return Default(12f);
                if (linkWeight == MetroLinkWeight.Bold)
                    return DefaultBold(12f);
            }
            else if (linkSize == MetroLinkSize.Medium)
            {
                if (linkWeight == MetroLinkWeight.Light)
                    return DefaultLight(14f);
                if (linkWeight == MetroLinkWeight.Regular)
                    return Default(14f);
                if (linkWeight == MetroLinkWeight.Bold)
                    return DefaultBold(14f);
            }
            else if (linkSize == MetroLinkSize.Tall)
            {
                if (linkWeight == MetroLinkWeight.Light)
                    return DefaultLight(18f);
                if (linkWeight == MetroLinkWeight.Regular)
                    return Default(18f);
                if (linkWeight == MetroLinkWeight.Bold)
                    return DefaultBold(18f);
            }

            return Default(12f);
        }
Beispiel #4
0
 public static Font Link(MetroLinkSize linkSize, MetroLinkWeight linkWeight) => MetroFontGeneral(linkSize, linkWeight, new float[] { 12f, 14f, 18f });