Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
One alternative to embedding fonts and keeping the file size of your applications low is something called device fonts. Device fonts use fonts that are already on the device that's viewing your application. So you don't have to embed the font. Now, the downside of this is that you have less power over the presentation of your application. But the upside is the font will display properly every time, so you will never have a case where the font doesn't display at all. So that's a good thing. Let's select the text on the Stage and take a look at how we can use device fonts in Flash.
Device fonts are actually in the Character section in the Anti-alias dropdown. So if click that dropdown menu, I can choose Use device fonts. Now, if I use device fonts, the best thing to do to preserve the design from my application, whether it's viewed on any other machine, is to use the special fonts that are at the very top of the Character menu. So I am going to click the Character drop-down and scroll to the very top and you will see three fonts that start with an underscore. There is _sans, _serif, and _typewriter.
Now, these fonts are extremely simple fonts, but you can rest assure that they will render on any device you deploy your application to. So I am going to choose _sans for this example. And that gives me a sans serif font, and maybe that's not the best way to preserve the appearance of my application. So I am actually going to choose _serif instead. Now, that's pretty close to what I originally created. So any device I deploy this application to, whether it's a mobile phone or some other device that has the Flash Player, including a computer, the application will render the text using the device's default serif font.
So this is going to preserve the appearance of my text and I am not going to have to embed it, so my file size will remain low. So again, to use device fonts, all you need do is select a text field on the Stage and then set the Use device font setting in the Anti-alias drop-down in the Properties panel.
Get unlimited access to all courses for just $25/month.Become a member
58 Video lessons · 60367 Viewers
61 Video lessons · 92908 Viewers
82 Video lessons · 104251 Viewers
56 Video lessons · 107343 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.