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

  • SEARCH
  • Home
  • 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 6074323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:22:10+00:00 2026-05-23T10:22:10+00:00

From what I can tell on the Google Fonts API, these fonts are meant

  • 0

From what I can tell on the Google Fonts API, these fonts are meant to be accessible by JavaScript/CSS. Is there any way to dynamically load them for a Flash application without having to download them locally to the server?

Update: So I’ve been piddling around with this some more, and the following are just some thoughts I had about how to go about it. None of them work, but I feel like they’re on the right track. Just for future reference…

When you choose a font to use in the Google API, you’re provided with a link to a CSS stylesheet that’s generated based on your preferences:

<link href='http://fonts.googleapis.com/css?family=Kranky' rel='stylesheet' type='text/css'>

I initially tried using just the href URL inside my <fx:Style source=.../>, but ActionScript rejected this (not sure if it was because it wasn’t local, or it realized it didn’t end in .css).

After that failed, I copied the link into my browser and manually retrieved the CSS, pasting it inside <fx:Style> tags like you would with any other CSS. Again, ActionScript didn’t like this because it couldn’t locally locate the URL.

I suspect some of these precautions are in place due to the whole ‘security sandbox’ bit that Flash enforces. Someone who has some more ActionScript prowess may be able to use this to solve the problem, but I don’t know if it’s solvable.

  • 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-05-23T10:22:10+00:00Added an answer on May 23, 2026 at 10:22 am

    You can load dynamic fonts INTO flash/actionscript at runtime. There’s a good example of it here: http://developer.yahoo.com/flash/articles/runtime-fonts-as3.html

    Basically it boils down to using a Loader class and Font.registerFont();

    The problem is that the CSS provided by Google is providing a WOFF (web open font) file and I don’t believe flash can embed that font type yet.

    However, the Google fonts are downloadable and easily embedable into your Flex/Flash applications. Simple go to the font you want on Google’s site and click “download”. From there, you can extract a TTF file and embed it directly into your Flash app.

    You can do that in actionscript like this:

    [Embed(source="theFontYouDownloaded.ttf",  fontName = "someFont",  mimeType = "application/x-font")]
    private var someFont:Class;
    

    In my experience sometimes you need to play with that mimetype to get it working right.

    Since you appear to be using Flex, you can simply use a Flex style sheet like so:

    @font-face
    {
    src:            url("fonts/someFont.ttf");
    fontFamily:     someFont;
    font-weight:    normal; 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

so from what i can tell, you have to specify artifacts and working directory
NSDecimalNumber is a subclass of NSNumber, and from what I can tell, it implements
i have invoked blackberry calender from my application can anyone tell me how to
From the question you can probably tell that I don't know much about code!
Can anybody tell how to retrieve data from database like that of Facebook's notification
Can anyone tell me how I can download a picture from a URL and
can anyone tell how to access MS SQL Server from objective c programatically
How can I tell if return() was called from within the included file. The
Can someone tell me how to catch parameters passed from URI in JSF's managed
Can anybody tell about three things: How to retrieve TimeZone from java.util.Date instance? How

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.