From what I can say about the Google Fonts API, these fonts are designed to access JavaScript / CSS. Is there a way to dynamically load them for a Flash application without downloading them locally to the server?
Update:. So, Iโve thought about this several times already, and the following are just some thoughts on how to do this. None of them work, but I feel that they are on the right track. For future reference only ...
When you select a font for use in the Google APIs, you are provided with a link to a CSS stylesheet based on your settings:
<link href='http://fonts.googleapis.com/css?family=Kranky' rel='stylesheet' type='text/css'>
At first I tried to use only the href URL inside my <fx:Style source=.../> , but ActionScript rejected it (not sure if it was because it was not local, or it realized that it did not end with .css ).
After that, I copied the link to my browser and manually extracted the CSS by pasting it into the <fx:Style> tags, as with any other CSS. Again, ActionScript did not like it because it was not possible to locate the URL locally.
I suspect that some of these precautions exist because of the whole โsandboxโ bit that Flash supports. Someone with a few more ActionScript skills can use this to solve the problem, but I don't know if this is solvable.
source share