From 73d8cc98d715704a59818e1c2c556b65911e7d85 Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 10 Dec 2008 17:07:18 +0000 Subject: [PATCH] allow edittext without a font --- src/swfc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/swfc.c b/src/swfc.c index 34de7f8..3273d65 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -4422,9 +4422,10 @@ static void analyseArgumentsForCommand(char*command) else { SWFFONT* font = dict_lookup(&fonts, lu(&args, "font")); - if (!font) - syntaxerror("font %s is not known in line %d", lu(&args, "font"), line); - else + if (!font) { + //that's ok... it might be an edittext with a system font + //syntaxerror("font %s is not known in line %d", lu(&args, "font"), line); + } else if (font->use && !font->use->glyphs_specified) { if (!strcmp(command, "edittext")) -- 1.7.10.4