In textfield component ,there’s a class named TextFormat. TextFormat has a property named font which can let you set the font, but the help document doesn’t give any information about the font, it only tells you the default was “Times New Roman”, so I can only set ‘Times New Roman’?
Is there a way to list all the fonts available so I can pick up one from the list?
Have a look at
Font.enumerateFonts()this function will give you a list of all available embedded and device fonts.http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/Font.html#enumerateFonts()