Answered
embed font issue.
Hi, I seem to have a problem embedding a font in my flash
file. The font is "GE SS Unique Light", its an arabic font. I'm
using Flash, and am using the component instance in the library to
embed the fonts. I'm building an english and chinese version of the
site with exactly the same code, they just reference different XML
files with the content.
I was having trouble with them all not embedding properly and after scouring through the forums, I added - charFormat.fontLookup = FontLookup.EMBEDDED_CFF; which worked immediately for both the Chinese and English sites, but not at all for the Arabic site, in fact the Arabic font broke and displayed the 'box with a cross' - 'no font here... here no font etc etc'...
So, I tried to import the font in a swf as described in the very handy pdf provided named... textlayout_flashcomponent_overview.pdf
Now, that didn't work either, but I noticed than when it traced the embedded fonts it traced,
GE SS Unique Light
as
GE SS Unique Light Light
I did read somewhere about some naming issues with fonts, but then when I renamed the font with the extra 'Light' on the end, that didn't work either... but both version render fine in flash itself...
Also, if I try and trace the embedded fonts in the Chinese (SimSum) and English (Helvetica, Neue LT Com 55 Roman, Adobe Garamond Pro, Helvetica Neue Light) versions, only the english version gets traced... thats not really a problem, but thought it maybe useful...
Also, its not the font, it must be my code as I cant' seem to embed Adobe Arabic correctly either. I've narrowed down the code to these lines here... I must be missing something... It previews fine, I can see it in a browser on my own machine, but not on others...
I was having trouble with them all not embedding properly and after scouring through the forums, I added - charFormat.fontLookup = FontLookup.EMBEDDED_CFF; which worked immediately for both the Chinese and English sites, but not at all for the Arabic site, in fact the Arabic font broke and displayed the 'box with a cross' - 'no font here... here no font etc etc'...
So, I tried to import the font in a swf as described in the very handy pdf provided named... textlayout_flashcomponent_overview.pdf
Now, that didn't work either, but I noticed than when it traced the embedded fonts it traced,
GE SS Unique Light
as
GE SS Unique Light Light
I did read somewhere about some naming issues with fonts, but then when I renamed the font with the extra 'Light' on the end, that didn't work either... but both version render fine in flash itself...
Also, if I try and trace the embedded fonts in the Chinese (SimSum) and English (Helvetica, Neue LT Com 55 Roman, Adobe Garamond Pro, Helvetica Neue Light) versions, only the english version gets traced... thats not really a problem, but thought it maybe useful...
Also, its not the font, it must be my code as I cant' seem to embed Adobe Arabic correctly either. I've narrowed down the code to these lines here... I must be missing something... It previews fine, I can see it in a browser on my own machine, but not on others...
