• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Runtime loaded fonts in sdk 4.6

New Here ,
Dec 12, 2011 Dec 12, 2011

Copy link to clipboard

Copied

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?

TOPICS
Developers

Views

1.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jan 01, 2012 Jan 01, 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

Votes

Translate

Translate
Adobe Employee ,
Dec 13, 2011 Dec 13, 2011

Copy link to clipboard

Copied

Post a 20-line test case

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 15, 2011 Dec 15, 2011

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 01, 2012 Jan 01, 2012

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 01, 2012 Jan 01, 2012

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines