Text goes invisible on embeddedFont = true


I register my fonts once they are loaded. In my head I should be able to use them once they are. But I wasn't so I tweaked my code, here it is but it still makes the text invisible. As soon as I do embedFonts = false, it starts working again.

trace(Font.enumerateFonts()); // Returns an array and does show my Fonts embedded. var format:TextFormat = new TextFormat(); var fontClass:Class = _model.getFont("HappyHell"); // Does return the Class var myFont:Font = new fontClass(); // Works format.font = myFont.fontName; format.size = 15; format.letterSpacing = 0.8; var test:TextField = new TextField(); test.embedFonts = true; test.defaultTextFormat = format; test.text = "TESTING everything 13216"; test.x = 30; test.y = 30; addChild(test);


If you are using embededFonts = true property then you need to have the font in your library.


<ul><li><a href="http://www.adobe.com/devnet/flash/quickstart/embedding_fonts.html" rel="nofollow">Embedding fonts</a></li> <li><a href="https://stackoverflow.com/questions/6735556/alternative-to-embedding-a-font-in-as3/6735870" rel="nofollow">Alternative embeding</a></li> </ul>


What does trace ( myFont.fontName ) output?


var myFont:Font = new HappyHell();


var myFont:Font = new fontClass() as Font;


  • how to solve the error when convert string date to integer?
  • Using embedded fonts with TLFTextField
  • SimpleButton Not Displaying
  • font-face not showing up on Firefox
  • Is SQLite a good choice for a large, read only database for research?
  • iphone/ipad web video only plays over 3g not Wifi
  • choosing right approch to implement google map in android
  • IE9 Refusing to Load custom font?
  • How to show matplotlib plot from a figure object
  • Easy way to profile Magento API calls
  • How to discover what is available in lua environment?
  • angular Scroll div on button click
  • Azure PDF Sharp not using Unicode font
  • Embedding an OpenXML document within another OpenXml document
  • Font Awesome in Viewpager Previous Next
  • Delphi Chromium Embedded - Clear browser cache
  • Eclipse dark color theme fixes
  • addressing in assembler
  • Is it possible to “shrink” a PdfPtable?
  • How can I let users share their location in Bot Framework webchat channel?
  • How to access culture data in globalize.js V1.0.0
  • Highlight and Bold text in JTextPane
  • Xamarin Forms - UWP Fonts
  • Sending data from AppleScript to FileMaker records
  • Fill an image in a square container while keeping aspect ratio
  • How to apply VCL Styles to DLL-based forms in Inno Setup?
  • Change an a tag attribute in JavaScript based on screen width
  • Font Awesome Showing Box instead of Icons
  • Rearranging Cells in UITableView Bug & Saving Changes
  • Unanticipated behavior
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • KeystoneJS: Relationships in Admin UI not updating
  • AngularJs get employee from factory
  • Benchmarking RAM performance - UWP and C#
  • Load html files in TinyMce
  • Angular 2 constructor injection vs direct access
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Reading document lines to the user (python)
  • Observable and ngFor in Angular 2
  • Unable to use reactive element in my shiny app