A reader asked me the other day if it was possible to embed fonts into a Flash CS3 DataGrid control’s HeaderRenderer in an ActionScript 3.0 project.
After a bit of code shuffling, it seems it is possible. The trick was I had to create a HeaderRenderer instance and set the embedFonts style to true. Next, I set the row renderer’s embedFonts style to true and the textFormat style using the setRendererStyle() method, and finally set the headerTextFormat style using the setStyle() method.
Full code after the jump.
