Add \fs+ and \fs- to the ASS parser so they aren't killed by transforms. Updates #1007.

Originally committed to SVN as r3838.
This commit is contained in:
Thomas Goyne 2009-12-01 01:27:32 +00:00
parent 6127a66c6e
commit 4a31f0375f
1 changed files with 11 additions and 0 deletions

View File

@ -467,11 +467,22 @@ void AssOverrideTagProto::LoadProtos () {
proto.back().name = _T("\\fn");
proto.back().params.push_back(AssOverrideParamProto(VARDATA_TEXT,NOT_OPTIONAL,PARCLASS_NORMAL));
// \fs+<size>
proto.push_back(AssOverrideTagProto());
proto.back().name = _T("\\fs+");
proto.back().params.push_back(AssOverrideParamProto(VARDATA_FLOAT,NOT_OPTIONAL,PARCLASS_NORMAL));
// \fs-<size>
proto.push_back(AssOverrideTagProto());
proto.back().name = _T("\\fs-");
proto.back().params.push_back(AssOverrideParamProto(VARDATA_FLOAT,NOT_OPTIONAL,PARCLASS_NORMAL));
// \fs<size>
proto.push_back(AssOverrideTagProto());
proto.back().name = _T("\\fs");
proto.back().params.push_back(AssOverrideParamProto(VARDATA_FLOAT,NOT_OPTIONAL,PARCLASS_ABSOLUTE_SIZE));
// \an<alignment>
proto.push_back(AssOverrideTagProto());
proto.back().name = _T("\\an");