Debenu Quick PDF logo

AddOpenTypeFontFromString

Text, Fonts

Version history

This function was introduced in Quick PDF Library version 11.15.

Description

This function is identical to AddTrueTypeFontFromString. Both functions allow a TrueType, OpenType/TrueType or OpenType/CFF font to be added from a dta string.

This version of the function provides an Options parameter which may be expanded in future to support advanced OpenType features.

Syntax

Delphi

function TDebenuPDFLibrary1511.AddOpenTypeFontFromString(const Source: AnsiString; 
  Options: Integer): Integer;

ActiveX

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

DLL

int DPLAddOpenTypeFontFromString(int InstanceID, char * Source, int Options)

Parameters

Source Font program data string.
Options Should be set to 0.

Return values

0 The font could not be embedded
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