Debenu Quick PDF logo

AddTrueTypeSubsettedFontFromString

Text, Fonts

Version history

This function was introduced in Quick PDF Library version 15.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.AddTrueTypeSubsettedFontFromString(
  const Source: AnsiString; SubsetChars: WideString; Options: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::AddTrueTypeSubsettedFontFromString(
  Source As String, SubsetChars As String, Options As Long) As Long

DLL

int DPLAddTrueTypeSubsettedFontFromString(int InstanceID, char * Source,
  wchar_t * SubsetChars, int Options)

Parameters

Source The source data of the TrueType font
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