Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8695775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:07:07+00:00 2026-06-13T01:07:07+00:00

In textfield component ,there’s a class named TextFormat . TextFormat has a property named

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:07:08+00:00Added an answer on June 13, 2026 at 1:07 am

    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()

    This example first calls the static method Font.enumerateFonts() to
    get a list of all device and embedded fonts. Then it sorts the
    resulting Array of Font objects by the fontName property.

    Next the example shows how to call the Font.enumerateFonts() method
    with the enumerateDeviceFonts parameter set to false. The resulting
    Array only includes embedded Font objects. (If you run this code
    within an application that does not contain any embedded fonts, the
    embeddedFonts array will be empty.)

    import flash.text.Font;
    
    var allFonts:Array = Font.enumerateFonts(true);
    allFonts.sortOn("fontName", Array.CASEINSENSITIVE);
    
    var embeddedFonts:Array = Font.enumerateFonts(false);
    embeddedFonts.sortOn("fontName", Array.CASEINSENSITIVE);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a pickerView which has a component of colors. I have a textField
I have a textfield which displays a result but I don't want it to
I have a textField on my stage named 'adBuy', which when clicked I want
I need a textfield which has an dropdown list to select an option from
I have a wicket form which contains many TextField input components. There's a Validator
In iOS there is a search bar component with text field. How can I
In LWUIT, some components (like the textField) have a hint property. Is there anyway
I have a textField in my application which will be initiated programmatically (textField.setText() )
I have a textfield where the user can type what ever he want into
I embed text in textfield, but sometimes it does not render using htmltext. if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.