New Forum | Previous | Next | (P-PDF) Developers
Topic: Creating Font im PDF
Conf: (P-PDF) Developers, Msg: 52612
From: DrorF
Date: 5/29/2002 04:53 PM
Hello,
I need to create PDF file from scratch using some data struture, which contain the info of the document.
One task, among many other, is the abilty to create text objects using information, which consists of the Font's name, text attributes such as: Bold, Italic and many other. I have also information about the font attributes, such as: height above/below the base line, width etc.
I am using the PDF Library by Adobe.
I have successed to create PDEFont objects, by searching a system font (by the font's name I have) and creating the PDEFont from it, I can handle also the Base 14 for Type1 fonts, but other than than I am in trouble.
I have read some backround on handling fonts in PDF, but got lost at some point.
To simplify my question, my UserCase is creating a font "AudreyTwo SWC". This font is not a Type1 and not found by enumurating the system fonts.
How can I create PDEFont object for this font.
I have tried to see what PDMaker for Office do, in order to understabd better the process. The PDF that was created by the PDMaker macro, created a TrueType font object with a BaseFont of "FCDIOI+ArialMT", using a FontDescriptor which has a reference to a FontFile2.
First of all, it doesn't worked for Adobe. The font did not match well, althought in other cases, they gain better results.
??*****************??
Lets say that I want to be compatiable with Adobe behaviour.
From where did they get the information to the font they have created, from the original font and how can I do the same using the PDF Library API (also for fonts from other types, like Type0)