Skip to main content
Participant
December 12, 2011
Answered

Runtime loaded fonts in sdk 4.6

  • December 12, 2011
  • 2 replies
  • 1641 views

Hi,

I noticed fonts are no longer displaying when switching from 4.5.1 to 4.6. The fonts are loaded with a .css-file (Compile CSS to SWF) and loaded with loadStyleDeclarations at applicationComplete. There's both embedAsCFF true and false fonts used. Everything works fine with 4.5.1, but 4.6 uses only default fonts. I have ran clean on the project a few times. According to the events there is no error in loading the style-swf.

If I put the style section (from the css-file) inside the main application the fonts are working in 4.6 too.

Any thoughts?

This topic has been closed for replies.
Correct answer Alex J Harui

This is a new requirement for 4.6 in order to optimize font lookups. See use of EmbeddedFontRegistry in this help article: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-799a.html

2 replies

Participating Frequently
January 1, 2012

I have the exact same problem, something is seriously broken in 4.6.0

Alex, is there some kind of workaround for this please ?

Thank you in advance

Alex J HaruiCorrect answer
Adobe Employee
January 2, 2012

This is a new requirement for 4.6 in order to optimize font lookups. See use of EmbeddedFontRegistry in this help article: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-799a.html

Adobe Employee
December 13, 2011

Post a 20-line test case

Participant
December 15, 2011

Hi,

I've tracked the problem down to building with framework linkage 'Merged into code'. If I compile with the RSLs it works. I need to use merged into code though.

Mxml:

http://pastebin.com/BGKUS0GF

CSS:

http://pastebin.com/b8z3wzV4

Also it seems it doesn't default to default fonts, but what looks like times new roman. Not that it matters.