Using device fonts within text fields

A comprehensive list of fonts is installed on iOS devices and is available for use directly within your AIR for iOS app.

This recipe will take you through the steps required to create a text field that uses a device font.

Getting ready

From the book's accompanying code bundle, open chapter7\recipe1\recipe.fla into Flash Professional. The FLA's stage is empty but its AIR for iOS settings have already been applied, saving you the time and effort when you build and deploy it to a device.

How to do it...

Perform the following steps to take advantage of a device font:

  1. Using the Text Tool (T), draw a text field on the stage.
  2. Enter Flash iOS Apps Cookbook into the text field.
  3. From the Properties panel, ensure that Classic ...

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.