• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 392
  • Last Modified:

Embeding multiple fonts in a pure as3 project

I am trying to write a class which will choose a different font based on which style is chosen. I currently
have two fonts embedded within the class (and plan to have more), but I'm finding that its not possible to
choose one distinct font for each string.

I currently have two embedded font declarations like this,

      fontName = "boldFont",
      mimeType = "application/x-font",
      fontWeight = "normal",
      embedAsCFF="false")]private var boldFont:Class;

The second declaration is for a lighter Helvetica font style. With these two declarations in the code, the font text is
appearing using the lighter style when being set to the Bold font. Both have different font names, class names and point to different font files.
Currently, the only way to get the bold style selected is to completely comment out the Light font style. How can we include and use multiple typefaces at compile time?
1 Solution
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now