Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How can i obtain this block code of a Font

Guest
Feb 01, 2011 Feb 01, 2011

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.

TOPICS
Programming
1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Feb 01, 2011 Feb 01, 2011

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.

Translate
Contributor ,
Feb 01, 2011 Feb 01, 2011

Looks like the heading of an Adobe Type 1 font Arial MT to me, not a TrueType version of the font.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 01, 2011 Feb 01, 2011

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 01, 2011 Feb 01, 2011

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 01, 2011 Feb 01, 2011

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 01, 2011 Feb 01, 2011

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 01, 2011 Feb 01, 2011

Thanks a lot for your help.

I'll try to get the PFB file and compile into my php code.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 01, 2011 Feb 01, 2011

A last question.

Is easy to unencode the PFB file?

Best Regards

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 02, 2011 Feb 02, 2011

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 03, 2011 Feb 03, 2011
LATEST

I have a Perl script that converts PDF files to PFA format (which is suitable for inclusion into PS jobs).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines