changeset 26593:b42233eb4b38

Skip '@' at the beginning of the font name.
author eugeni
date Thu, 01 May 2008 11:06:16 +0000
parents cc9b88c49d90
children 05841cbb86aa
files libass/ass.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass.c	Thu May 01 00:34:29 2008 +0000
+++ b/libass/ass.c	Thu May 01 11:06:16 2008 +0000
@@ -482,6 +482,12 @@
 		style->Name = strdup("Default");
 	if (!style->FontName)
 		style->FontName = strdup("Arial");
+	// skip '@' at the start of the font name
+	if (*style->FontName == '@') {
+		p = style->FontName;
+		style->FontName = strdup(p + 1);
+		free(p);
+	}
 	free(format);
 	return 0;