20 Replies Latest reply on Aug 18, 2009 5:25 AM by Maria prabhudoss

    Help me to find out the font type?

    Maria prabhudoss Level 1

      Is it possible to find out the type of the used fonts(like Open type (or) true type) in illustrator cs3 file through programmatically. Kindly share with me the possibilities and solution.


      Thanks...

        • 1. Re: Help me to find out the font type?
          Tom Usrey Level 3

          Go to the Type menu, and select Find Font. Make sure that the bottom window is displaying "Document". Then simply uncheck one of the boxes below (the Types of fonts). When a font disappears from the list, that tells you its type matches the Font Type that you just unchecked.

          • 2. Re: Help me to find out the font type?
            Larry G. Schneider Adobe Community Professional & MVP

            Tom,

             

            This guy wants to do it through a script, not the UI. As far as I know its not available to scripting.

            • 3. Re: Help me to find out the font type?
              Maria prabhudoss Level 1

              Thanks Larry!! Is there any free ware tool available to find out the font type information for illustrator file?

              • 4. Re: Help me to find out the font type?
                Larry G. Schneider Adobe Community Professional & MVP

                Are you trying to find out the font information from a file you didn't generate? Using the UI as Tom suggests is one way.

                • 5. Re: Help me to find out the font type?
                  Maria prabhudoss Level 1

                  I need to know wheather the illustrator font metadata information is taken from PSFONTS folder or WINDOWS Fonts folder. Kindly advice me.


                  Thanks...

                  • 6. Re: Help me to find out the font type?
                    Larry G. Schneider Adobe Community Professional & MVP

                    Most likely the Windows Font folder.

                    • 7. Re: Help me to find out the font type?
                      Maria prabhudoss Level 1

                      Thanks. After saving the .eps file, I opened that file in text editor i saw some font details like below.

                       

                                          <rdf:li rdf:parseType="Resource">
                                        <stFnt:fontName>Arial-BoldMT</stFnt:fontName>
                                        <stFnt:fontFamily>Arial MT</stFnt:fontFamily>
                                        <stFnt:fontFace>Bold</stFnt:fontFace>
                                        <stFnt:fontType>Type 1</stFnt:fontType>
                                        <stFnt:versionString>001.001</stFnt:versionString>
                                        <stFnt:composite>False</stFnt:composite>
                                        <stFnt:fontFileName>AB_____.PFB; AB_____.PFM</stFnt:fontFileName>
                                          </rdf:li>

                       

                      Using the above details we can get the font type details. Is it correct?

                      • 8. Re: Help me to find out the font type?
                        Larry G. Schneider Adobe Community Professional & MVP

                        <stFnt:fontType>Type 1</stFnt:fontType>

                         

                        This line indicates the font is a Postscript Type 1 font. Do the same with some other fonts that you know are Open Type and True Type and see what this line returns for them.

                        • 9. Re: Help me to find out the font type?
                          Maria prabhudoss Level 1

                          But i faced some problem in that. IF the WINDOWS Fonts folder having both open type(arialbd.ttf) and Type 1(AB_____.PFM), the illustrator document font details shown as "Type 1" but after saving the metadata showed as "Open Type". So kindly advice me why that problem occured.

                          • 10. Re: Help me to find out the font type?
                            Larry G. Schneider Adobe Community Professional & MVP

                            Open Type is just a container somewhat like an EPS file. Open Type can be either Postscript flavored (based on a PS font) or TrueType (based on a TT font). If you save a file with the fonts in a Open Type font what does the metadata that you quoted earlier look like. Post the similar string.

                            • 11. Re: Help me to find out the font type?
                              Maria prabhudoss Level 1

                              Same file, but i copied the open type font(arialbd.ttf) in the windows folder and then i saved the same file i got the below data.

                               

                                                  <rdf:li rdf:parseType="Resource">
                                                <stFnt:fontName>Arial-BoldMT</stFnt:fontName>
                                                <stFnt:fontFamily>Arial</stFnt:fontFamily>
                                                <stFnt:fontFace>Bold</stFnt:fontFace>
                                                <stFnt:fontType>Open Type</stFnt:fontType>
                                                <stFnt:versionString>Version 3.00</stFnt:versionString>
                                                <stFnt:composite>False</stFnt:composite>
                                                <stFnt:fontFileName>ARIALBD.TTF</stFnt:fontFileName>
                                                  </rdf:li>

                               

                              Thanks for looking into this.....

                              • 12. Re: Help me to find out the font type?
                                Maria prabhudoss Level 1

                                Now i changed the font name with open type i got the below code. But my last post i did 't changed the fontname and font type. But that also shown as open type.  Could you please advice me.

                                 

                                                <rdf:li rdf:parseType="Resource">
                                                  <stFnt:fontName>ArialNarrow-Bold</stFnt:fontName>
                                                  <stFnt:fontFamily>Arial Narrow</stFnt:fontFamily>
                                                  <stFnt:fontFace>Bold</stFnt:fontFace>
                                                  <stFnt:fontType>Open Type</stFnt:fontType>
                                                  <stFnt:versionString>Version 2.37</stFnt:versionString>
                                                  <stFnt:composite>False</stFnt:composite>
                                                  <stFnt:fontFileName>ARIALNB.TTF</stFnt:fontFileName>
                                               </rdf:li>

                                Thanks.

                                • 13. Re: Help me to find out the font type?
                                  Larry G. Schneider Adobe Community Professional & MVP

                                  I don't get what you are doing. Are you changing the font in the AI file and then resaving the EPS? Are you making copies of the type and changing the font? What exactly are you doing?

                                   

                                  OK I just made a new AI file and set three strings of type, one each in a Postscript Type 1, True Type and Open Type and saved th efile as an EPS.. When I looked at the in a text editor I found the following

                                   

                                  <xapTPg:Fonts>
                                              <rdf:Bag>
                                                 <rdf:li rdf:parseType="Resource">
                                                    <stFnt:fontName>Skia-Regular</stFnt:fontName>
                                                    <stFnt:fontFamily>Skia</stFnt:fontFamily>
                                                    <stFnt:fontFace>Regular</stFnt:fontFace>
                                                    <stFnt:fontType>TrueType</stFnt:fontType>
                                                    <stFnt:versionString>6.0d2e1</stFnt:versionString>
                                                    <stFnt:composite>False</stFnt:composite>
                                                    <stFnt:fontFileName>Skia.dfont</stFnt:fontFileName>
                                                 </rdf:li>
                                                 <rdf:li rdf:parseType="Resource">
                                                    <stFnt:fontName>TimesNewRomanPSMT</stFnt:fontName>
                                                    <stFnt:fontFamily>Times New Roman</stFnt:fontFamily>
                                                    <stFnt:fontFace>Regular</stFnt:fontFace>
                                                    <stFnt:fontType>Open Type</stFnt:fontType>
                                                    <stFnt:versionString>Version 5.01.3x</stFnt:versionString>
                                                    <stFnt:composite>False</stFnt:composite>
                                                    <stFnt:fontFileName>Times New Roman.ttf</stFnt:fontFileName>
                                                 </rdf:li>
                                                 <rdf:li rdf:parseType="Resource">
                                                    <stFnt:fontName>Univers-Condensed</stFnt:fontName>
                                                    <stFnt:fontFamily>Univers</stFnt:fontFamily>
                                                    <stFnt:fontFace>57 Condensed</stFnt:fontFace>
                                                    <stFnt:fontType>Type 1</stFnt:fontType>
                                                    <stFnt:versionString>001.003</stFnt:versionString>
                                                    <stFnt:composite>False</stFnt:composite>
                                                    <stFnt:fontFileName>UniveCon; Univers Condensed</stFnt:fontFileName>
                                                 </rdf:li>
                                              </rdf:Bag>
                                           </xapTPg:Fonts>

                                   

                                  These are the fonts I used and the type as shown from the UI font menu.

                                  • 14. Re: Help me to find out the font type?
                                    Maria prabhudoss Level 1

                                    Yes. You are correct. I have opened the EPS file in the AI and then resave.

                                     

                                    In my machine, I have OTF and TTF font installed in my windows fonts folder.

                                     

                                    Eventhough the .eps file has TTF font, it (METADATA)shows OTF font after resave the file through AI. If I remove the OTF font from the fonts folder and do the above steps and it correctly shows TTF font.

                                     

                                    I want the font name either OTF or TTF which I have assign in the AI and it should also reflect in the .eps METADATA file information.

                                    • 15. Re: Help me to find out the font type?
                                      Larry G. Schneider Adobe Community Professional & MVP

                                      Why are you opening the EPS file and resaving? The information is also available directly from the AI file. It sounds as though the file is replacing the font when it is opened in AI.

                                      • 16. Re: Help me to find out the font type?
                                        Maria prabhudoss Level 1

                                        That file created by some machine. Without resaving the file, i could not find out that font information tags(metadata). Please find the attachment for your review.

                                        • 17. Re: Help me to find out the font type?
                                          Larry G. Schneider Adobe Community Professional & MVP

                                          The EPS is just a text file readable by AI. Here are the lines which reference the font

                                           

                                          %ADOBeginSubsetFont: Arial Initial
                                          %ADOt1write: (1.0.21)
                                          %%Copyright: Copyright 2009 Adobe System Incorporated. All rights reserved.
                                          13 dict dup begin
                                          /FontType 1 def
                                          /FontName /Arial def
                                          /FontInfo 6 dict dup begin
                                          /Notice (Typeface \\251 The Monotype Corporation plc. Data \\251 The Monotype Corporation plc/Type Solutions Inc. 1990-1992. All Rights Reserved) def
                                          /Weight (Medium) def
                                          /ItalicAngle 0 def

                                           

                                          So it looks to be an older Type 1 font. When I open the file it wants to replace the font.

                                          • 18. Re: Help me to find out the font type?
                                            Maria prabhudoss Level 1

                                            Thanks for your response!!

                                            • 19. Re: Help me to find out the font type?
                                              Maria prabhudoss Level 1

                                              Thanks! Is it possible to find out the open type font information using the above method. Kindly advice me.

                                              • 20. Re: Help me to find out the font type?
                                                Maria prabhudoss Level 1

                                                Thanks Larry! Is it possible to find out the open type font information using the above method. Kindly advice me.