From: kramm Date: Wed, 10 Dec 2008 17:07:18 +0000 (+0000) Subject: allow edittext without a font X-Git-Tag: release-0-9-0~709 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=73d8cc98d715704a59818e1c2c556b65911e7d85 allow edittext without a font --- 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"))