Debenu Quick PDF logo

AddTrueTypeFontFromFileEx

Text, Fonts

Version history

This function was introduced in Quick PDF Library version 13.14.

Description

Similar to AddTrueTypeFontFromFile but with the option to use different font loading techniques.

Syntax

Delphi

function TDebenuPDFLibrary1511.AddTrueTypeFontFromFileEx(FileName: WideString; 
  Options: Integer): Integer;

ActiveX

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

DLL

int DPLAddTrueTypeFontFromFileEx(int InstanceID, wchar_t * FileName, int Options)

Parameters

FileName The full path and file name of the TrueType font file to embed.
Options 0=New loading technique
1=Previous loading technique (13.11 and earlier)

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