ExampleGallery.BurningTextExample.GetFontSize C# (CSharp) 메소드

GetFontSize() 개인적인 정적인 메소드

Calculates a good font size so the text will fit even on smaller phone screens.
private static GetFontSize ( Size displaySize ) : float
displaySize Windows.Foundation.Size
리턴 float
        private static float GetFontSize(Size displaySize)
        {
            const float maxFontSize = 72;
            const float scaleFactor = 12;

            return Math.Min((float)displaySize.Width / scaleFactor, maxFontSize);
        }