Debenu Quick PDF logo

AddType1Font

Text, Fonts

Description

Adds a PostScript Type1 font to the document. The font must be supplied as two files, a .pfm and a .pfb file. The full path to the .pfm file must be supplied. The font is embedded in the document.

Syntax

Delphi

function TDebenuPDFLibrary1511.AddType1Font(FileName: WideString): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::AddType1Font(FileName As String) As Long

DLL

int DPLAddType1Font(int InstanceID, wchar_t * FileName)

Parameters

FileName The full path to the .pfm file. A .pfb file with the same name should exist in the same directory as the .pfm file.

Return values

0 The font could not be added. Either the font files are in the wrong format, or they cannot be found.
Non-zero The ID of the font that was successfully added. This ID can be used with the SelectFont function to select the font

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport