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); }
public void LoadStyle(ASSStyle style) { _formats.Add(TextFormat.GetFormat(style)); }