Copy link to clipboard
Copied
Hello,
I want to know how do I obtain the definition of a Font (TrueType), I found a block code, and I supposed is the definition of the Font in a PS file. Is it correct?
I added part of the code, to explain me better.
$_FONT_ARIALMT ="%%BeginResource: font ArialMT
%ct_CffDict begin
%!FontType1
16 dict begin
/FontInfo 15 dict dup begin
/Notice (Copyright (c) 1991, 1993, 1996, 1997, 1998, 1999 Adobe Systems Incorporated. All Rights Reserved.Arial is a trademark of The Monotype Corporation, registered in the US Patent and Trademark Office and elsewhere.) def
/version (001.001) def
/FullName (Arial MT) def
/FamilyName (Arial MT) def
/Weight (Regular) def
/ItalicAngle 0 def
How to obtain this lines but of another TrueType Font?
Thanks a lot for your help.
You get them from the Adobe Type 1 font files with extensions of ".PFB".
Sounds like you are embedding fonts with your application and you will probably need to unencode and insert the entire PFB into your PostScript file, unless you have a mechanism to match up the header with the rest of the file for some unique reason.
Copy link to clipboard
Copied
Looks like the heading of an Adobe Type 1 font Arial MT to me, not a TrueType version of the font.
Copy link to clipboard
Copied
Hi Mr. Horton,
Then if I understand, to find those lines but of another Font, I need the Heading Adobe Type 1?
I need a Barcode Font and the Owner says me that the Postscript Font is included, is enough or I need to ask for the Heading Adobe Type 1?
I'm sorry if I ask it something really fool
Copy link to clipboard
Copied
Where you are at and where you want to be are not clear to me...
If the PostScript font is "included" that could mean that it is embedded in a graphics application file (ie. .EPS or .AI file), or it could mean that it is included in a folder or set of files as a font that you would load into your application and use independently of the graphics file you are working with. Which is it?
Copy link to clipboard
Copied
The second option,
Today I have those lines in a php include file, and I use it to create postscript files. I need declare a new Font but I don't have those lines for the new Font and I want to know how to obtain it.
Copy link to clipboard
Copied
You get them from the Adobe Type 1 font files with extensions of ".PFB".
Sounds like you are embedding fonts with your application and you will probably need to unencode and insert the entire PFB into your PostScript file, unless you have a mechanism to match up the header with the rest of the file for some unique reason.
Copy link to clipboard
Copied
Thanks a lot for your help.
I'll try to get the PFB file and compile into my php code.
Copy link to clipboard
Copied
A last question.
Is easy to unencode the PFB file?
Best Regards
Copy link to clipboard
Copied
The PFB files are printer font binary files and they contain a mixture of 7-bit ascii and 8-bit binary characters.
Read the Adobe Type 1 Font Format version 1.1 book (especially Chapter 2: Font Program Organization on page 11).
I wrote an application in "C" that reads .PFB files and makes .PS files that are used to insert into PostScript jobs. Whether it is easy or not depends on your level of proficiency in "C" or whatever language you use.
Copy link to clipboard
Copied
I have a Perl script that converts PDF files to PFA format (which is suitable for inclusion into PS jobs).
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more