How to embed?!

I don't seem to be able to use the embeded fonts! this is how I'm doing it:
in my document class I'm embeding the font like this:
[Embed(source="assets/tahoma.ttf", fontFamily="Tahoma", mimeType="application/x-font-truetype")]
private var tahoma:Class;
and then I registered the font in the constructor:
Font.registerFont(tahoma);
it seems to be embeded because the SWF file increases... now I create my textFlow:
_textFlow = new TextFlow();
_textFlow.fontFamily = "Tahoma";
_textFlow.fontSize = 13;
_textFlow.color = 0x000000;
_textFlow.fontLookup = FontLookup.EMBEDDED_CFF;
_textFlow.renderingMode = RenderingMode.CFF;
_paragraph = new ParagraphElement();
_textFlow.addChild(_paragraph);
_span = new SpanElement();
_span.text = _label.value;
_paragraph.addChild(_span);
_txtContainerController = new ContainerController(_myLabel, NaN, NaN);
_textFlow.flowComposer.addController(_txtContainerController);
_textFlow.flowComposer.updateAllControllers();
I beleive those two highlighted lines are actually responsible for embeding the font? yes? but this is not working for me. any idea why? thanks.

The fontLookup property you've higlighted tells TLF to use the embedded font.
This sample code embeds a font:
[Embed(mimeType="application/x-font", exportSymbol="myArial_bold_normal", embedAsCFF="true", fontWeight="bold", source="arialbd.ttf", fontName="myArial")]
public class myArial_bold_normal extends mx.core.FontAsset
I believe the main thing you are missing is the embedAsCFF="true" on the Embed tag.
Hope that helps,
Richard

