Using embedded fonts within text fields
It is likely that you will eventually want to make use of a font that isn't installed on your device. When this is the case, you can embed the font allowing it to be rendered correctly within your app.
Let us see how this is done.
Getting ready
Launch Flash Professional and open chapter7\recipe2\recipe.fla
from the book's accompanying code bundle. The FLA's stage is empty but its AIR for iOS settings have already been applied letting you easily publish once you are ready.
How to do it...
The Impact font isn't installed on iOS devices. Let us create a text field that makes use of it by embedding the font directly within your app.
- Select the Text Tool (T) and draw a text field on the stage.
- Enter Flash iOS Apps Cookbook ...
Get Flash iOS Apps Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.