Embeding Fonts from TTF File

Hi,
I had a very basic question on using Embeded Fonts in SWF files.
I have to use a Italic effect on a Arail Font text, for this should I use ARIAL.TTF and apply the italic effect on it or Should I go for ARIALI.TTF file?
What is the difference and which is the correct way of doing it?
I am acutally working on a PPT to SWF converter and I am not able to match the look at feel of the Italic or Bold fonts in PPT and SWF, any suggestions where I should look for help on understanding how fonts are used?

Hi Peter,
     Thanks for your reply.
     I did some experimentation and found that I can embed the Arail.ttf file and apply FontStyle=Italic property in my MXML tag and it shows me a italic form of Arail font. But when I try to use the same embeded font using FontRange and specify FontStyle = Italic in font range the italic font is not shown on the UI. Why is there a difference in MXML and Font Range ?
     I understand that I should use ARIALI.TTF file for Italic fonts but the problem is that it increases the size of my SWF. And even if somebody has used a italic style for couple of words it increases the size significantly. I want to avoid that.
     Can you tell me why FontStyle on normal Embede font work from MXML and not from FontRange?
-Saurabh.

Similar Messages

  • How remove embedded font from PDF

    When I print to PDF on Mac OS 10.6.8 by default embed fonts to PDF-file. It add unnecessary bites to PDF-file (the file is huge size).
    How to remove this option of fonts embedding? Or how remove embedded font from PDF file?

    After opening dozens and dozens of linked files,I finally found the offending "empty line of text" in one of the AI files I placed in the INDD file. Open > Select All.... then check the font panel. With mixed fonts, it was empty, but if everything was the correct font, it was filled in. It was just one AI file.
    I want to thank you all for your great ideas and for sharing your experience. Onward, now.

  • Embedding data from xml file into metadata of a pdf

    Hi All
    I'm wanting to do the following, but struggling to figure the right way to go about it.
    I want to embedded data from my MIS into a pdf's metadata (as scrnshot). I can create a standalone xml file with all the data I require, but I'm unsure how to automate that being embedded into a pdf's advanced metadata. I know this can be done, as it worked at a previous employer, but I didn't get chance to find out how they did it.
    I'm wanting to do this so I can carry out a more advanced search of the metadata in Bridge.
    Any advice would be appreciated!

    Hi Northern,
        I have modified the modifyingXMP sample for you. After this change, put your xmp file as sample.xml and also put pdf file in the same folder where ModifyXMP executable is. After merging my changes, ModifyXMP file will read the sample.xml and will embed it into pdf file.
       Please follow the following steps
    1. Download XMPToolkit SDK and follow the steps to compile Sample
    2. Open ModifyingXMP file, replace all the content of that file with the below content
    3. Compile the ModifyingXMP file.
    4. The ModifyXMP.exe will be generated in folder (samples\target\windows\Debug), if you have changed the output folder it will be generated there.
    5. In parallel to ModifyingXMP.exe put the sample.xml (the xml file you have) and also the pdf file (say pdf file name is mypdf.pdf)
    6. Go to console and change directory to the directory where ModifyingXMP is and pass the following command
    ModifyingXMP mypdf.pdf
    7. Open the pdf file and check that value/properties
    For your reference, I am putting the content of the sample.xml file too, put this content in sample.xmp and any pdf and you will find subject field is getting added.
    ************** content of the sample.xml file. Create a file name sample.xml and put that content. Put sample.xml in parallel to ModifyingXMP.exe*******
    <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
        <rdf:Description rdf:about='' xmlns:dc='http://purl.org/dc/elements/1.1/'>
            <dc:subject>
                <rdf:Bag>
                    <rdf:li>XMP</rdf:li>
                    <rdf:li>SDK</rdf:li>
                    <rdf:li>Sample</rdf:li>
                </rdf:Bag>
            </dc:subject>
            <dc:format>image/tiff</dc:format>
        </rdf:Description>
    </rdf:RDF>
    ******************* MODIFIED CONTENT OF MODIFYING.CPP FILE. ***************************************************************************************** ************
    // ========================================================================================= ========
    // Copyright 2008 Adobe Systems Incorporated
    // All Rights Reserved.
    // NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance with the terms
    // of the Adobe license agreement accompanying it.
    // ========================================================================================= ========
    * Tutorial solution for Walkthrough 2 in the XMP Programmers Guide, Modifying XMP
    * Demonstrates how to open a file for update, and modifying the contained XMP before writing it back to the file.
    #include <cstdio>
    #include <vector>
    #include <string>
    #include <cstring>
    // Must be defined to instantiate template classes
    #define TXMP_STRING_TYPE std::string
    // Must be defined to give access to XMPFiles
    #define XMP_INCLUDE_XMPFILES 1
    // Ensure XMP templates are instantiated
    #include "public/include/XMP.incl_cpp"
    // Provide access to the API
    #include "public/include/XMP.hpp"
    #include <iostream>
    #include <fstream>
    using namespace std;
    * Creates an XMP object from an RDF string.  The string is used to
    * to simulate creating and XMP object from multiple input buffers.
    * The last call to ParseFromBuffer has no kXMP_ParseMoreBuffers options,
    * thereby indicating this is the last input buffer.
    #include <sstream>     
    SXMPMeta createXMPFromRDF()
        string rdf;
        //open the RDF file and put it's content into rdf buffer
        ifstream inFile;
        inFile.open("sample.xml");//open the input file
        if (!inFile.is_open()) {
            cout <<"Couldn't open xml file" <<endl;
            exit(1);
        stringstream strStream;
        strStream << inFile.rdbuf();//read the file
        rdf = strStream.str();//str holds the content of the file
        SXMPMeta meta;
        // Loop over the rdf string and create the XMP object
        // 10 characters at a time
        int i;
        for (i = 0; i < (long)rdf.size() - 10; i += 10 )
            meta.ParseFromBuffer ( &rdf[i], 10, kXMP_ParseMoreBuffers );
        meta.ParseFromBuffer ( &rdf[i], (XMP_StringLen) rdf.size() - i );
        return meta;
    int main ( int argc, const char * argv[] )
        if ( argc != 2 ) // 2 := command and 1 parameter
            cout << "usage: ModifyingXMP (filename)" << endl;
            return 0;
        string filename = string( argv[1] );
        if(!SXMPMeta::Initialize())
            cout << "Could not initialize toolkit!";
            return -1;
        XMP_OptionBits options = 0;
        #if UNIX_ENV
            options |= kXMPFiles_ServerMode;
        #endif
        // Must initialize SXMPFiles before we use it
        if(SXMPFiles::Initialize(options))
            try
                // Options to open the file with - open for editing and use a smart handler
                XMP_OptionBits opts = kXMPFiles_OpenForUpdate | kXMPFiles_OpenUseSmartHandler;
                bool ok;
                SXMPFiles myFile;
                std::string status = "";
                // First we try and open the file
                ok = myFile.OpenFile(filename, kXMP_UnknownFile, opts);
                if( ! ok )
                    status += "No smart handler available for " + filename + "\n";
                    status += "Trying packet scanning.\n";
                    // Now try using packet scanning
                    opts = kXMPFiles_OpenForUpdate | kXMPFiles_OpenUsePacketScanning;
                    ok = myFile.OpenFile(filename, kXMP_UnknownFile, opts);
                // If the file is open then read get the XMP data
                if(ok)
                    cout << status << endl;
                    cout << filename << " is opened successfully" << endl;
                    // Create the XMP object and get the XMP data
                    SXMPMeta meta;
                    myFile.GetXMP(&meta);
                    // Create a new XMP object from an RDF string
                    SXMPMeta rdfMeta = createXMPFromRDF();
                    // Append the newly created properties onto the original XMP object
                    // This will:
                    // a) Add ANY new TOP LEVEL properties in the source (rdfMeta) to the destination (meta)
                    // b) Replace any top level properties in the source with the matching properties from the destination
                    SXMPUtils::ApplyTemplate(&meta, rdfMeta, kXMPTemplate_AddNewProperties | kXMPTemplate_ReplaceExistingProperties | kXMPTemplate_IncludeInternalProperties);
                    // Check we can put the XMP packet back into the file
                    if(myFile.CanPutXMP(meta))
                        // If so then update the file with the modified XMP
                        myFile.PutXMP(meta);
                    // Close the SXMPFile.  This *must* be called.  The XMP is not
                    // actually written and the disk file is not closed until this call is made.
                    myFile.CloseFile();
                else
                    cout << "Unable to open " << filename << endl;
            catch(XMP_Error & e)
                cout << "ERROR: " << e.GetErrMsg() << endl;
            // Terminate the toolkit
            SXMPFiles::Terminate();
            SXMPMeta::Terminate();
        else
            cout << "Could not initialize SXMPFiles.";
            return -1;
        return 0;
    Please let me know if you find any issue/assistance.
    -Sunil

  • Export Fonts from pdf files

    Is there any way to export fonts from any pdf file?

    They will export in the original size of the image, not in the size that appears. I believe that Acrobat is simply dumping the TIFF or whatever as is.

  • 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.

  • Plz hlp...cannot copy and paste embedded font from pdf..critical!

    Hello,
    I'm desperate,
    Probably because I don't know how to ask or to search
    But believe me; I spent long time trying to find an answer for the problem.
    I believe, my problem is known; I need to copy text from unsecured PDF acrobat file, to MS WORD, but its scrambled text,
    This is very important project and I need to copy plenty of text from the acrobat files. What can I do??????
    if it impossable what it's mean?
    If u do want to avoid the big vrother all you nee to do is to embed the text to PDF and no body could understad it, google it????
    I belive it must be a solution, a convertor or anything...
    I tried to download The professional acrobat, PDF NITRO
    every soft available to be able to copy the text or to convert it into normal ASCII, Unicode...whatever...
    I just need the text not the font or the graphic...
    plz help its important....
    thanks alot !!!!!!!!!!!!!!!!!!
    Lior.

    gaurav sinha wrote:
    go to adobe.com under support click on knowledgebase and type in 328376 and follow the steps hope it will resolve your issue
    I would hope they've got it resolved already. It's from over a year ago.

  • InDesign (CS 5.5) won't print fonts from a file that prints correctly in CS 3

    Hello,
    I installed CS 5.5 last night and installed all of the updates (on Windows XP with SP3). I have an Okidata B4300 laser printer with Postscript 3 emulation installed. Several typefaces (both True Type and Open Type, 4 fonts tested so far) are not printing from InDesign CS 5.5, but when I open the same file in CS 3, it prints correctly. All of the fonts are installed in the Windows font folder and have worked for years. No printing errors in Photoshop CS 5.5 or in Word.
    I've been going through the "troubleshoot printing/PDF export problems in InDesign" guide, focusing on the application level. Here's what I've done so far:
    1. Restarted the program, printer, system
    2. Did a disk cleanup, defragmented the system, and ran an error check
    3. Recreated the InDesign preference files
    4. Downloaded the Adobe Universal Postscript Windows Driver
    Each time I try to print my test file, I encounter the same error--
    Error: undefined
    Offending command: @FS
    Stack:
    6.81257
    4.60767
    9.74377
    9.86353
    -mark-
    And then, in parentheses, it prints the text that should have printed.
    Does anyone know how to fix this?
    Thanks for your help.
    Jill Shultz

    Hi Dov,
    Just to double-check: you meant delete the Adobe Universal PS Driver and reinstall the Okidata PS driver, right?
    I wasn't complaining about the situation; if there was anything in the tone of my message that pricked, I'm sorry. I know Adobe doesn't purposefully cause problems or make its software unnecessarily picky. That would be bad business. And I only asked about the possibility of a glitch because I was working with my back turned away from this CPU as it did the installation, so if there had been a momentary warning, I would likely have missed it. Glitches happen, even to the best software.
    I was asking questions hoping for another test that might provide a definitive answer. I know that doesn't always happen when troubleshooting, but it's a lovely goal, especially with the looming specter of hardware replacement.
    The Oki printer has been a workhorse under heavy use, so I wouldn't replace it unless it was really necessary. In fact, if the reinstallation of the Oki driver doesn't fix the problem, then I'll probably test all of the typefaces to see which ones work straight up and which require the PDF workaround. I might live with the problem for a while.
    Is there any info on the Adobe site about which printers implement PS correctly?
    Thanks for all of your help!
    Jill

  • Help with embedding fonts in swf file

    Hi, I am haviing a problem with my fonts displaying in my swf file. I created the flash site using CS4 on a mac. I thought the fonts were embedded but when I tested the swf in safari and firefox the fonts disappeared are all scrunched up in 1/2" on top of each other in several lines. Its a mess. It is displaying in times or some other font when viewed in on a pc browser.
    What I did so far that did not work:
    Made fonts static with animation
    made fonts dynamic with animation
    How can I fix this?
    I am still a beginner using flash so the simpler the option the better.
    Thanks!!!

    there are quite a few ways you could mess this up but no one way that's typical.
    create a new fla.  click on the text tool, select static in the combobox and add a textfield to the stage.  animate it.  test it.  any problems?
    any other way (or ordering of steps) you use to create static text is prone to problems.

  • Powerpoint embedded fonts from Windows

    I've got a powerpoint presentation created in Windows. I've saved it with fonts embedded but when I open it on my Mac the fonts are not the same. Can anyone exlpain how to keep this from happening?
    My real goal here is to get the presentation into Keynote so I can then put in an iDVD project.
    Thanks,
    Eric

    You may be right since neither powerpoint or keynote on the Mac display the fonts correctly. I actually have the font installed on the Mac, but it doesn't display on the Mac regardless of what I do.
    Any other ideas? I need the slideshow intact with transitions and animations.

  • Dynamically load fonts from SWF files

    Hello,
    9. Add code to register the fonts you embedded when the FontSWF is Loaded.
    import flash.text.Font;
    /*You will use the name of the font that was embedded and DF4. For example, in the example below Arial Black was embedded. Notice that underscores are used. These are added to the font name when it is embedded to create the font class name. If you embedded something like Times New Roman, you would use Times_New_Roman_DF4.*/
    Font.registerFont(Arial_Black_DF4);
    This sentences is following document page 6.
    http://download.macromedia.com/pub/labs/textlayout/textlayout_flashcomponent_overview.pdf
    How is a Japanese font?
    example:
    A-OTF Shin Go Pro M
    Hiragino Kaku Gothic Pro W6
    The following are the errors.
    A-OTF_Shin_Go_Pro_M_DF4
    Hiragino_Kaku_Gothic_Pro_W6_DF4
    Best regards,

    Yes, you should be able to create an RSL that has a font in
    it that can be used. See here for a tutorial on RSLs:
    http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=L iveDocs_Parts&file=00001524.html

  • Illustrator cs4 outlines fonts from older files

    We have a font we use for checks (MICR).
    Illustrator cs3 would randomly drop an extra space in the bank account in this font  8% of the time.
    Illustrator cs4 when opening files saved from previous versions outlines this font.  Which is a bit of a hassle if we need to change the account number.
    Any way around this conundrum?
    Illustrator 14.0.0
    Windows xp pro

    Disable missing glyph protection in the prefs and the respective options in the text palette. You have used some sort of custom text formatting and AI is merely favoring appearance over editability. The type engine has been changed in recent versions, that's why older files may yield different results when being opened...
    Mylenium

  • How to create PDF without embedded fonts from Indesign

    Can anyone tell me how to create from Indesign a PDF that certainly does not contain any fonts I don't want to include? But that would appear in the same layout in a substituted font, including italics and small caps?

    You can't, InDesign will embed the fonts for  you.
    To unembed fonts you need Acrobat Professional. Go to Tools>Print Production>Pdf Optimiser
    go to Fonts
    And select the fonts to unembed.
    You could select any text and change the Transparency to 99.9%.
    Then in Edit>Transparency Flattener make a new one using High as a base for the new
    Select Convert Text to Outlines.
    When you Export to pdf, choose Adobe PDF 1.3, and go to Flattening, choose the new Flattener Preset that you just made.
    And when you export it, any text forced through the Flattener will be converted to outlines. (this could violate the terms of the Font Licencing.)

  • Embedding fonts in Keynote file for use on iPad

    Is there any way to embed fonts into a Keynote file so they're usable/displayable on Keynote on iPad?
    Or, is there a way to download fonts to the iPad?
    I'd hate to have to recreate all my presentations with "stock" fonts.
    Thanks in advance!
    t

    Is there any way to embed fonts into a Keynote file so they're usable/displayable on Keynote on iPad?
    No.
    Or, is there a way to download fonts to the iPad?
    No.
    You can tell Apple what you need here:
    http://www.apple.com/feedback/keynote.html
    http://www.apple.com/feedback/keynote_ipad.html

  • Save as PDF Files too large, Remove Embedded Fonts/Compress Fonts

    When I create PDF's using "Save as PDF" in Mac OS X, the file sizes are much larger than is acceptable for my application. For example, a recent PDF I created ended up at 1.7 MB and I need it to be around 150 kB.
    When I open the file in Acrobat Pro 6.0 and audit the file, I see that 94% of the file size is taken up by embedded fonts. I can then Optimize PDF with Acrobat Pro and remove the embedded fonts. The file size drops to around 145 kB.
    Is there any way to NOT embed fonts when creating PDF's with Mac OS X? Also, is there any way to compress with Mac OS X in a manner similar to Acrobat Pro?

    Hi LD,
    I don't think so that this is possible.
    I have the same problem to ... even when I open a existing PDF file that I downloaded from the net. It was 150 Kb an after I work in it to make same changes I save it an turns up to be 2 to 3 Mb or sometimes even more ...
    I open de PDF than in Acrobat pro and remove everything I don't want ... I select in Acrobat Pro an select 'optimise PDF'
    Dimaxum

  • Load fonts from file

    In Java I can load fonts from a file or register it:
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
         ge.registerFont(Font.createFont(Font.TRUETYPE_FONT, new File("A.ttf"));But in JavaFX this code shows the error:
    cannot find symbol
    symbol  : function registerFont(java.awt.Font)
    location: class java.awt.GraphicsEnvironment
    It is probably because the registerFont method was only added in JDK 1.6
    How can I register a font in JavaFX or load it from a file or create a JavaFX font from the java.awt.Font class?

    I tried this but the text is not shown.
    I guess it is because the font size is zero.
    How can I change the font size in this case?
    The code below shows an error:
    def fxFont = com.sun.javafx.tk.Toolkit.getToolkit().getFontLoader().font(awtFont);
    fxFont.size = 24;Main.fx:19: size has script only (default) write access in javafx.scene.text.Font
    fxFont.size = 24;
    1 error
    My application is:
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.text.Text;
    import java.io.File;
    // http://www.fontfreak.com/charactermaps/a/AajaxSurrealFreak.htm
    def path = "D:/Download/Browser/temp/AAJAX.TTF";
    def awtFont = java.awt.Font.createFont(java.awt.Font.TRUETYPE_FONT, new File(path));
    def fxFont = com.sun.javafx.tk.Toolkit.getToolkit().getFontLoader().font(awtFont);
    Stage {
        title: "Application title"
        scene: Scene {
            width: 250
            height: 80
            content: Text {
                font: fxFont
                x: 10
                y: 30
                content: "Application content"
    }

Maybe you are looking for

  • Complex mapping question (aggregate)

    Hello all, For example, i have a xml structure in input : <XML Input Structure> <Line1> <Country> Fr </country> <Currency> EUR <Currency> <Town> Paris </Town> <MT> 10 </MT> </Line1> <Line2> <Country> Fr </country> <Currency> EUR <Currency> <Town> Par

  • Excel Source cannot find sheet when using Foreach Loop Container

    I have SQL Server 2012 SSIS. I need help with Foreach Loop container. 1) I have C:\\Excel\ folder and multiple Excel.xlsx files are stored there to be imported 2) I have Foreach Loop Container -Foreach File Enumerator is selected -Expressions are emp

  • How to make use of tbody and duplicate rows

    I want to ask if anyone would help me overcome this problem. I decided that the best use for my problem is using a tbody. Quote me if i am wrong. I have table with the following rows item name & text field carton size & text field cm number of layers

  • Time machine deleted all my HD files

    Hey, So im pretty new to mac so bare with me.. I have a 2TB hard drive that i used to store my files from my PC and when i plugged it into my mac for the first time it asked me if i wanted it to be used for my time machine. Thinking that it would jus

  • IPhone 5S keyboard freeze

    hi friends, i have a problem about keyboard on iOS 8.1.1 for last 2 weeks. When i use keyboard wheth message app or the others it freezes for  3-4 seconds, but if I press any button while freezing it writes that letters after freezing gone. It really