Exemplo n.º 1
0
            public FontInfo GetFontInfo(FontArea area)
            {
                switch (area)
                {
                case FontArea.Lyric:
                    return(Font.LyricTextFontInfo.LyricTextFontInfo);

                case FontArea.Ruby:
                    return(Font.RubyTextFontInfo.LyricTextFontInfo);

                case FontArea.Romaji:
                    return(Font.RomajiTextFontInfo.LyricTextFontInfo);
                }

                return(null);
            }
Exemplo n.º 2
0
            public FontInfo GetFontInfo(FontArea area)
            {
                switch (area)
                {
                case FontArea.Lyric:
                    return(Font.LyricTextFontInfo.LyricTextFontInfo);

                case FontArea.Ruby:
                    return(Font.RubyTextFontInfo.LyricTextFontInfo);

                case FontArea.Romaji:
                    return(Font.RomajiTextFontInfo.LyricTextFontInfo);

                default:
                    throw new ArgumentOutOfRangeException(nameof(area));
                }
            }
Exemplo n.º 3
0
 public void ApplyProperty(FontArea info, Action <FontInfo> action)
 {
     action.Invoke(GetFontInfo(info));
     ApplyFont(Font);
 }