Friday, April 2, 2010

Help me to find out the font type?

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

Help me to find out the font type?

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.

Help me to find out the font type?

Tom,

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

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

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.

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


Thanks...

Most likely the Windows Font folder.

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

?%26lt;rdf:li rdf:parseType=''Resource''%26gt;
?%26lt;stFnt:fontName%26gt;Arial-BoldMT%26lt;/stFnt:fontName%26gt;
?%26lt;stFnt:fontFamily%26gt;Arial MT%26lt;/stFnt:fontFamily%26gt;
?%26lt;stFnt:fontFace%26gt;Bold%26lt;/stFnt:fontFace%26gt;
?%26lt;stFnt:fontType%26gt;Type 1%26lt;/stFnt:fontType%26gt;
?%26lt;stFnt:versionString%26gt;001.001%26lt;/stFnt:versionString%26gt;
?%26lt;stFnt:composite%26gt;False%26lt;/stFnt:composite%26gt;
?%26lt;stFnt:fontFileName%26gt;AB_____.PFB; AB_____.PFM%26lt;/stFnt:fontFileName%26gt;
?%26lt;/rdf:li%26gt;

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

%26lt;stFnt:fontType%26gt;Type 1%26lt;/stFnt:fontType%26gt;

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.

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.

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.

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.

?%26lt;rdf:li rdf:parseType=''Resource''%26gt;
?%26lt;stFnt:fontName%26gt;Arial-BoldMT%26lt;/stFnt:fontName%26gt;
?%26lt;stFnt:fontFamily%26gt;Arial%26lt;/stFnt:fontFamily%26gt;
?%26lt;stFnt:fontFace%26gt;Bold%26lt;/stFnt:fontFace%26gt;
?%26lt;stFnt:fontType%26gt;Open Type%26lt;/stFnt:fontType%26gt;
?%26lt;stFnt:versionString%26gt;Version 3.00%26lt;/stFnt:versionString%26gt;
?%26lt;stFnt:composite%26gt;False%26lt;/stFnt:composite%26gt;
?%26lt;stFnt:fontFileName%26gt;ARIALBD.TTF%26lt;/stFnt:fontFileName%26gt;
?%26lt;/rdf:li%26gt;

Thanks for looking into this.....

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.

?%26lt;rdf:li rdf:parseType=''Resource''%26gt;
?%26lt;stFnt:fontName%26gt;ArialNarrow-Bold%26lt;/stFnt:fontName%26gt;
?%26lt;stFnt:fontFamily%26gt;Arial Narrow%26lt;/stFnt:fontFamily%26gt;
?%26lt;stFnt:fontFace%26gt;Bold%26lt;/stFnt:fontFace%26gt;
?%26lt;stFnt:fontType%26gt;Open Type%26lt;/stFnt:fontType%26gt;
?%26lt;stFnt:versionString%26gt;Version 2.37%26lt;/stFnt:versionString%26gt;
?%26lt;stFnt:composite%26gt;False%26lt;/stFnt:composite%26gt;
?%26lt;stFnt:fontFileName%26gt;ARIALNB.TTF%26lt;/stFnt:fontFileName%26gt;
%26lt;/rdf:li%26gt;

Thanks.

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

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

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

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.

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.

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.

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.

Thanks for your response!!

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

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

No comments:

Post a Comment