If you are using Flex to embed the fonts, they should be in the
Hi Flex harUI.
This is helpful however, it only gives me the information that I've already declared in a .CSS or .AS file.
I could be wrong however, it works much like that of the Font class.
I'm sorry for making my previous question vague however, what I meant to say is that "how does the compiler know during compile-time, that the font that's going to be embedded supports either a bold weight or an italic style?".
Let's say I have acquired a new UnknownFontFile.ttf. Is there a way in .AS3 to detect what type of font-weight or font-style it supports?
I don't think the compiler knows. It trusts whatever settings you declare
the font libraries listed in the flex-config.xml, and that would be Java
code and not available to AS3. By the time you've embedded it in the SWF
and loaded it, I think you can only trust the settings that came with it.
Got it. So I guess this means that the developers need to manually figure out if the font supports either bold or italic through trial and error.
Some of the fonts try to rename themselves automatically when placed on other directories rather than windows/fonts directory (currently on windows).
Right now, I have these sample fonts called Classical Garamonds.
When I tried placing them into my project assets folder, it just gave me the file names:
If only there's a better way of detecting what attributes does each of those or other fonts would support.
I've tried creating some C# apps to detect the font's properties as well as checked the OS' registry but it just gave returned unpredictable results.
Anyways, I appreciate the help. Thanks so much for the effort Flex harUI.
I don't know much about C#. I would make sure you are using the
lowest-level font libraries/APIs from Java or Windows.