Similar Messages

  • How to embed fonts in a textbox in adobe acrobat 9

    Hi all,
    The forms has beed designed in adobe acrobat 9.It has the text in the textboxes with a fontstyle of DejaVu Sans Mono.The client or the user generates the form by clicking on the appropriate link and the textboxes are populated accordingly.The problem is they dont have the fontstyle used in the textbox installed on their system.So whenever they generate the pdf the font in the textbox doesn't print in properly.Is there anyway we could force it to use the font which we have originally set up.Thanks in advance

    Bernd Alheit wrote:
    Read this:
    http://www.ehow.com/how_6566713_embed-fonts-pdf.html
    I have the somthing like the following in Ctrl-D Fonts. They can not be embedded using the method above. I guess it is because the fonts in the original pdf are not available in the system. But how to embed the substitutes in the pdf file.
    Helvetica
        Type: Type 1
        Encoding: Custom
        Actual Font: Helvetica
        Actual Font Type: TrueType

  • How to embed audio to my website using quicktime when I get "file not found

    hi,
    i've been trying to embed audio into my website all night and I get a file not found message even though I;ve checked 100 times and all files are where links say they should be..
    but even just linking to audio (mp4) files won't work...
    everything is o.k. with non-audio links on my website - only the mp4 audio can't be found.
    can anyone help me? or post the correct code?
    I've tried using these formats..
    <EMBED SRC="anymovie.mov" HEIGHT=176 WIDTH=136>
    <embed
    src="http://www.crossandthrone.com/.samples/qt/sample-reference2.mov"
    width="242" height="199" autoplay="false" loop="false"
    controller="true" bgcolor="#666666"
    pluginspage="http://www.apple.com/quicktime/"></embed>
    the pages that should play audio just have a quicktime file with a question mark on them
    help would be much appreciated!

    Start here:
    http://www.mediacollege.com/video/streaming/
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "subdued2u" <[email protected]> wrote in
    message
    news:gbg2th$r13$[email protected]..
    > Hello ,guys, i have a website,, and i would like to add
    upload vidoes on
    my
    > website i have tried but did not work can anyone please
    tell me how to
    embed my
    > videos in my website using dreamwever ?
    > thank so much
    >

  • How to embed the needed fonts in a pdf file

    Dear Sir/Mam,
    We had purchased licenced version of adobe acrobat x pro
    We are facing issues while embedding the font in the pdf file
    Please find the below mentioned requirement
    Requirement:
    We have a pdf file (template) with some static images and static text in it
    We need to populate dynamic data in the pdf file for this we may use text boxes
    We need to set the font name for the text box and embed that font in the pdf template (Eg:Font to be used in textboxes is "RotisSansSerif-Bold")
    Queries
    Please let us know how to embed the needed fonts in the pdf file?
    Once user exports the pdf file, even if user doesnot have the fonts installed in his system the text need to be displayed in the same fonts,how to acheive this?Eg:if we define "RotisSansSerif-Bold" as font in the textboxes,after exporting the data the text need to be in the same font.
    Note:
    Fonts will only installed in the application server and not in the client system
    The mentioned requirement need to work on below mentioned specifications
    OS:Windiows-XP,  Browser:IE
    OS:Mac osx, Browser:Safari
    Regards,
    S.N.Prasad

    There is a similar post just a few away from yours. I will suggest what I would try. Open your job settings file (press or print preferred to get all fonts) and then select the properties and the font tab. At your font to the always embed list and you will likely need to uncheck the subset box. Then save your job settings (give it a name that is meaningful to you, you can not use the settings file you started with as they are read only and I do not recommend changing that). Maybe that will do the job. Of course that is for the creation of the PDF, I forgot you were talking about a form. You might check the form field properties, but I suspect you have already tried that. Guess I don't play with forms enough. Others may be by to answer.

  • How to embed email opt-in form in image

    How to embed email opt-in form in image

    You cannot delete the email field. It is required for the form to work. One thing you can do that is a bit more work is to use Adobe Forms. I believe it is at Quickly & Easily Create Online Forms and Surveys | Adobe FormsCentral and create the form you want there and then you can copy the embed code from it and use the insert HTML to embed the form in your page.

  • Ical calendar how to embed into webpage

    Using iWeb I successfully published my iCal calendar to my website. However suddenly my embedded calendar stopped showing any entries. I understand this is due to the changes in the mobileme calendar. Can I restore the previous very useful facility? Or do I have to switch to Google calendar? It a resource that I found very useful for clients wanting to see when I was available and I am sure many other users use a facility like this.  must say that Apple have annoyed me over this. It was not easy finding how to embed the calendar in the first place and now they seem to have downgraded the mobileme calendar. I thought the general trend was to improve applications not the reverse.
    Any help would be much appreciated

    I don't believe you can restore that capability. 
    You can add a Google calendar to a web page (it's scaleable whereas the iCal calendar was not) and then sync your iCal calendar to the Google calendar with Google Sync Services.  An example is shown on this demo page: Google Calendar.
    OT

  • How to embed image in email, not as an attachment?

    I need to know how to embed an image into Mail without making it an attachment. Any ideas?
    Thanks in advance.
    Hana

    drag the image to the email. that's all. how it will show on the other end depends on the email client configuration of your email recipients, not on you.

  • How to embed JavaScript in a DynPro View?

    Hello,
    I hava a standard DynPro application.
    I would like to add a link UI which by pressing it will activate a JavaScript function. Can someone please show me how to do it and ingeneral how to embed JavaScpript in a DynPro View?

    This (protocol javascript:) probably works in current releases but in future releases it will be disabled by default for security reasons.
    The set of allowed URL protocols will then be configurable in the J2EE server.
    Armin
    Message was edited by: Armin Reichert

  • How to embed views dynamically in a view container ?

    Hi ,
        Can you please guide me how to embed a view dynamically in a view container ?
    Thanks & Regards
    Gaurav Jain

    Hello,
    Please read this [/people/rajagopal.vemuri/blog/2006/09/19/web-dynpro-for-abap-creating-dynamic-ui-elements-and-context-step-by-step].
    Regards.

  • How to Embed Fonts and make Grayscale in Acrobat Pro 9 PDF

    I supplied my printer with a PDF but he says that I need to "Embed The Fonts" in the PDF.
    I made the original document in MS WORD and then I created the PDF in Acrobat Pro 9 but nowhere
    along the way did I see anything that asked me to Embed The Fonts.
    He also says that the type is in RGB but it needs to be in Grayscale.
    When I created the PDF I didn't see any option along the way that gave me a choice between
    RGB and Grayscale.
    Any ideas how to achieve these two effects while going from an MS WORD document to a PDF using
    Acrobat Pro 9 please?
    Any help would be much appreciated.

    Sorry to bother you with my problem but I wondered if you could explain a little bit more about things I didn't understand.
    1 - you said > On a Mac there is no advantage to using the Word plug-in.
    Do you mean that I can type directly into Acrobat?
    I thought that a document needed to be created in a word processor first before I could turn it into a PDF.
    Is that incorrect then?
    2 - > Create the pdf file a print file menu gives you greater control.
    I do apologize but I did not understand this statement either, could you please expand on it a little (to a non-techie.)
    3 - > If you use the Press job option setting, the fonts will be embedded.
    I can't find Press job option setting anywhere - I am using Acrobat pro 9 but there doesn't seem to be a menu with Press
    anywhere, could you please expand on this a little bit too please.
    4 - > If the pdf file has already been created it can be converted to greyscale using the Preflight or Convert Colors
    under Advanced -> Print Production.
    I understood this part and I executed it according to your instructions so thank you for that.
    Unfortunately I couldn't find out how to embed my fonts and my printer charged me $75 to do that
    so I was pretty upset about not being able to understand that part of your explanation.
    Since the printer was able to embed the fonts in a document that was already a PDF then it must be possible
    to embed fonts after a PDF has been created, is that correct?
    If that is correct then i don't know how I could not find how to do it because I looked everywhere for that
    ability but I could not find how to do it.
    I'd be very grateful for any further help you could give, thank you.

  • How to Embed fonts in existing PDF file

    HI,
    I want to know how to embed the fonts in an existing PDF file, i do have Acrobat.
    Thanks

    Post your question in the forum for Acrobat.

  • How to embed fonts in a pdf file

    I have a pdf that has some fonts not embedded. I think that distiller might be able to embed the fonts when I print the pdf file, but it is inconvenient and may not always work. Is there a direct way to embed the fonts in Acrobat? Thanks!

    Bernd Alheit wrote:
    Read this:
    http://www.ehow.com/how_6566713_embed-fonts-pdf.html
    I have the somthing like the following in Ctrl-D Fonts. They can not be embedded using the method above. I guess it is because the fonts in the original pdf are not available in the system. But how to embed the substitutes in the pdf file.
    Helvetica
        Type: Type 1
        Encoding: Custom
        Actual Font: Helvetica
        Actual Font Type: TrueType

  • How to embed the Images in the java sourse

    How to embed the Images in the java sourse
    The size of the file will be too large while I put the binary code of the image into the java sourse!
    thanks

    You could encrypt them with a private key and then
    decrypt them with a public key.
    Almost had it... public key encryption works the other
    way around... otherwise what's the point of
    encrypting... if the decryption key is public?Spinoza's right. Public key encryption works both ways, but it would be useless in this case to encrypt with the private key. The problem is, how do you package your private key with the application in a way that doesn't allow the user to get it? Encrypt it? :-) I agree that there's no point to this exercize. If users want to screw up the application by editing its image files, let 'em.

  • How to embed virtual tour in adobe muse ?

    Hi
    How to embed virtual tour in adobe muse like this ?
    http://www.artisanerie-embrun.fr
    The height / width is responsive.
    I have a iframe code but the result isn' the same.
    Thank you

    You can try this one for specific use :
    http://musewidgets.com/collections/all/products/iframe-pro-pack
    Thanks,
    Sanjit

  • Can someone please give me a step-by-step guide on how to embed a video in my Indesign document?

    Can someone please give me a step-by-step guide on how to embed a video in my Indesign document? I've got CS4 and I've tried to follow Adobe's instructions. Even Creative Suite 4 for Dummies. But I can't get it to work. And yes, I understand the video will only play when exported as a pdf -- not in the indesign document. Help! Donna

    Please repost in the InDesign forum along with full details including what the problem is.
    Telling us it doesn’t work is meaningless.
    Bob

  • How to embed mp4 in PDF  through Adobe Standard?

    How to embed mp4 in PDF  through Adobe Standard?

    That's available in Acrobat Pro.
    See the features matrix

Maybe you are looking for