diff --git a/src/swf/exporters/swflite/DynamicTextSymbol.hx b/src/swf/exporters/swflite/DynamicTextSymbol.hx index db8a75a..971f0f1 100644 --- a/src/swf/exporters/swflite/DynamicTextSymbol.hx +++ b/src/swf/exporters/swflite/DynamicTextSymbol.hx @@ -120,10 +120,11 @@ class DynamicTextSymbol extends SWFSymbol if (!found) { var alpha = ~/[^a-zA-Z]+/g; + var spaces = ~/\s/g; for (font in Font.enumerateFonts()) { - if (alpha.replace(font.fontName, "").substr(0, fontName.length) == fontName) + if (alpha.replace(font.fontName, "").substr(0, fontName.length) == spaces.replace(fontName, "")) { format.font = font.fontName; found = true;