示例#1
0
        public static TextFormat GetFormat(ASSStyle style)
        {
            var output = new TextFormat
            {
                FontName      = style.Fontname,
                FontSize      = style.Fontsize,
                IsBold        = style.Bold,
                IsItalic      = style.Italic,
                HasUnderLine  = style.Underline,
                HasStrikeLine = style.StrikeOut
            };

            output.Meta["defName"] = style.Name;
            return(output);
        }
示例#2
0
 public void LoadStyle(ASSStyle style)
 {
     _formats.Add(TextFormat.GetFormat(style));
 }