Debenu Quick PDF logo

AddTrueTypeSubsettedFontFromFile

Text, Fonts

Version history

This function was introduced in Quick PDF Library version 14.11.

Description

Adds a new TrueType subsetted font directly from a .ttf font file without needing the font to be installed on the system.

Syntax

Delphi

function TDebenuPDFLibrary1511.AddTrueTypeSubsettedFontFromFile(FileName, 
  SubsetChars: WideString; Options: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::AddTrueTypeSubsettedFontFromFile(
  FileName As String, SubsetChars As String, Options As Long) As Long

DLL

int DPLAddTrueTypeSubsettedFontFromFile(int InstanceID, wchar_t * FileName,
  wchar_t * SubsetChars, int Options)

Parameters

FileName The path and file name of the TrueType font file
SubsetChars The list of characters to include in the font subset
Options Reserved for future use, should be set to zero.

Return values

0 The font could not be added
Non-zero The FontID of the added font

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport