Compiler won't embed fonts as CFF

I've just started working with Flex 4 SDK and the Text Layout Framework. There is one problem I have not been able to solve, no matter what. I am trying to embed a font to use with the new text engine, so it must be embedded as CFF, if I understand correctly. I attempted this, and I get no compiler or runtime errors, but when I check the fontType property of the embedded font, it says 'embedded' instead of 'embeddedCFF'. I am using what I believe is proper embedding code:
[Embed(source="lacuna.ttf", fontFamily="Lacuna", cff="true")]
But it won't actually embed it as such, it seems. Here's a zip file with a demonstration of my problem; includes the free Lacuna TTF font, but you may replace that with any other, if you wish to see that this is not an issue with the font itself.
Regarding the contents of the zip file: I am not using the Flex IDE (or Flash), so I included a Windows batch file to easily compile the Main class, but it must be configured for it to point to the correct Flex SDK path. Don't mind the Label class; it just makes it easy to create a TextLine (from the TLF).
My problem could be related to this issue, but I'm not using the Flex IDE, and I don't know what RSLs are.
I'd greatly appreciate anyone who can help me solve this little headache of a problem. I'm very intrigued by the TLF, but I seem to have been roadblocked with this issue.
edit: Forgot to say: I'm using the 4.0.0 build 7219 version of the Flex SDK.

Embedding a font does not make it available in Illustrator or any other program. (Exception, Acrobat is able, and must, use the font to correctly draw the page.)
If there are missing fonts when opening a pdf in Illustrator, the fonts are not installed on the machine.
As Bob said, "Illustrator is not a pdf editor!". It can, and is abused for such, all to often, with caveats.

Similar Messages

  • Won't embed font due to licensing restrictions

    Trying to work with the Chinese font provided on a MAC called HeitiStd, however when I try to make a PDF I get the error message: won't embed font due to licensing restrictions.
    Any idea how to work around this?
    Cynthia

    Thanks for the help. How do I get the font to re-install? It came with the computer. Is it on the original disks? Should I contact Apple? (I'm on a MAC).
    Thanks for not treating me like an idiot and telling me to "use another font". That's pretty obvious and of course I tried that first, but the "other fonts" didn't show all the characters! I knew about the outline too, but needed to be able to edit the PDFs.

  • Embed font as cff error

    Is there a way to get around an embed conflict with a spark Label components and mx.Alert component?
    I have embedded the Arial font in to my application:
    @font-face {
       src:url("c:/windows/fonts/arial.ttf");
       fontFamily: Arial;
       embedAsCFF: true;
    If I set my Arial font embedAsCFF=true, I get an error on my Alert box.
    If I set my Arial font embedAsCFF=false, I get an error on my Label component.
    Is there around this?

    When using Flash Builder, right click on your project, select Properties
    Select Flex Compiler
    Tick the box which says "Use Flash text engine in mx components".
    That fixed the issue.

  • How do I embed fonts into Captivate projects?

    This question came up in May 2006 but was never really
    answered. I'd like to know how to embed fonts into my Captivate
    projects so that the output looks the same on all computers. While
    the text animations are fine, the Text Caption fields are the ones
    that seem to have fonts that go walkies on other computers. I know
    you can embed fonts in PDFs. Why not in Captivate (unless I'm
    missing something in 2.0).

    First, a tip for the forums: If you use the URL tags, your
    post won't require horizontal scrolling - sorry, but I use Firefox
    and entering a long URL totally blows my ability to smoothly read
    the post ... you can manually add a text link by using the "L" tag
    as shown below (I've put spaces in to avoid this being turned into
    another text link)
    [ L = Your Text]
    http://www.yourdomain.com [ /
    L ]
    Back to your issue, Charinos. I'm glad you did find the URL,
    but that thread and your problem are not even in the same world.
    That thread deals with fonts in text-entry boxes (boxes for
    end-user text-entry), and you are talking about text-captions, an
    entirely different object.
    In fact, if you make changes and save those changes to a
    text-caption, then publish the project, the fonts in your text
    captions will remain stable and are not dependent on the fonts
    installed on the end-viewer's machine. The reason is that when the
    SWF is compiled, the text captions are converted to images and so
    long as the file is viewed as intended in the HTML document - at
    the proper size - the stretching you describe cannot take place.
    I'm not saying you are seeing things, but if my understandings of
    the Captivate machine are correct, what you are saying is happening
    cannot
    be happening. Something else is going on, like a failure to
    save changes, use of non-conforming text-caption boxes with a
    resultant loss of margins, or something.
    Sorry I'm not more help. I can't duplicate what you are
    seeing but I hope someone else can help you out - I may still be
    misunderstanding your issue.

  • How to embed fonts in ePub (Pages 09)

    ^ That's my question, basically. I want to self publish an ebook, but it has some unusual fonts for the chapter headers, and I know that unless I embed them somehow, ereaders won't automatically pick up on them.
    Is this possible? And if so, could someone give me a rundown please?
    Ta much!

    Do a google search on "embed fonts epub" to find info on how you have to modify the code to do that.

  • I Need to Embed Fonts in my PDF

    Hi,
    I am trying to upload a pdf into a website but they say there is an error that's stopping the process from going ahead. Apparently I have to embed the fonts in my pdf first.
    I've done quite a bit of online research and found several ways of doing this - none of which seem to be possible to me!
    Is there a way that I can embed fonts without having to buy something? I have Adobe Reader, Digital Editions... but I have no idea if I have anything else (Acrobat?). I haven't deliberately bought it, but this is a brand new top-of-the-range, expensive laptop so I don't know if would have already been installed? Windows 8.2 means that it's harder than ever to navigate your way around the computer. 
    Thank you in advance,
    zengirluk

    I have Adobe Reader!
    I just made a document in word and saved it as a pdf.
    I have downloaded the trial version and gone through the steps as described here:
    https://lvb.wiwi.hu-berlin.de/doc/embedfonts.pdf
    Now about to upload to the website... I'll let you know if it's worked. I have a feeling it won't have because I don't have a printer and didn't print it out. The method described above wanted me to print the document out. However I don't want or need to. I just want to embed the fonts so the website accepts my document!

  • Embed fonts in Flash CS3 and load in Flex at runtime

    Hi,
    I want to embed fonts in the library of Flash CS3, compile it into a SWF and load it in my flex up at runtime and register the embedded font.
    I'm able to get the linked class in Flex but the font doesn't show.
    The FLA has a font called Viner Hand embedded as a library item, with linkage VinerHand and baseclass as flash.text.Font
    Here's the code in flex to register the font -
    var FontLibrary:Class = ApplicationDomain((event.target as LoaderInfo).applicationDomain).getDefinition('VinerHand') as Class;
    Font.registerFont(FontLibrary);
    When I do Font.enumerateFonts after this, I see [Font VinerHand] in the array but the textField doesn't show the font embedded.
    Nishant

    Hi there,
    Try taking a look at the following links:
    http://www.trajiklyhip.com/blog/index.cfm/2007/7/18/Embedding-Fonts-in-Flex
    http://blog.flexexamples.com/2007/10/25/embedding-fonts-from-a-flash-swf-file-into-a-flex- application/
    Hope it helps.
    With best regards,
    Barna Biro

  • Flex 4 Embed fonts in flash swf VS embedding fonts in flex

    I have this dilema...what's the best way to embed fonts?
    In flash I can easily embed the fonts + the chars ranges that I need through the menus export the swf and then use it in flex.
    In flex I don't see an easy way of setting the character ranges. How can I get the values I need? I read the format is U+(beginning of range)-(end of range) but where do I take beginning and end of the range from ?
    Thanks in advance.

    Сode hinting in Flash Builder 4 code editor for global style, e.g.
    global {
       font-family : Arial;
    works for me.
    Also in @font-family style declarations, I can code hint for "font-family", "embed-as-cff" styles property too.
    Although, it is true you do not get code hints for values for those particular properties, I think that CSS editor could support it too, but it does not.

  • Embed fonts on classic TextField doesn't work, even with TextFormat applied

    Hi.
    I created an Item that extends MovieClip and that has a TextField on it where it where it will display the item's name. I want to embed the font but I'm having trouble because the text won't display.
    I read the embedFonts description (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.ht ml#embedFonts) and I have formatted the TextField via a TextFormat instance with my chosen font.
    My code:
    import flash.display.MovieClip;
        import flash.text.AntiAliasType;
        import flash.text.TextField;
        import flash.text.TextFieldAutoSize;
        import flash.text.TextFormat;
        public class Item extends MovieClip {
            private var _sName:String = "";
            private var _txtName:TextField = new TextField();
            private var _nColor:uint = 0xAACC00;
            private var _tfText:TextFormat = new TextFormat();
            public function Item(s:String) {
                //also tried embedding here but got the same result
                _txtName.text = s;
                _txtName.autoSize = TextFieldAutoSize.RIGHT;
                _tfText.font = "Helvetica";
                _tfText.size = 30;
                _tfText.color = _nColor;
                _txtName.setTextFormat(_tfText);
                _txtName.antiAliasType = AntiAliasType.ADVANCED;
                _txtName.embedFonts = true;
                addChild(_txtName);
    If I remove the embed part the text shows correctly. I'm at a loss, what order of elements do I need to use to embed the font correctly?
    Thank you.

    To use the embedFonts property you would have to use an actual embedded font. The way you have it coded it is using system fonts.
    I did a quick Google Search and this seems to explain how to embed fonts in AS3 quite well:
    http://divillysausages.com/blog/as3_font_embedding_masterclass

  • Embed fonts not working

    Hi,
    I want to embed fonts within my Application but somehow it is not working.
    I am doing the steps as below:
    I am compiling fonts swfs in Flash CS4 with Publish settings as Flash Player 10 & ActionScript 3.0
    Then I am having css files which I am compiling with mxmlc like: mxmlc c:\Palatino.css.
    It is compiling and giving me swf file as Palatino.swf. I am doing this with "Adobe Flex 3 SDK command prompt"
    Then I am loading these files with "StyleManager.loadStyleDeclarations".
    But still when I am changing the fontFamily to "Palatino", it is now showing it.
    I have attached the Palatino.css with this. I am using Flex 3.2 with TLF version 442.
    Please let me know if I am making any mistake.
    Regards,
    Rajesh

    Hi Abhishek,
    Thanks for the reply.
    Actually in my project which was previouly built in Flash 9 we were using TextArea.
    We first have created Flash files for all fonts first (in Normal, Bold, Bold Italics...). Then we have all the css files like one which I have attached before. Then we compile this with Flex 3 SDK command prompt with mxmlc.
    Then we have already worked out to load these font swf files and use them.
    I just want to follow similar approach here for TLF.
    Let me know how this can be achieved.
    Rajesh

  • Embed fonts not available error (But they are available sysetm fonts)

    Hello!
    I tried to search and actually did found some answers regarding font problems, but they did not help. So I am explaining here my problem in hope that someone can help me.
    My company bought a HP Xeon X3450 @ 2.8Ghz. @Gb RAM DD3 1333 with Windows 7 64-Bits version Professional.
    We installed Adobe CS3 Suite on Windows 7 64-Bits version and the problems with fonts started.
    We used to work with XP Professional before this new machine arrived and never had system fonts propblems with Adobe CS3 Suite.
    Basically, what happens is:
    When I try to open PDF files with embed fonts (system fonts susch as ARIAL for example) the program returns an error saying that the fonts are not installed/available, but checking the C:\windows\fonts, they are there and working fine on Office or other common application such as notepad for example.
    I tried the workaround I found on these very forums of copying the fonts to the folder C:\Program Fils\Common Files\Adobe\Fonts and it still does not work.
    Formated the HD and then installed Windows 7 32 bits (x86) and still have the same problems. All updates were made and applied to Adobe and Windows respectively for both 64 and 32 versions and the error still happens.
    In resume, fonts are installed, they are system fonts but under Windows 7 64 or 32 bits versions they simply do not work when opening the PDF files with embed fonts.
    -The PDFs had no problems before while running windows XP Professional.
    -The PDFs open whithout any problems on machines with Windows Xp Professional.
    -This is happening specifically in Adobe Illustrator CS3 and CS5 and Adobe Acrobat Professional 8 and 9.
    Please, I urge for help since we don't know what to do anymore.
    Thank you all who took time to read this and forgive my terrible english, it is not my first language.
    Best regards,
    Message was edited by: Andre Gurtovoi - Reason: added information.

    Andre,
    What I believe you have is 2 different versions of Arial, you old machine probably contains the version you need.
    By old version, I mean one could by true type(XP), and another Opentype (WIn 7), and the error comes up. Even though they have they same name (Eg: Arial Bold).
    There are even old version of fonts that are both of the same font technology format and have different FOND ID  numbers(Eg: Frutiger was one that I often encountered, but you don't see this problem that much nowadays).

  • How to embed fonts AND keep bookmarks?

    Hello, newbie here.
    I use MS Sql Server Reporting Services to generate a lengthy report, often over 100 pages. The report must be distributed as a PDF, and it must use some slightly unusual fonts, and it needs bookmarks. Reporting Services has a PDF rendering engine which can insert the bookmarks, but it cannot embed fonts (I'm using Visual Studio 2005).
    So after some investigation, I saw that I can embed fonts by converting the PDF to a Postscript (PS) file, then use Distiller to re-create the PDF with embedded fonts. A bit clumsy, but it works, EXCEPT that apparently the conversion to PS removes the bookmarks.
    So I am guessing that I'm going about this all wrong, and am hoping some one here can show me a better way. Oh yes, I have Acrobat 9 Pro and Distiller 9.
    Thanks in advance,
    Dave

    You may be overcomplicating this. Hopefully, depending on which SQL report writer you use, you can configure it to embed fonts or at least a subset of the fonts at the time of the report generation. I have never had much luck with it outputting bookmarks so if you have mastered that, you have me beat. I took a section from my SQL report help on embedding fonts and and plagiarizing and pasting it below:
    Font Embedding
    When possible, the PDF rendering extension embeds the subset of each font that is needed to display the report in the PDF file. Fonts that are used in the report must be installed on the report server. When the report server generates a report in PDF format, it uses the information stored in the font referenced by the report to create character mappings within the PDF file. If the referenced font is not installed on the report server, the resulting PDF file might not contain the correct mappings and might not display correctly when viewed.
    Fonts are embedded in the PDF file when the following conditions apply:
    Font embedding privileges are granted by the font author. Installed fonts include a property that indicates whether the font author intends to allow embedding a font in a document. If the property value is EMBED_NOEMBEDDING, the font is not embedded in the PDF file. For more information, see "TTGetEmbeddingType" on msdn.microsoft.com.
    The Font is TrueType.
    The characters in the string that has the Font property set are Unicode, not ANSI. No font embedding occurs for ANSI characters.
    Fonts are referenced by visible items in a report. If a font is referenced by an item that has the Hidden property set to True, the font is not needed to display rendered data and will not be included in the file. Fonts are embedded only when they are needed to display the rendered report data.
    If all of these conditions are met for a font, the font is embedded in the PDF file. If one or more of these conditions is not met, the font is not embedded in the PDF file.
    Fonts on the Client Computer
    When a font is embedded in the PDF file, the computer that is used to view the report (the client computer) does not need to have the font installed for the report to display correctly.
    When a font is not embedded in the PDF file, the client computer must have the correct font installed for the report to display correctly. If the font is not installed on the client computer, the PDF file displays a question mark character (?) for unsupported characters.
    Verifying Fonts in a PDF File
    The fonts that are embedded in the PDF file are included in the Fonts property that is saved with the file, as metadata.
    To check if the font is embedded go to File/Properties/Fonts and see the status of the fonts, if they say embedded or subset embedded you are all set.
    lt me know where your process lets you down and I can try to help from there.

  • 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 document for all users

    Hello,
    we are using a custom font for our documents. I know it's possible to embed fonts in document when saving.
    Is there an option to enforce this setting with a policy?
    I cannot find the right policy in the Office Policy templates.
    We are using Office 2013 x86.
    Thanks in advance.

    Hi,
    Based on my knowledge, the option is document-based, we can't control this on the Policy level.
    If your request is to turn on this option for all new created documents. Since all new documents are based on the Normal.dotm template, a workaround is to create a new Normal.dotm template in which this option is checked:
    Browse to C:\Users\Username\AppData\Roaming\Microsoft\Templates, open Normal.dotm, tick the option and save it as Normal_1.dotm, save it in the same location.
    Then rename the old Normal.dotm to Normal.old, rename Normal_1.dotm to Normal.dotm.
    Open Word and create a new blank document, you will see this option is ticked.
    To deploy this file for all users, we can write a startup script. The process is like: 1. Remove the old Normal.dotm, 2. Copy the new Normal.dotm template from a network shared location to C:\Users\Username\AppData\Roaming\Microsoft\Templates.
    I hope the information is helpful to you.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs. Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to embed fonts in PowerPoint?

    Is it possible to embed fonts in a PowerPoint presentation?

    I just spent a half an hour looking through the menus and Help and I couldn't find an option to enable that feature. It doesn't seem to be available. But, that doesn't mean it's not possible. There are certainly work-arounds, like printing your slide show and then choosing to save as a PDF. The PDF could be displayed with Acrobat Reader on any computer and the fonts would be imbedded.
    -Doug

Maybe you are looking for

  • HOW TO VIEW BLUETOOTH IMAGES FROM A LAPTOP?

    MY COUSIN SEND 6 PICTURES FROM HER LAPTOP TO MY IPAD AIR 2 BUT WE DONT KNOW WHERE THE PICTURES GOES, WE DIDNT SEE THE 6 PICTURES FROM THE PHOTOS.. SO HOW AND WHERE CAN WE VIEW IT?

  • Xml mapping for java- OracleXMLUtil

    we're using getStructFromXML to load xml into our oracle object model/hierarchy. because our xml schema (cXML, btw) is rather complex we've implemented lots of object references (REFs) in our object tables. we've figured out how to deal with NTABs bu

  • JComboBox drops up instead of down!

    I have a JComboBox in a JMenuBar at the top of my JPanel. I have some items in the JComboBox. When I click on the arrow to view the elements, the display window goes up instead of down. Thus, I can only see one item since all the others are our of th

  • Error At Utilities

    Hi, Iam trying to get documet entry no. I had watched foll thread: http://forums.sdn.sap.com/thread.jspa?threadID=1247122 protected void FormDataEvent(ref BusinessObjectInfo busObj, out bool bubbleEvent)    bubbleEvent = true;    if (busObj.EventType

  • Why do i have four tabs coming up when I open firefox

    it takes a while for firefox to load because it is opening 3 tabs at a time for some reason. I only need one. One of the tabs is titled welcome to firefox. It shows Horray!!! your firefox is up to date. another tab shows version 6.7 installed of easy