public static int SpacingInMu(this InterElementSpaceType type, LineStyle _style)
        {
            bool belowScript = _style < LineStyle.Script;

            switch (type)
            {
            case InterElementSpaceType.Invalid:
                return(-1);

            case InterElementSpaceType.None:
                return(0);

            case InterElementSpaceType.Thin:
                return(3);

            case InterElementSpaceType.NsThin:
                return(belowScript ? 3 : 0);

            case InterElementSpaceType.NsMedium:
                return(belowScript ? 4 : 0);

            case InterElementSpaceType.NsThick:
                return(belowScript ? 5 : 0);

            default:
                throw new InvalidOperationException("Unknown space type");
            }
        }
Esempio n. 2
0
 private static int SpacingInMu(this InterElementSpaceType type, LineStyle _style) =>
 type switch
 {