示例#1
0
        private void AppendLineTags(AssLine line, AssStyle style, AssLineContentBuilder lineContent)
        {
            if (line.AnchorPoint != style.AnchorPoint)
            {
                lineContent.AppendTag("an", GetAlignment(line.AnchorPoint));
            }

            if (line.Position != null)
            {
                lineContent.AppendTag("pos", line.Position.Value.X, line.Position.Value.Y);
            }

            if (line.VerticalTextType != VerticalTextType.None)
            {
                lineContent.AppendTag("ytvert", AssVerticalTypeTagHandler.GetVerticalTextTypeId(line.VerticalTextType));
            }
        }
示例#2
0
        private void AppendLineTags(AssLine line, AssStyle style, AssLineContentBuilder lineContent)
        {
            if (line.AnchorPoint != style.AnchorPoint)
            {
                lineContent.AppendTag("an", GetAlignment(line.AnchorPoint));
            }

            if (line.Position != null)
            {
                lineContent.AppendTag("pos", line.Position.Value.X, line.Position.Value.Y);
            }

            if (line.VerticalTextType != VerticalTextType.None)
            {
                lineContent.AppendTag("ytvert", AssVerticalTypeTagHandler.GetVerticalTextTypeId(line.HorizontalTextDirection, line.VerticalTextType));
            }
            else if (line.HorizontalTextDirection != HorizontalTextDirection.LeftToRight)
            {
                lineContent.AppendTag("ytdir", AssHorizontalTextDirectionTag.GetHorizontalTextDirectionId(line.HorizontalTextDirection));
            }
        }