AlphaTab.Rendering.Glyphs.DigitGlyph.GetDigitWidth C# (CSharp) Method

GetDigitWidth() private method

private GetDigitWidth ( int digit ) : float
digit int
return float
        private float GetDigitWidth(int digit)
        {
            switch (digit)
            {
                case 0:
                case 2:
                case 3:
                case 4:
                case 5:
                case 6:
                case 7:
                case 8:
                case 9:
                    return 14;
                case 1:
                    return 10;
                default:
                    return 0;
            }
        }