Flash doesn't keep text format

anonymous's picture


when exporting a 'swf' file, text and type settings (type size, character and line spacing) are often different from the ones previously setted in the original 'fla' file.

i'm using verdana with the 'use device fonts' option enabled, so that i don't get anti-alias. but i'm suspecting this might be the problem...

any sugestions?
would be really helpful.

PYMadlon's picture

O.K., once again I hope I'm getting the problem right.

I think that "device fonts" is a fail-safe, so that if the machine doesn't have the specified font, it will still be displayed in the proper style. Could it be that you have all of those fonts loaded on your machine and therefore "device fonts" doesn't have to switch over to the default? Try turning off Baskerville and see what it looks like.

The filesize should tell you whether or not the font is being embedded.

spiral's picture

the difference you're seeing is between the font being anti-aliased or not. Flash makes device fonts non-antialiased by default. I don't know if there is a way around it, but at least in the cases of arial and verdana, i much prefer the crispy pixels.

PYMadlon's picture

I think his problem was not a lack of understanding about aliased and anti-aliased text, but rather a concern that if a user didn't have a particular font loaded on their machine and if "Use device fonts" was selected, the font wouldn't be mapped to the proper device font (i.e. Avenir mapped to _sans).

A few tests I made seem to prove this true.

Here is a screenshot of an .swf file using Avenir, with Avenir loaded on my system:

Avenir in system

... and here is a shot of the same file after I turned off Avenir:

No Avenir in system

Apparently it maps to _serif as a device font. Can't think of a solution at the moment, except that if you want to use a device font, just use the device font (_sans in this case).


PYMadlon's picture


off-topic: I see domokun on the pixilate web site. I've got lots of great Domokun propaganda, including a big, stuffed Domokun that terrifies drivers from the back window of my car! Good stuff.


anonymous's picture

thanks for your help.
i don't think you are misinterpretting the problem, what you said is very clear and in accordance with the link you have provided.

but... what happens to type when i export the file is that those with 'device font' enabled are not mapped to the default '_sans' or '_serif'. fonts remain the same, only without anti-alias.

i hope this image can illustrate what i mean:


thanks again.

anonymous's picture

ok, thanks.

I'll try that out and see what happens.

PYMadlon's picture

Is your problem that you're hoping your device font will be Verdana?

If so, device fonts map to whatever system font on the users system is of the same "type" (serif, sans-serif or "typewriter"), according to the tech notes (http://www.macromedia.com/support/flash/ts/documents/flashfonts.htm) these will be Arial on a PC and Helvetic on a Mac.

If you want, you can embed Verdana and control its quality with actionscript. This will give you small, more readable, aliased text, but of course it will give you a bigger file.

... or am I misinterpretting the problem?

Syndicate content Syndicate content