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?