Embedded fonts dissapear (a bit complicated, read on...)

This is the actual case:
There is an SWF which contains just a font to be used by many other SWFs, it is here:
./SharedRessources/ComicFont.swf
Then there is one SWF which imports this font for runtime use:
./Selector/Selector.swf
And another one which also imports this font for runtime use:
./Menu/Menu.swf
They both import the font "for runtime use" and this, relative path: "../SharedRessources/ComicFont.swf".
This works for both Selector.swf and Menu.swf quite well. The font is displayed correctly.
BUT now there is this one:
./Everything/Everything.swf
This one loads Selector.swf and Menu.swf BOTH. The result is: The embedded font dissapears!
The funny thing: If I only load ONE of them, the font is visible.
So: Having 2 SWFs loaded simultaneously which make use of a font which is "shared for runtime use" destroys it for both.
Anyone encountered this problem yet? Any simple workarounds? The not-so-simple workaround would be to do it all directly via Actionscript and letting the Container hold all the ressources. But this would just be very comfortable.
OR could this even be filed as a bug?

After fiddeling around with the code, I actually found a solution:
The Font is embedded as a class, "ComicFont". So using the Loader class the usual way to load more than one module that uses this Font will cause the ComicFont class to be overwritten (and thus lost to the module loaded before)
I ran a test like this for every module loaded:
for each (li:LoaderInfo in loaderInfos) { // for simplicity: Imagine I have all LoaderInfos of all loaded submodules here
  trace ("Has class ComicFont? "+li.hasDefinition('ComicFont'));
Doing it the nomal, lazy way, this would output:
Has class ComicFont? false
Has class ComicFont? false
Has class ComicFont? false
Has class ComicFont? true
So it seems just the last module actually contained the ComicFont class. No wonder the font disappeared for all the other modules.
The "trick" was to set the applicationDomain inside the Loader:
var ld:Loader = new Loader();
var context:LoaderContext = new LoaderContext();
context.applicationDomain = ApplicationDomain.currentDomain;
ld.load(new URLRequest(swfName), context);
Now the fonts appear in every module and the output of the loop above is:
Has class ComicFont? true
Has class ComicFont? true
Has class ComicFont? true
Has class ComicFont? true
I hope this could help someone...

Similar Messages

  • Error: cannot extract the embedded font 'WTNNGO+LiberationMono-Bold' when reading a PDF

    I am trying to read a pdf file and I get the error: cannot extract the embedded font 'WTNNGO+LiberationMono-Bold'. Then some of the words are displayed as sets of dots, a dot per character. I have tried Adobe Reader 7 through 11 all with the same error. Apparently some fonts are missing. My OS is 64 bit windows 7.

    Tell them to embed the font information into the PDF. You don't have the font on your system so as-is, the PDF needs it to display that font. With embedded font information, you don't need the font.

  • How to get collection of embeded fonts using plugins in acrobat reader?

    I am trying to create a plugin for acrobat reader to display embedded fonts on opened document and will do business logic afterward, but not sure whats the method to get the collection of embedded fonts.
    Please give me example of code snippet how to get collection of embedded fonts of opened document.
    Thanks

    PDDocEnumFonts() will enumerate the fonts in a document for you.  You will have to look at each font to determine if it's embedded or not.
    Don't forget that to build a plugin for Reader, you need a license from Adobe.

  • Reader does not use or display the embedded fonts

    I have an odd problem with both Reader X and XI. Neither one will use the embedded fonts when opened from an email. I can forward from that PC to any other PC and the fonts will display correctly. The HP is Windows 7 64 bit. I can view the document that was forwarded through it on XP, Win7 Win8 or Ipad and it displays correctly. The "use local fonts" is uncheck but it seems to ignor the change.

    Adobe PDF Plug-In For Firefox and Netscape 10.1.7 ?
    I think you need to add this to the list of applications and the action to take on the type of content. This can also be managed in the about:permissions page. [[Permissions Manager - Give certain websites the ability to store passwords, set cookies and more]]

  • Adobe reader cannot extract embedded font after pdf sent via outlook

    We have some pdf files that open fine in Adobe Reader 9.1.3.  Once we send them via e-mail (we use Outlook 2003), they will not open properly with the error message: "Cannot extract the embedded font 'TWDWSP+TradeGothic-Light.  Some characters may not display or print correctly."  When we click OK, another error message appears: "An error exists on this page.  Acrobat may not display the page correctly.  Please contact the person who created the PDF document to correct the problem."  If the files are sent in a ZIP archive, they open correctly, but not if sent individually as PDFs.  Can someone help?

    It's one of the reasons that it's not recommended to send a PDF via email without Zipping it first. Either the senders or receivers email client may use encoding to make the ransfer faster which can wreck PDF's.
    Best bet is to Zip (as you've seen) the file first or post it to a web space and email the link.

  • Issue with adobe reader extracting embedded font

    I am unable to open a PDF file using adobe reader (I have Windows 7).
    The error message states: cannot extract the embedded font HDJDOS + A Caslon Pro-Regular. Some characters may not display or print correctly.
    Any suggestions on how to correct this?
    Thanks.

    Can you open Reader by itself?  If so, try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].

  • Cannot extract the embedded font - Adobe Reader XI

    Hello,
    I have an XPS file converted to a PDF with an embedded font inside, when I open the file, as I scroll to a page having '&' in the text (that's my case, but it's probably the same with any special character), a message box shows up saying "Cannot extract the embedded font 'HDGSLM+[my font]'. Some characters may not display or print correctly." and I can't see the special character in the page.
    I checked that my font was actually embedded in the PDF (File -> Properties -> Fonts) and seems to be ok, normal characters look fine and the application doesn't say anything until I scroll to the page with '&' inside. Also, other PDF readers show the document fine.
    I looked around the forum and saw that other people got the same problem and to them was a bug introduced in Adobe Reader 8.x, but nothing was confirmed by developers.
    Can you help me? Is it a bug? If yes, is Adobe working on it?
    Thank you.
    P.S.
    My Adobe Reader version is 11.0.4

    Reader can not create PDF files, so you should look for bugs in the software that was used to generate it.

  • Reader V8 problem with embedded font

    Hello,
    I'm having problems opening in Reader V8 the PDF file located at http://www.itech.ca/otf-cff.pdf . The file opens correctly in previous versions of acrobat. AR 4 5 6 7. It complains about the embedded font. Can anyone help me identify the reason why the font cannot be extracted ? Is there anything wrong in the PDF file when describing the font, or it's the way I'm generating the embedded font ? Is there any tool I can use to help me debug this ? Any help or hint would be greatly appreciated.
    Thanks in advance.
    rabih

    Rabih,
    Please repost in the Reader forum. This forum is for pdf specification
    issues. Usually, the problems you are having are due to each successive
    version of Acrobat adhering to standards more strictly. A pdf with a
    problemsome font Acrobat or Reader might have tried to render the pdf
    and hope for the best. Now it may reject the pdf.
    Mike

  • Error " Adobe Reader - cannot extract the embedded font 'Ariel Bold "

    Hi gurus!
    I have created smartform for pdf invoice via mail to user id. when that invoice send to user id . PDF file is getting a popup -" Adobe Reader - cannot extract the embedded font 'Ariel Bold . Some characters many not display or print correctly ".
    I want to remove this unwanted popup. please provide any possible solutions.
    regards,
    Ravi

    Hi ravindra, what i can suggest you is to set a breakpoint just before ur cursor goes into the pdf part and just comment the part when it comes to the popup. its very easy and the best way to do it.
    Cheers

  • Error message from Adobe Reader. cannot extract the embedded font 'LICCMC+MyriadPro-Light'. some characters may not display or print correctly. Print looks like gibberish

    Trying to view/print PDF documents from website. Print looks like gibberish and is unreadable. Problem is with the embedded fonts. Error message from Adobe says cannot extract the embedded font 'LICCMC+MyriadPro-Light'. some characters may not display or print correctly.

    Try Adobe support, that's not a Firefox support issue. <br />
    http://forums.adobe.com/index.jspa

  • Embedding fonts in pdf

    Hi there, this questions sounds a bit lame but it got me puzzled. I have to produce a pdf where the client (without any design skills)
    can edit some parts of the text without having the font so the pdf must have embedded fonts.
    When I check the pdf in Acrobat X is says "FontName (embedded subsets)" but when I open this pdf on another machine without that
    specific font and want to edit the text with TouchUp, I get a dialog box saying: "All or part of the selection has no available system font.
    You cannot add or delete text using the currently selected font."
    I'm exporting directly from  ID CS5.5. What am I missing here?

    It's not wheter the font is free or paid, it's waht the internal settings are that determine if a font can be embedded, and if so what use can be made of the embedded font. Though not about ID or PDF, this article from Microsoft gives a good overview of embedding restrictions: http://msdn.microsoft.com/en-us/library/ms533034%28v=vs.85%29.aspx
    That said, if you see the same error message with a lot of different fonts (try something common, like Arial that ought to be on almost every computer, too), then something else is probably at play.

  • Embedding fonts in document

    I work for a Printing Display company. Illustrator CS3 allows you to embedd subset fonts only with permission bits available. The problem I'm having is some of our big customers do not want to send copies of the fonts they paid for. They save the file as a PDF with the fonts embedded so that they will view and print from either Acrobat or Reader. If I open the file in Illustrator I get a "Font missing" warning. What is the work around for this? The reason I need to open these files in a Graphics App is because we need to use our templates in order to edit colors and bleeds and such. Without the fonts it's pretty much useless. We could tell the customer to just outline all text but this is a hassle for all kinds of reasons. Would appreciate any help. Thanks.

    Paul,
    When you open a PDF in Illy, all text is made Live Type, using the same font. If it is not accessible on your machine, Illy substitutes another font based on her best guess for a best match.
    The option of having embedded fonts outlined and thereby turned into non (textwise) editable vector objects, very useful in many cases without need for modifying wording, has long been wished. I am afraid this wish has not been met yet; maybe it will happen in CS5, or later, or never.
    Those PDFs without issues only hold fonts that you have.
    I thought I remembered that there was a cunning roundabout way of obtaining this, and here it is, at least for versions from CS2 on:
    1) File>New to open a new blank document;
    2) File>Place the PDF, ticking the Link option;
    3) Object>Flatten Transparency, ticking Convert All Text to Outlines option if applicable (flattening causes outlining at least in 10).

  • Embedded font issues -- Flex not measuring properly

    I started this out in one thread ( http://forums.adobe.com/thread/470702 ) and it has progressed into a new, bigger issue. I embedded fonts using the code below.  Flex is not measuring them properly or the font I'm using is vertically challenged.  I suspect the font I am embedding has different vertical spacing than the default font.  I have determined the fonts are embedding by rotating the containers.
    Here's an example of what I'm getting:
    The right side radio button is the raw display (height works out to 23), the left side radio button I forced the height to 15.  Both the radio buttons are set to exactly the same y coordinate.  You can see the right hand text is not centered on the radio button.  I don't want to go thru the hassle of adjusting every single component height to make the font look centered plus that's an ugly workaround.
    I don't think there is anything wrong with my code nor do I think a font swf will help.  I sure would like to know what's going on but it is beyond my understanding.  Here's my thought.  I like the default font the compiler uses when I DON"T embed fonts, looks like this:
    I figure if I could embed this font, everything would work properly.  I just don't where this font lives.  The docs indicate the default font is _serif but it looks more like _sans to me.  And I don't know the hierarchy for my platform.
    So...  Does anyone know either how to fix this measurement issue or where I can find THE True Type font or swf or something that Flex uses as a default so I could embed it?
    /* CSS file */
    @font-face {
    font-family: MainFont;
    src: url("assets/fonts/verdana.TTF");
    unicode-range: U+0020-U+007E;
    advancedAntiAliasing: true;
    @font-face {
    font-family: MainFont;
    src: url("assets/fonts/verdanab.TTF");
    unicode-range: U+0020-U+007E;
    advancedAntiAliasing: true;
    fontWeight: bold;
    @font-face {
    font-family: MainFont;
    src: url("assets/fonts/verdanai.TTF");
    unicode-range: U+0020-U+007E;
    advancedAntiAliasing: true;
    fontStyle: italic;
    @font-face {
    font-family: MainFont;
    src: url("assets/fonts/verdanaz.TTF");
    unicode-range: U+0020-U+007E;
    advancedAntiAliasing: true;
    fontWeight: bold;
    fontStyle: italic;
    global {
    font-family: MainFont;

    First off, yes there was a correction to the left hand radio button.  I forced the height of the button to be different and that seemed to help center things
    After a bit of beating my head against the way, I decided to run a simpler test.  I set up a case where I had default fonts side by side with embedded fonts.  Since my default.css file had Verdana I decided to use a Verdana embedded font.  I figured I could compare them directly and maybe play with advanced anti-aliasing at the same time.  I've attached the files (change the txt extension to mxml)
    The result was a somewhat of a surprise.  I didn't realize that all text really wasn't centered on the component (eg radio button, checkbox) at my default size and below.  I do see the small pixel shift, especially in the Button.
    So...  I have found the "real" font declaration in the defaults.css file, am seeing the small pixel shift with embedded fonts, that using advanced anti-aliasing  can help on smaller text, and realized I have to be very careful where I use font sizes smaller than default.  I'm guessing that the "perfect" default size on my system would be 12 since that appears what my Verdana.ttf font is based on.  My defaults.css file has the font size set at 10.  The inability to measure properly is exacerbated when the fonts are embedded.
    Now the real question -- anyone have a clever fix?

  • Remove an embeded font from a PDF

    Hi Guys
    I have a bunch of PDF's where I need to remove a sertant font due to Copyright reason.
    When I use the PDF optimizer and unembed the font, it replaces the font with another all over the PDF, but when I open the optimized PDF and check the properties, it still says that the font is
    embeded.
    How can I completly remove the embeded font? and is there a way, where I can choose the substitude font?
    Another solution would offcourse be, to transform all the text to pictures, but the quality is simply to bad to use.
    I am using Adobe Pro IX for Windows 8.1 (64 bit)

    Why do you think it's still embedded?
    It will appear on the File Properties > Fonts list because it's defined as the typeface to use in preference when rending the file, but unless the entry says it's embedded, it's only a reference to the name.

  • Embedding font in app

    Hi,
    I'm using LTC Bodoni (via TypeKit) on my website and now I'm working on my digital portfolio: basically HTMl5+CSS, packed with Baker Framework to be published on Apple Store.
    I would use the font with @font-face.
    I'm wondering if the licence of Bauer Bodoni allows this kind of use.
    I want ot be sure before buying the font...
    On Bauer Bodoni webpage (http://store2.adobe.com/cfusion/store/html/index.cfm?store=OLS-IT&event=displayFontPackage &code=1294) Embedding licence is set to Editable for this font: so I could embed the font in a digital document and "the embedded font can then be used by the recipient of the electronic document to view, print and further edit or modify the text and structure of the document in which it is embedded."
    Using a font inside an app is a little bit different: my final file is not a real document, it's an app. But the recipient (final user) will not be able to modify the document or use the font in no way, because it will be embedded inside the app.
    Does someone have any idea?
    Does licence cover use inside app or not?
    Thanks!
    maurizio

    ilpiac,
    You may try a search for embedding font in this forum and in other forums, such as these:
    http://forums.adobe.com/community/design_development/printdesign?view=discussions
    http://forums.adobe.com/community/design_development/design?view=discussions
    http://forums.adobe.com/community/design_development/webdesign?view=discussions
    You may also narrow the search to Dov Isaacs, or hope that he will see and post in this thread (soon).

Maybe you are looking for